Difference between revisions of "Template:Map/Label"

From Highway 0, the Kentucky Route Zero wiki
Jump to navigation Jump to search
(no need for halfwidth)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<noinclude><!-- Inspired by https://fr.wikipedia.org/wiki/Modèle:Étiquette -->
 
<noinclude><!-- Inspired by https://fr.wikipedia.org/wiki/Modèle:Étiquette -->
 
:See: [[Template:Map]]
 
:See: [[Template:Map]]
 +
 +
[[Category:Map Templates]]
 
</noinclude>
 
</noinclude>
<includeonly><div class="map_dot" style="position:absolute; left:{{{1|50}}}%; top:{{{2|50}}}%; width:5px; height:5px; margin-left:-2px; margin-left:-2px; background: {{{color|white}}}"></div><div class="map_line" style="position:absolute; left:{{{1|50}}}%; top:{{{2|50}}}%; width:1px; height:{{{length|10}}}px; background: {{{color|white}}}"></div><div class="map_label" style="position:absolute; left:{{{1|50}}}%; top:{{{2|50}}}%; box-sizing:border-box; font-size:.9em; line-height: 1.2em; width:{{{width|10}}}em; margin-left:-{{{halfwidth|5}}}em; margin-top:{{{length|10}}}px; padding:.25em; background:black; color:{{{color|white}}}; text-align:center; border:solid 1px {{{color|white}}};">{{{3|}}}</div></includeonly>
+
<includeonly><div class="map_dot" style="position:absolute; left:{{{1|50}}}%; top:{{{2|50}}}%; width:5px; height:5px; margin-left:-2px; margin-left:-2px; background: {{{color|white}}}"></div><div class="map_line" style="position:absolute; left:{{{1|50}}}%; top:{{{2|50}}}%; width:1px; height:{{{length|10}}}px; background: {{{color|white}}}"></div><div class="map_label" style="position:absolute; left:{{{1|50}}}%; top:{{{2|50}}}%; box-sizing:border-box; font-size:.9em; line-height: 1.2em; width:{{{width|10}}}em; margin-left:-{{#expr:{{{width|10}}}/2}}em; margin-top:{{{length|10}}}px; padding:.25em; background:black; color:{{{color|white}}}; text-align:center; border:solid 1px {{{color|white}}};">{{{3|}}}</div></includeonly>

Latest revision as of 19:20, 2 February 2020