Template:Zone: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Eabrace
m (Well, that made it optional, but it broke the box in zones that are using the parameter - try #4)
m (chrome bug? border-spacing uses rem not em)
 
(44 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width: 250px; text-align: left; font-size: 95%; 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;
|hero trial zone=border:2px dashed #0000A0;
|hero trial zone=border:2px dashed #0000A0;
|hero social zone=border:3px double #0000A0;
|villain city zone=border:2px solid #A00000;
|villain city zone=border:2px solid #A00000;
|villain hazard zone=border:2px dashed #A00000;
|villain hazard zone=border:2px dashed #A00000;
|villain trial zone=border:2px dashed #A00000;
|villain trial zone=border:2px dashed #A00000;
|villain social zone=border:3px double #A00000;
|praetorian city zone=border:2px solid #C99A00;
|praetorian hazard zone=border:2px dashed #C99A00;
|praetorian trial zone=border:2px dashed #C99A00;
|praetorian social zone=border:3px double #C99A00;
|pvp zone=border:2px dotted #600060;
|pvp zone=border:2px dotted #600060;
|coop city zone=border:2px solid #000000;
|co-op city zone=border:2px solid #000000;
|coop hazard zone=border:2px dashed #000000;
|co-op hazard zone=border:2px dashed #000000;
|coop trial zone=border:2px dashed #000000;
|co-op trial zone=border:2px dashed #000000;
|co-op social zone=border:3px double #45d769;
|war zone=border:2px dashed #000000;
|war zone=border:2px dashed #000000;
|#default=border:2px solid #000000;
|#default=border:2px solid #000000;
}}" cellpadding=2
}}">
|+ style="font-size: larger;"|'''{{{Zone Name}}}'''
 
|-
<div style="position: absolute; top: -1.3em; width: calc(277px + 0.4em); font-size: larger; font-weight: bold;">{{{Zone Name}}}</div>
| colspan=2 style="text-align: center;" | [[File:{{{Zone Map}}}|{{{Width|250}}}px]]<br />
{{#if: {{{Splash Image|}}}|<div style="margin: 0.2em 0.2em 0.4em;">[[File:{{{Splash Image}}}|277px|alt=Splash]]</div>}}
'''{{{Type of Zone}}} ({{{Level Range}}})'''
<div style="margin: 0.2em 0.2em 0.4em;>[[File:{{{Zone Map}}}|{{{Width|277}}}px|alt=Map]]</div>
|- bgcolor=#DDDDDD
<div style="margin: 0.2em; font-weight: bold;">{{{Type of Zone}}} ({{{Level Range}}})</div>
! style="text-align: right"|Trainers:
 
| {{{Trainer}}}
<dl class="nowraplinks" style="display: table; margin: 0 0 -0.2em; width: 100%; border-spacing: 0.2105rem; text-align: left;">
|-
 
! style="text-align: right"|TF Contacts:
<div style="display: table-row; background-color: #DDDDDD;">
| {{{Task Force Contact}}}
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Trainers:</dt>
|- bgcolor=#DDDDDD
<dd style="display: table-cell; padding: 0.2em;">{{{Trainer}}}</dd>
! style="text-align: right"|Events:
</div>
| {{{Event}}}
 
|-
<div style="display: table-row;">
! style="text-align: right"|Exploration Badges:
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Trial / TF Contacts:</dt>
| {{{Exploration Badges}}}
<dd style="display: table-cell; padding: 0.2em;">{{{Task Force Contact}}}</dd>
|- bgcolor=#DDDDDD
</div>
! style="text-align: right"|Plaques:
 
| {{{Plaques}}}
<div style="display: table-row; background-color: #DDDDDD;">
|-
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Events:</dt>
! style="text-align: right"|Day Jobs:
<dd style="display: table-cell; padding: 0.2em;">{{{Event}}}</dd>
| {{{Day Jobs}}}
</div>
|- bgcolor=#DDDDDD
 
! style="text-align: right"|Enemies:
<div style="display: table-row;">
| {{{Enemies}}}
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Exploration Badges:</dt>
|-
<dd style="display: table-cell; padding: 0.2em;">{{{Exploration Badges}}}</dd>
! style="text-align: right"|Connecting Zones:
</div>
| {{{Connecting Zones}}}
 
|- bgcolor=#DDDDDD
<div style="display: table-row; background-color: #DDDDDD;">
! style="text-align: right"|Transits:
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Plaque Badges:</dt>
| {{{Lines}}}
<dd style="display: table-cell; padding: 0.2em;">{{{Plaques}}}</dd>
{{#if:{{{VidiotMaps File|}}}|
</div>
{{!}}- bgcolor=lightgrey
 
{{!}}colspan="2" style="text-align:center"{{!}}[http://www.vidiotmaps.com/maps_int.php?map={{{VidiotMaps File}}} {{{Zone Name}}} at VidiotMaps.com]}}
<div style="display: table-row;">
|}</includeonly>
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Day Jobs:</dt>
<dd style="display: table-cell; padding: 0.2em;">{{{Day Jobs}}}</dd>
</div>
 
<div style="display: table-row; background-color: #DDDDDD;">
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Enemies:</dt>
<dd style="display: table-cell; padding: 0.2em;">{{{Enemies}}}</dd>
</div>
 
<div style="display: table-row;">
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Connecting Zones:</dt>
<dd style="display: table-cell; padding: 0.2em;">{{{Connecting Zones}}}</dd>
</div>
 
<div style="display: table-row; background-color: #DDDDDD;">
<dt style="display: table-cell; padding: 0.2em; line-height: inherit; font-family: inherit; text-align: right;">Transits:</dt>
<dd style="display: table-cell; padding: 0.2em;">{{{Lines}}}</dd>
</div>
 
</dl>
{{#if:{{{VidiotMap|}}}|
<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|}}}|
<div style="margin: 0.2em; padding: 0.2em; background-color: lightgrey;">[[:Media:{{{VidiotMap2}}} VidiotMap.png|{{{VidiotMap2}}} VidiotMap]]</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.
 
[[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.