Template:Zone: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
(avoid wrapping links)
m (chrome bug? border-spacing uses rem not em)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div role="figure" aria-label="Infobox" class="infobox" style="position: relative; width: calc(234px + 0.4em); text-align: center; font-size: 95%; margin-top: 2em; margin-left: 2em; {{#switch: {{lc:{{{Type of Zone}}}}}
<div role="figure" aria-label="Infobox" class="infobox" style="position: relative; width: calc(277px + 0.4em); text-align: center; font-size: 95%; margin-top: 2em; margin-left: 2em; {{#switch: {{lc:{{{Type of Zone}}}}}
|hero city zone=border:2px solid #0000A0;
|hero city zone=border:2px solid #0000A0;
|hero hazard zone=border:2px dashed #0000A0;
|hero hazard zone=border:2px dashed #0000A0;
Line 21: Line 21:
}}">
}}">


<div style="position: absolute; top: -1.3em; width: calc(234px + 0.4em); font-size: larger; font-weight: bold;">{{{Zone Name}}}</div>
<div style="position: absolute; top: -1.3em; width: calc(277px + 0.4em); font-size: larger; font-weight: bold;">{{{Zone Name}}}</div>
{{#if: {{{Splash Image|}}}|<div style="margin: 0.2em 0.2em 0.4em;">[[File:{{{Splash Image}}}|234px|alt=Splash]]</div>}}
{{#if: {{{Splash Image|}}}|<div style="margin: 0.2em 0.2em 0.4em;">[[File:{{{Splash Image}}}|277px|alt=Splash]]</div>}}
<div style="margin: 0.2em 0.2em 0.4em;>[[File:{{{Zone Map}}}|{{{Width|234}}}px|alt=Map]]</div>
<div style="margin: 0.2em 0.2em 0.4em;>[[File:{{{Zone Map}}}|{{{Width|277}}}px|alt=Map]]</div>
<div style="margin: 0.2em; font-weight: bold;">{{{Type of Zone}}} ({{{Level Range}}})</div>
<div style="margin: 0.2em; font-weight: bold;">{{{Type of Zone}}} ({{{Level Range}}})</div>


<dl class="nowraplinks" style="display: table; margin: 0 0 -0.2em; width: 100%; border-spacing: 0.2em; text-align: left;">
<dl class="nowraplinks" style="display: table; margin: 0 0 -0.2em; width: 100%; border-spacing: 0.2105rem; text-align: left;">


<div style="display: table-row; background-color: #DDDDDD;">
<div style="display: table-row; background-color: #DDDDDD;">

Latest revision as of 06:59, 13 May 2022

{{{Zone Name}}}
[[File:{{{Zone Map}}}|277px|alt=Map]]
{{{Type of Zone}}} ({{{Level Range}}})
No updated MoreMaps4U map available

Template to be used for city zone infoboxes.