Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Titled coords/doc

From Wikipedia, the free encyclopedia

Description

[edit]

This module generates titled coordinates from raw coordinates extracted from Wikidata. Currently, {{Wikidata}} does not support adding a title when requesting coordinates. So, when {{GeoGroup}} is used on a page with coordinates directly from Wikidata, the OpenStreetMap page will show an ordinal number as the title for each listed coordinate rather than a useful title. Using this module fixes the problem.

Usage

[edit]

Call from Template

[edit]

{{#invoke:Titled coords|main|Wikidata raw coords|title|options}}

Wikidata raw coords is the unformatted raw coordinates where each field is separated by an forward slash.
e.g. 50/27/40/N/122/17/42/W

Call from LUA modules

[edit]
 local Titled_coords = require('Module:Titled_coords')
 local coords = Titled_coords.build(raw_coords, title, options)