Template:Maplink-road/doc
This is a documentation subpage for Template:Maplink-road. It contains usage information, categories and other content that is not part of the original template page. |
Main : Template:Maplink/doc
This template was created to provide a reduced parameter set and standardized appearance for Template:Maplink when used in Template:Infobox road. Namely the parameters frame = yes | frame-width = 290 | frame-align = center | plain = yes | type = line | stroke-width = 2
are assumed.
Parameters
Name | Position | Notes | |
---|---|---|---|
zoom | 1 | forwards to {{maplink|zoom=\d+}}
|
These parameters are intentionally in the same order that they appear at the end of OpenStreetMap urls, to ease conversion of anchors such as #map=13/30.2795/-97.7515 to the form {{maplink|13|30.2795|-97.7515}} . Some way to extract all three values from a single parameter with slashes would be good too.
|
lat | 2 | forwards to {{maplink|frame-lat=\-?\d+(?:\.\d+)?}}
| |
long | 3 | forwards to {{maplink|frame-long=\-?\d+(?:\.\d+)?}}
| |
id | 4 | the Wikidata id is optional as the template can determine this from the page on which it is being used. |