Template:Infobox Location: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(21 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 {{{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:{{{image-tab|}}}|
|rowclass2 = {{#if:{{{area|}}}||mergedtoprow}} mergedbottomrow
<tr class="mergedtoprow">
|label2 = Population
<td colspan="2">{{{image-tab}}}</td>
|data2 = {{#if:{{{population|}}}|{{{population|}}}}}
</tr>
|rowclass3 = mergedtoprow {{#if:{{{largestcities|}}}||mergedbottomrow}}
}}
|label3 = Countries
{{#if:{{{location|}}}|
|data3 = {{#if:{{{countries|}}}|{{{countries|}}}}}
<tr class="mergedtoprow">
|rowclass4 = {{#if:{{{countries|}}}||mergedtoprow}} mergedbottomrow
<th>Location</th>
|label4 = Largest Cities
<td>{{{location}}}</td>
|data4 = {{#if:{{{largestcities|}}}|{{{largestcities|}}}}}
</tr>
|rowclass5 = mergedtoprow mergedbottomrow
}}
|label5 = Owner
{{#if:{{{continent|}}}|
|data5 = {{#if:{{{owner|}}}|{{{owner|}}}}}
<tr class="mergedtoprow">
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{government|}}}|1|0}}or{{#if:{{{ruler|}}}|1|0}}|1||mergedbottomrow}}}}
<th>Continent</th>
|label6 = Capital
<td>{{{continent}}}</td>
|data6 = {{#if:{{{capital|}}}|{{{capital|}}}}}
</tr>
|rowclass7 = {{#if:{{{capital|}}}||mergedtoprow}} mergedrow {{#if:{{{ruler|}}}||mergedbottomrow}}
}}
|label7 = Government
{{#if:{{{country|}}}|
|data7 = {{#if:{{{government|}}}|{{{government|}}}}}
<tr class="mergedtoprow">
|rowclass8 = {{#ifeq:{{#expr:{{#if:{{{capital|}}}|1|0}}or{{#if:{{{government|}}}|1|0}}|1||mergedtoprow}}}} mergedbottomrow
<th>Country</th>
|label8 = {{#if:{{{rulertype|}}}|{{{rulertype|}}}}}
<td>{{{country}}}</td>
|data8 = {{#if:{{{ruler|}}}|{{{ruler|}}}}}
</tr>
|rowclass9 = mergedtoprow mergedbottomrow
}}
|label9 = Nearest City
{{#if:{{{nearestcity|}}}|
|data9 = {{#if:{{{nearestcity|}}}|{{{nearestcity|}}}}}
<tr class="mergedrow">
|rowclass10 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{languages|}}}|1|0}}or{{#if:{{{religions|}}}|1|0}}|1||mergedbottomrow}}}}
<th>Nearest City</th>
|label10 = Largest City
<td>{{{nearestcity}}}</td>
|data10 = {{#if:{{{largestcity|}}}|{{{largestcity|}}}}}
</tr>
|rowclass11 = {{#if:{{{largestcity|}}}||mergedtoprow}} mergedrow {{#ifeq:{{#expr:{{#if:{{{temples|}}}|1|0}}or{{#if:{{{religions|}}}|1|0}}|1||mergedbottomrow}}}}
}}
|label11 = Major Languages
{{#if:{{{largestcity|}}}|
|data11 = {{#if:{{{languages|}}}|{{{languages|}}}}}
<tr class="mergedrow">
|rowclass12 = {{#if:{{{languages|}}}||mergedtoprow}} mergedbottomrow
<th>Largest City</th>
|label12 = Notable Temples
<td>{{{largestcity}}}</td>
|data12 = {{#if:{{{temples|}}}|{{{temples|}}}}}
</tr>
|rowclass13 = {{#ifeq:{{#expr:{{#if:{{{largestcity|}}}|1|0}}or{{#if:{{{languages|}}}|1|0}}|1||mergedtoprow}}}} mergedbottomrow
}}
|label13 = Major Religions
{{#if:{{{population|}}}|
|data13 = {{#if:{{{religions|}}}|{{{religions|}}}}}
<tr class="mergedrow">
|rowclass14 = mergedtoprow mergedbottomrow
<th>Population</th>
|label14 = Setting
<td>{{{population}}}</td>
|data14 = {{#if:{{{setting|}}}|{{{setting|}}}}}
</tr>
}}
}}
{{#if:{{{area|}}}|
<tr class="mergedrow">
<th>Area</th>
<td>{{{area}}}</td>
</tr>
}}
{{#if:{{{owner|}}}|
<tr class="mergedrow">
<th>Owner</th>
<td>{{{owner}}}</td>
</tr>
}}
{{#if:{{{countries|}}}|
<tr class="mergedtoprow">
<th>Countries</th>
<td>{{{countries}}}</td>
</tr>
}}
{{#if:{{{largestcities|}}}|
<tr class="mergedrow">
<th>Largest Cities</th>
<td>{{{largestcities}}}</td>
</tr>
}}
{{#if:{{{government|}}}|
<tr class="mergedtoprow">
<th>Government</th>
<td>{{{government}}}</td>
</tr>
}}
{{#if:{{{capital|}}}|
<tr class="mergedrow">
<th>Capital</th>
<td>{{{capital}}}</td>
</tr>
}}
{{#if:{{{leader|}}}|
<tr class="mergedrow">
<th>Leader</th>
<td>{{{leader}}}</td>
</tr>
}}
{{#if:{{{languages|}}}|
<tr class="mergedtoprow">
<th>Languages</th>
<td>{{{languages}}}</td>
</tr>
}}
{{#if:{{{setting|}}}|
<tr class="mergedtoprow">
<th>Setting</th>
<td>{{{setting}}}</td>
</tr>
}}
</table>
[[Category:All Locations]]
{{#if:{{{tag|}}}|[[Category:All {{{tag}}}s]]}}
{{#if:{{{setting|}}}|[[Category:All {{{setting}}} Locations]]}}
{{#if:{{{tag|}}}|{{#if:{{{setting|}}}|[[Category:All {{{setting}}} {{{tag}}}s]]}}}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== Blank Templates ==
[[Category:Templates]]
=== Buildings/Areas ===
==== Image ====
|tag = Building/Area<br />
|image = <br />
|location = <br />
|area = <br />
|owner = <br />
|setting =
==== Image-Tab ====
|tag = Building/Area<br />
|image-tab = <br />
|location = <br />
|area = <br />
|owner = <br />
|setting =
=== Cities/Towns/Villages ===
==== Image ====
|tag = City/Town/Village<br />
|image = <br />
|country = <br />
|population = <br />
|area = <br />
|government = <br />
|leader = <br />
|languages = <br />
|setting =
==== Image-Tab ====
|tag = City/Town/Village<br />
|image-tab = <br />
|country = <br />
|population = <br />
|area = <br />
|government = <br />
|leader = <br />
|languages = <br />
|setting =
=== Forests ===
==== Image ====
|tag = Forest<br />
|image = <br />
|location = <br />
|nearestcity = <br />
|area = <br />
|setting =
==== Image-Tab ====
|tag = Forest<br />
|image-tab = <br />
|location = <br />
|nearestcity = <br />
|area = <br />
|setting =
=== Countries ===
==== Image ====
|tag = Country<br />
|image = <br />
|continent = <br />
|largestcity = <br />
|population = <br />
|area = <br />
|government = <br />
|capital = <br />
|leader = <br />
|languages = <br />
|setting =
==== Image-Tab ====
|tag = Country<br />
|image-tab = <br />
|continent = <br />
|largestcity = <br />
|population = <br />
|area = <br />
|government = <br />
|capital = <br />
|leader = <br />
|languages = <br />
|setting =
=== Continents ===
==== Image ====
|tag = Continent<br />
|image = <br />
|location = <br />
|population = <br />
|area = <br />
|countries = <br />
|largestcities = <br />
|languages = <br />
|setting =
==== Image-Tab ====
|tag = Continent<br />
|image = <br />
|location = <br />
|population = <br />
|area = <br />
|countries = <br />
|largestcities = <br />
|languages = <br />
|setting =
</noinclude>
</noinclude>

Latest revision as of 17:44, 4 July 2021