• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Maplink-road/sandbox

  • Language
  • Watch
  • View source
< Template:Maplink-road
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Maplink-road (diff).
Template documentation[view] [edit] [history] [purge]
WarningThis 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.
Main page: 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-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

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.
The above documentation is transcluded from Template:Maplink-road/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Maplink-road/sandbox&oldid=10960309"
Last edited on 3 March 2021, at 17:31

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 3 March 2021, at 17:31.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop