Difference between revisions of "Template:Map"
Jump to navigation
Jump to search
m (Nclm moved page Template:Maps to Template:Map) |
|||
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> |
Revision as of 01:24, 6 February 2018
A template for making maps with labels. See Maps.
Use
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.
{{Map/Start|base=FILENAME.png|width=PIXELS}} <!-- {{Map/Grid}} --> {{Map/Label|X|Y|Label}} {{Map/Label|X|Y|[[Label with link]]}} {{Map/Label|X|Y|Label|color=COLOR}} {{Map/End}}
Examples
10%
10%
10%
20%
20%
20%
30%
30%
30%
40%
40%
40%
50%
50%
50%
60%
60%
60%
70%
70%
70%
80%
80%
80%
90%
90%
90%