Difference between revisions of "Template:Map"

From Highway 0, the Kentucky Route Zero wiki
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 list the places. X and Y are percentages. Uncomment the 2% grid layer to position the locations.
+
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=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>
  
== Tests & Examples ==
+
== 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|[[Test]]}}
+
{{Map/Label|25|75|[[Equus Oils|Link test]]}}
{{Map/Label|75|25|[[Test]]|color=blue}}
+
{{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=Screen_Shot_2013-12-17_at_3.01.44_PM.png}}
+
{{Map/Start|base=Equus Oils.png|width=500}}
{{Map/Label|56|48|[[Elkhorn Mine]]}}
+
{{Map/Grid|color=rgba(255, 255, 255, 0.4)}}
{{Map/End}}
 
 
 
{{Map/Start|base=Giantoverworldmap.png|width=700}}
 
{{Map/Grid}}
 
 
{{Map/End}}
 
{{Map/End}}
  
== Edit ==
+
== 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

Equus Oils.png
Test
Color test
A longer test on several lines


Equus Oils.png
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%

Components