Editing Template:Map

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:
 
Define a base map layer, choose a display width, and specify the labels. X and Y are percentages.
 
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. The default grid is white with 20% opacity.
+
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.
Optional attributes include: (Start) Link; (Label) Color, Length, Width
 
  
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Map/Start|base=FILENAME.png|width=PIXELS|link=PAGENAME}}
 
{{Map/Start|base=FILENAME.png|width=PIXELS|link=PAGENAME}}
 
<!-- {{Map/Grid|color=rgba(255, 255, 255, 1)}} -->
 
<!-- {{Map/Grid|color=rgba(255, 255, 255, 1)}} -->
{{Map/Label|1=X|2=Y|3=Label}}
+
{{Map/Label|X|Y|Label}}
{{Map/Label|1=X|2=Y|3=Label|color=COLOR|length=PIXELS|width=EM}}
+
{{Map/Label|X|Y|[[Label with link]]}}
{{Map/LabelE|1=X|2=Y|3=Label|color=COLOR|length=PIXELS|width=EM}}
+
{{Map/Label|X|Y|Label|color=COLOR}}
 
{{Map/End}}
 
{{Map/End}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 20: Line 19:
 
== Examples ==
 
== Examples ==
 
<div style="overflow: hidden;">
 
<div style="overflow: hidden;">
<div style="float: left; margin-right: 2em; margin-bottom: 2em;">
+
<div style="float: left; margin-right: 4em; margin-bottom: 2em;">
 
{{Map/Start|base=Equus Oils.png|width=500}}
 
{{Map/Start|base=Equus Oils.png|width=500}}
{{Map/Label|12|36|Horse head|length=20|width=6}}
+
{{Map/Label|50|50|Test}}
{{Map/Label|28|71|Computer|width=6}}
+
{{Map/Label|25|75|[[Equus Oils|Link test]]}}
{{Map/LabelE|53|75|[[Joseph]]|length=45|width=4.5}}
+
{{Map/Label|75|25|Color test|color=green}}
{{Map/Label|80|10|Color &<br />multiline test|color=green}}
+
{{Map/Label|75|75|A longer test on several lines}}
 
{{Map/End}}
 
{{Map/End}}
</div><div style="float: left; margin-bottom: 2em; margin-left: 2em;">
+
</div>
 +
<div style="float: left;">
 
{{Map/Start|base=Equus Oils.png|width=500}}
 
{{Map/Start|base=Equus Oils.png|width=500}}
 
{{Map/Grid|color=rgba(255, 255, 255, 0.4)}}
 
{{Map/Grid|color=rgba(255, 255, 255, 0.4)}}
Line 41: Line 41:
 
* [[Template:Map/End]]
 
* [[Template:Map/End]]
  
[[Category:Map Templates]]
+
[[Category:Maps]]
 
</noinclude>
 
</noinclude>

Please note that all contributions to Highway 0 are considered to be released under the Creative Commons Attribution-ShareAlike (see HWY0:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)