Difference between revisions of "Template:Map"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
== Use == | == 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. | + | 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.<br> | ||
+ | Optionally, for visibility, specify a color in rgba format (rgb: 0-255, a: 0.0-1.0); the default is white with 20% opacity. | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Map/Start|base=FILENAME.png|width=PIXELS}} | {{Map/Start|base=FILENAME.png|width=PIXELS}} | ||
− | <!-- {{Map/Grid}} --> | + | <!-- {{Map/Grid|color=rgba(255, 255, 255, 1)}} --> |
{{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 24: | Line 27: | ||
{{Map/Start|base=Equus Oils.png|width=500}} | {{Map/Start|base=Equus Oils.png|width=500}} | ||
− | {{Map/Grid|color=rgba( | + | {{Map/Grid|color=rgba(0, 0, 255, 0.4)}} |
{{Map/End}} | {{Map/End}} | ||
Revision as of 01:27, 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.
Optionally, for visibility, specify a color in rgba format (rgb: 0-255, a: 0.0-1.0); the default is white with 20% opacity.
{{Map/Start|base=FILENAME.png|width=PIXELS}} <!-- {{Map/Grid|color=rgba(255, 255, 255, 1)}} --> {{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%