Template:Infobox Location: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{infobox
<table class="infobox location">
|aboveclass = mergedtoprow name mergedbottomrow
<tr>
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
<th class="name" colspan="2">{{{title|{{PAGENAME}}}}}</th>
|subheaderrowclass1 = mergedtoprow title {{{locationtype|}}}
</tr>
|subheader1 = {{#if:{{{type|}}}|{{{type|}}}}}
{{#if:{{{tag|}}}|
|subheaderrowclass2 = mergedbottomrow {{{locationtype|}}}
<tr class="mergedtoprow">
|subheader2 = of {{#if:{{{location|}}}|{{{location|}}}}}
<td class="tag" colspan="2">{{{tag}}}</td>
|imagerowclass1 = mergedtoprow mergedbottomrow
</tr>
|image1 = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}}
}}
|caption1 = {{#if:{{{image-caption|}}}|{{{image-caption|}}}}}
{{#if:{{{image|}}}|
|imagerowclass2 = mergedtoprow mergedbottomrow
<tr class="mergedtoprow">
|image2 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
<td colspan="2">[[File:{{{image}}}|275px]]</td>
|rowclass1 = mergedtoprow {{#if:{{{population|}}}||mergedbottomrow}}
</tr>
|label1 = Area
}}
|data1 = {{#if:{{{area|}}}|{{{area|}}}}}
{{#if:{{{location|}}}|
|rowclass2 = {{#if:{{{area|}}}||mergedtoprow}} mergedbottomrow
<tr class="mergedtoprow">
|label2 = Population
<th>Location</th>
|data2 = {{#if:{{{population|}}}|{{{population|}}}}}
<td>{{{location}}}</td>
|rowclass3 = mergedtoprow {{#if:{{{largestcities|}}}||mergedbottomrow}}
</tr>
|label3 = Countries
}}
|data3 = {{#if:{{{countries|}}}|{{{countries|}}}}}
{{#if:{{{area|}}}|
|rowclass4 = {{#if:{{{countries|}}}||mergedtoprow}} mergedbottomrow
<tr class="mergedrow">
|label4 = Largest Cities
<th>Area</th>
|data4 = {{#if:{{{largestcities|}}}|{{{largestcities|}}}}}
<td>{{{area}}}</td>
|rowclass5 = mergedtoprow mergedbottomrow
</tr>
|label5 = Owner
}}
|data5 = {{#if:{{{owner|}}}|{{{owner|}}}}}
{{#if:{{{owner|}}}|
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{government|}}}|1|0}}or{{#if:{{{ruler|}}}|1|0}}|1||mergedbottomrow}}}}
<tr class="mergedrow">
|label6 = Capital
<th>Owner</th>
|data6 = {{#if:{{{capital|}}}|{{{capital|}}}}}
<td>{{{owner}}}</td>
|rowclass7 = {{#if:{{{capital|}}}||mergedtoprow}} mergedrow {{#if:{{{ruler|}}}||mergedbottomrow}}
</tr>
|label7 = Government
}}
|data7 = {{#if:{{{government|}}}|{{{government|}}}}}
</table>
|rowclass8 = {{#ifeq:{{#expr:{{#if:{{{capital|}}}|1|0}}or{{#if:{{{government|}}}|1|0}}|1||mergedtoprow}}}} mergedbottomrow
[[Category:All Locations]]
|label8 = {{#if:{{{rulertype|}}}|{{{rulertype|}}}}}
{{#if:{{{tag|}}}|[[Category:All {{{tag}}}s]]}}
|data8 = {{#if:{{{ruler|}}}|{{{ruler|}}}}}
|rowclass9 = mergedtoprow mergedbottomrow
|label9 = Nearest City
|data9 = {{#if:{{{nearestcity|}}}|{{{nearestcity|}}}}}
|rowclass10 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{languages|}}}|1|0}}or{{#if:{{{religions|}}}|1|0}}|1||mergedbottomrow}}}}
|label10 = Largest City
|data10 = {{#if:{{{largestcity|}}}|{{{largestcity|}}}}}
|rowclass11 = {{#if:{{{largestcity|}}}||mergedtoprow}} mergedrow {{#ifeq:{{#expr:{{#if:{{{temples|}}}|1|0}}or{{#if:{{{religions|}}}|1|0}}|1||mergedbottomrow}}}}
|label11 = Major Languages
|data11 = {{#if:{{{languages|}}}|{{{languages|}}}}}
|rowclass12 = {{#if:{{{languages|}}}||mergedtoprow}} mergedbottomrow
|label12 = Notable Temples
|data12 = {{#if:{{{temples|}}}|{{{temples|}}}}}
|rowclass13 = {{#ifeq:{{#expr:{{#if:{{{largestcity|}}}|1|0}}or{{#if:{{{languages|}}}|1|0}}|1||mergedtoprow}}}} mergedbottomrow
|label13 = Major Religions
|data13 = {{#if:{{{religions|}}}|{{{religions|}}}}}
|rowclass14 = mergedtoprow mergedbottomrow
|label14 = Setting
|data14 = {{#if:{{{setting|}}}|{{{setting|}}}}}
}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 17:44, 4 July 2021