Template:Map/doc: Difference between revisions

From The Fifth City Wiki
Add documentation
 
m Remove mention of MapEnd, MarkerEnd templates
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Usage ==
== Usage ==
Used with [[Template:MapEnd|MapEnd]], [[Template:Marker|Marker]], [[Template:MarkerEnd|MarkerEnd]] templates. For example:
Used with [[Template:Marker|Marker]] templates. For example:
  {{((}}Map|image = MapImage.ext}}
  {{((}}Map|MapImage.ext|
   
   
  {{((}}Marker|name = MarkerName|link = PageName|x = 42.42|y = 77.77|scale = 0.5}}
  {{((}}Marker|name = MarkerName|x = 42.42|y = 77.77|scale = 0.5|
  Marker Popup Content
  Marker Popup Content
  {{((}}MarkerEnd}}
  }}
   
   
  {{((}}MapEnd}}
  }}
   
   
== Parameters ==
== Parameters ==
Line 15: Line 15:
!Example value
!Example value
|-
|-
|<code>image</code>
|<code>1</code>
|Name of the image to be used, without the namespace
|Name of the image to be used, without the namespace
|Fallen-london-full-map.jpg
|Fallen-london-full-map.jpg
|-
|<code>2</code>
|Markers inside the map. See [[:Template:Marker|Marker]].
|{{((}}Marker<nowiki>|</nowiki>name {{=}} MarkerName(...)}} (...)
|}
|}

Latest revision as of 08:03, 17 July 2025

Usage[edit]

Used with Marker templates. For example:

{{Map|MapImage.ext|

{{Marker|name = MarkerName|x = 42.42|y = 77.77|scale = 0.5|
Marker Popup Content
}}

}}

Parameters[edit]

Parameter name Description Example value
1 Name of the image to be used, without the namespace Fallen-london-full-map.jpg
2 Markers inside the map. See Marker. {{Marker|name = MarkerName(...)}} (...)