Template:Ward: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 4: Line 4:
</noinclude><includeonly>{{#if:{{{isMaster|}}}|{{#cargo_store:_table=Wards|Name={{SUBPAGENAME}}}}
</noinclude><includeonly>{{#if:{{{isMaster|}}}|{{#cargo_store:_table=Wards|Name={{SUBPAGENAME}}}}
{{#ifeq:{{{Parent|}}}|The City|<yambe:breadcrumb>The City</yambe:breadcrumb>|<div id="yambe" class="noprint">[[Main Page|Front Page]] &gt; [[Settlements]] &gt; [[{{{Parent}}} &gt; {{SUBPAGENAME}}]]</div>}}}}{{#if:{{{headerImage|}}}|[[File:{{{headerImage}}}|class=fullwidth]]}}
{{#ifeq:{{{Parent|}}}|The City|<yambe:breadcrumb>The City</yambe:breadcrumb>|<div id="yambe" class="noprint">[[Main Page|Front Page]] &gt; [[Settlements]] &gt; [[{{{Parent}}} &gt; {{SUBPAGENAME}}]]</div>}}}}{{#if:{{{headerImage|}}}|[[File:{{{headerImage}}}|class=fullwidth]]}}
{{#if:{{{isMaster|}}}|<infobox layout="stacked">
{{#if:{{{isMaster|}}}|<div style="float: right;width: var(--pi-width);">
<navigation>
<p style="background-color: var(--pi-secondary-background);">
<h3>{{PAGENAME}}</h3>
<h3>{{PAGENAME}}</h3>
{{#if:{{{sideImage|}}}|[[Image:{{{sideImage}}}|class=fullwidth]]}} <p class="infoboxHeader">Basic Info</p> {{InfoBoxRow|{{{Type|}}}|Type}} {{InfoBoxRow|{{{OtherNames|}}}|Alternative Name(s)}} {{InfoBoxRow|{{{Level|}}}|Level}} {{InfoBoxRow|{{{Population|}}}|Population}} {{InfoBoxRow|{{{Denonym|}}}|Denonym}}     
{{#if:{{{sideImage|}}}|[[Image:{{{sideImage}}}|class=fullwidth]]}} <p class="infoboxHeader">Basic Info</p> {{InfoBoxRow|{{{Type|}}}|Type}} {{InfoBoxRow|{{{OtherNames|}}}|Alternative Name(s)}} {{InfoBoxRow|{{{Level|}}}|Level}} {{InfoBoxRow|{{{Population|}}}|Population}} {{InfoBoxRow|{{{Denonym|}}}|Denonym}}     
</navigation>
</p>
</infobox>}}
{{#if:{{{Factions|}}}|<p><h3>Guilds and Factions</h3>
{{{Factions}}}</p>}}
</div>}}
{{#if:{{{isMaster|}}}||<h3 style="margin-top: 0em;"> {{{Name}}} [[File:Link tome.webp|25px|link={{{Name}}}]]</h3>}}
{{#if:{{{isMaster|}}}||<h3 style="margin-top: 0em;"> {{{Name}}} [[File:Link tome.webp|25px|link={{{Name}}}]]</h3>}}
''{{{Short}}}''
''{{{Short}}}''
Line 15: Line 17:
{{{Description}}}
{{{Description}}}


{{#if:{{{isMaster|}}}|{{#if:{{{Factions|}}}|<div style="float: right;width: var(--pi-width);"><h3>Guilds and Factions</h3>
{{#if:{{{isMaster|}}}|{{#if:{{{Districts|}}}|<h3>Districts</h3>
{{{Factions}}}</div>}}}}{{#if:{{{isMaster|}}}|{{#if:{{{Districts|}}}|<h3>Districts</h3>


{{#arraymap:{{{Districts}}}|,|x|x}}}}}}
{{#arraymap:{{{Districts}}}|,|x|x}}}}}}

Revision as of 08:03, 16 June 2023

This is the "Ward" template.

It should be called in the following format:

{{Ward
|Type=
|Short=
|Description=
|Districts=
|Factions=
|Population=
|Level=
|OtherNames=
|Denonym=
|Parent=
|isMaster=
|headerImage=
|sideImage=
|sideLink=
}}

Edit the page to see the template text.

This template defines the table "Wards". View table.