Template:Ward: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 3: Line 3:
{{#cargo_declare:_table=Wards|Name=String|Type=String|Short=String|Description=Wikitext|Districs=Wikitext|Population=String|Level=String|OtherNames=List (,) of String|Denonym=String|Parent=Page}}
{{#cargo_declare:_table=Wards|Name=String|Type=String|Short=String|Description=Wikitext|Districs=Wikitext|Population=String|Level=String|OtherNames=List (,) of String|Denonym=String|Parent=Page}}
</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>}}}}<div class="flexcardcontainer"><div class="flexcard" style="flex-grow: 8;>{{#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>}}}}<div class="flexcardcontainer"><div class="flexcard_2_thirds">{{#if:{{{headerImage|}}}|[[File:{{{headerImage}}}|class=fullwidth]]}}
{{#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 12: Line 12:


<div class="flexcardcontainer">{{#arraymap:{{{Districts}}}|,|¤#|<div class="flexcard" style="min-width:280px;">¤#</div>}}</div>}}}}
<div class="flexcardcontainer">{{#arraymap:{{{Districts}}}|,|¤#|<div class="flexcard" style="min-width:280px;">¤#</div>}}</div>}}}}
{{#if:{{{isMaster|}}}|</div><div class="flexcard" style="min-width:270px;">
{{#if:{{{isMaster|}}}|</div><div class="flexcard_1_third " style="min-width:270px;">
<div style="background-color: var(--pi-secondary-background); padding:6px;">
<div style="background-color: var(--pi-secondary-background); padding:6px;">
<h3>{{PAGENAME}}</h3>
<h3>{{PAGENAME}}</h3>

Revision as of 09:18, 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.