Module:Location map/data/100x100/doc: Difference between revisions

Content deleted Content added
<code>...</code> can't wrap multiple blocks, but <div style="font-family: monospace;">...</div> can
Line 7:
 
All mapping templates use similar parameters (see ''[[#Examples|Examples]]''):
<div style="font-family: monospace;">
<code>
:* 100x100 - the first parameter is always the map name
:* AlternativeMap - name of image (omit "Image:")
:* caption=text - caption text along bottom of image
:* width=250 - for image width (omit "px" or image will span page)
:* label - movable label (can be padded "&amp;nbsp;XX&amp;nbsp;YY&amp;nbsp;")
Line 16:
:* background - color of label (such as: darkorange or #4499DD)
:* position=right - (or left, top, bottom) position of label at marker
:* lat =55.00 - for latitude 0-100.0 (higher towards top)
:* long=45.00 - for longitude 0-100.0 (higher towards right)
:* mark &nbsp; &nbsp; - name of image for marker symbol (omit "Image:")
:* marksize - size of image for marker symbol (default: 8px, 1px=none)
:* float=right (or left, center) - position of map formatted on page
</codediv>
Some common label background colors are: <small>#</small>CCCC55 for <span style="color:#CCCC55">'''dim yellow'''</span>,
::* <small>#</small>44EE44 for <span style="color:#44EE44">'''lime green'''</span>, <small>#</small>BBBBBB for <span style="color:#BBBBBB">'''gray'''</span>,
Line 27:
::* PaleGreen for <span style="color:PaleGreen">'''pale green'''</span>, <span style="color:PaleTurquoise">'''PaleTurquoise'''</span>, <span style="color:DarkOrange">'''DarkOrange'''</span>, etc.
::* By default, the label is ''transparent'' overwriting the image.
For small lettering use label_size=80, for tiny words use 55. Note that the words in the label will wrap unless using "nbsp": <small>DO&amp;nbsp;NOT&amp;nbsp;WRAP</small>.
 
When specifying image "width=270" be sure to ''OMIT'' "px" (which causes the image to span the width of the screen) because "px" cannot (yet) be detected by the (new) MediaWiki language which processes those mapping templates.
Line 48:
| float=right <!--(or left, center) - position of map-->
}}
<codediv style="font-family: monospace;"><!--indent next line by 1 space to trigger quote-box -->
<nowiki>{{</nowiki>Location map | 100x100
| caption = Example on blank image
Line 62:
| float=right <!--left/center-->
}}
</codediv>
 
{{Location_map | 100x100
Line 78:
| float=right <!--(or left, center) - position of map-->
}}
<codediv style="font-family: monospace;"><!--indent next line by 1 space to trigger quote-box -->
<nowiki>{{</nowiki>Location map | 100x100
| AlternativeMap = Gold star on blue.gif
Line 93:
| float=right <!--left/center-->
}}
</codediv>
 
==Other options==