Template:Map: Difference between revisions
m Nclm moved page Template:Maps to Template:Map |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>:To insert a map, see [[Template:Map]].</includeonly><noinclude>A template for making maps with labels. See [[Maps]]. | ||
:To insert a map, see [[Template:Map]]. | |||
</includeonly> | |||
<noinclude> | |||
A template for making maps with labels. See [[Maps]]. | |||
== Use == | == Use == | ||
Define a base map layer, choose a display width, and | Define a base map layer, choose a display width, and specify the labels. X and Y are percentages. The grid layer can be used while editing to assist with positioning. | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Map/Start|base=FILENAME.png|width= | {{Map/Start|base=FILENAME.png|width=PIXELS}} | ||
<!--{{Map/Grid}}--> | <!-- {{Map/Grid}} --> | ||
{{Map/Label|X|Y|Label}} | {{Map/Label|X|Y|Label}} | ||
{{Map/Label|X|Y|[[Label with link]]}} | {{Map/Label|X|Y|[[Label with link]]}} | ||
| Line 18: | Line 14: | ||
</nowiki></pre> | </nowiki></pre> | ||
== | == Examples == | ||
{{Map/Start|base=Equus Oils.png|width=500}} | {{Map/Start|base=Equus Oils.png|width=500}} | ||
{{Map/Label|50|50|Test}} | {{Map/Label|50|50|Test}} | ||
{{Map/Label|25|75|[[ | {{Map/Label|25|75|[[Equus Oils|Link test]]}} | ||
{{Map/Label|75|25| | {{Map/Label|75|25|Color test|color=green}} | ||
{{Map/Label|75|75|A longer test on several lines}} | {{Map/Label|75|75|A longer test on several lines}} | ||
{{Map/End}} | {{Map/End}} | ||
{{Map/Start|base= | {{Map/Start|base=Equus Oils.png|width=500}} | ||
{{Map/Grid|color=rgba(255, 255, 255, 0.4)}} | |||
{{Map/ | |||
{{Map/End}} | {{Map/End}} | ||
== | == Components == | ||
* [[Template:Map/Start]] | * [[Template:Map/Start]] | ||
* [[Template:Map/Label]] | * [[Template:Map/Label]] | ||
* [[Template:Map/Grid]] | |||
* [[Template:Map/End]] | * [[Template:Map/End]] | ||
[[Category:Maps]] | [[Category:Maps]] | ||
</noinclude> | </noinclude> | ||