Template:List relations

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

This template produces a table for a list of relations.

Usage

{{list relations|
156553
2804113
921198
}}

becomes

NameRelationLinks
Appalachian Trail156553websitewikipediawikidata
Arizona Trail2804113wikipediawikidata
Continental Divide National Scenic Trail921198websitewikipediawikidata

Columns

The columns are derived from the tags of the relation as follows:

Not yet queried?

If you were to add a new relation to the previous example, the template will most likely initially only display something like:

NameRelationLinks
Appalachian Trail156553websitewikipediawikidata
Arizona Trail2804113wikipediawikidata
Continental Divide National Scenic Trail921198websitewikipediawikidata
not yet queried (?)12345

This is because this template depends on a bot to query the Overpass API but you don't have to worry about that ... the information should be displayed after 10 minutes .

length

If you specify the length parameter, the template additionally displays the mapped length and the "official length" (whatever Property:P2043 is according to Wikidata).

{{list relations|length=yes|
156553
2804113
921198
}}

becomes

NameMapped lengthOfficial lengthRelationLinks
Appalachian Trail3,371.4 km3,500 km156553websitewikipediawikidata
Arizona Trail1,283.2 km1,287.5 km2804113wikipediawikidata
Continental Divide National Scenic Trail4,828.7 km5,000 km921198websitewikipediawikidata

See also