Template:Zone: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
(potentially flexible layout instead of fixed table layout, visually should look about same)
m (chrome bug? border-spacing uses rem not em)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div role="figure" aria-label="Infobox" class="infobox" style="position: relative; width: 250px; 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.5em; width: 250px; 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-bottom: 1em;">[[File:{{{Splash Image}}}|250px|alt=Splash]]</div>}}
{{#if: {{{Splash Image|}}}|<div style="margin: 0.2em 0.2em 0.4em;">[[File:{{{Splash Image}}}|277px|alt=Splash]]</div>}}
<div>[[File:{{{Zone Map}}}|{{{Width|250}}}px|alt=Map]]</div>
<div style="margin: 0.2em 0.2em 0.4em;>[[File:{{{Zone Map}}}|{{{Width|277}}}px|alt=Map]]</div>
<div style="font-weight: bold;">{{{Type of Zone}}} ({{{Level Range}}})</div>
<div style="margin: 0.2em; font-weight: bold;">{{{Type of Zone}}} ({{{Level Range}}})</div>


<dl style="display: table; margin: 0 0 -0.2em; 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;">
Line 75: Line 75:
</dl>
</dl>
{{#if:{{{VidiotMap|}}}|
{{#if:{{{VidiotMap|}}}|
<div style="margin: 0.2em; background-color: lightgrey;"><!--[http://www.badge-hunter.com/index.php?/page/maps_po.php?map={{{VidiotMaps File}}}&type=po {{{Zone Name}}} at VidiotMaps.com]-->[[:Media:{{{VidiotMap}}} VidiotMap.png|{{{VidiotMap}}} VidiotMap]]</div>
<div style="margin: 0.2em; padding: 0.2em; background-color: lightgrey;"><!--[http://www.badge-hunter.com/index.php?/page/maps_po.php?map={{{VidiotMaps File}}}&type=po {{{Zone Name}}} at VidiotMaps.com]-->[[:Media:{{{VidiotMap}}} VidiotMap.png|{{{VidiotMap}}} VidiotMap]]</div>
}}{{#if:{{{VidiotMap2|}}}|
}}{{#if:{{{VidiotMap2|}}}|
<div style="margin: 0.2em; background-color: lightgrey;">[[:Media:{{{VidiotMap2}}} VidiotMap.png|{{{VidiotMap2}}} VidiotMap]]</div>
<div style="margin: 0.2em; padding: 0.2em; background-color: lightgrey;">[[:Media:{{{VidiotMap2}}} VidiotMap.png|{{{VidiotMap2}}} VidiotMap]]</div>
}}
}}
<div style="margin: 0.2em; background-color: lightgrey;">{{#if:{{{MoreMaps4U|}}}{{{MoreMapsAlt|}}}|[[:Media:{{{MoreMaps4U}}} MoreMaps4U.png|{{{MoreMapsAlt}}} MoreMaps4U Map]]|No updated MoreMaps4U map available}}</div>
<div style="margin: 0.2em; padding: 0.2em; background-color: lightgrey;">{{#if:{{{MoreMaps4U|}}}{{{MoreMapsAlt|}}}|[[:Media:{{{MoreMaps4U}}} MoreMaps4U.png|{{{MoreMapsAlt}}} MoreMaps4U Map]]|No updated MoreMaps4U map available}}</div>


</div><noinclude>Template to be used for city zone infoboxes.
</div><noinclude>Template to be used for city zone infoboxes.


[[Category:Standardized Text Templates]]</noinclude>
[[Category:Standardized Text Templates]]</noinclude>

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.