![]() | This is a documentation subpage for Template:Maplink-road. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 6,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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-height = 240 | frame-align = center | plain = yes | type = line | stroke-width = 2 | stroke-color = #cc0000
are assumed. By use of the Template wrapper module, these default parameters can be modified to suit specific needs, and additional parameters that are valid in Maplink can be included, such as title
, description
, stroke-color
, etc.
Parameters
editName | 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. |