Template:Infobox Location: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{{infobox
<table class="infobox location">
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}
<tr>
|subheader1 = {{#if:{{{type|}}}|{{{type|}}}}}
<th class="name" colspan="2">{{{title|{{PAGENAME}}}}}</th>
|image1 = {{#if:{{{image|}}}|[[File:{{{image|}}}:250px]]}}
</tr>
|caption1 = {{#if:{{{image-caption|}}}|{{{image-caption|}}}}}
{{#if:{{{tag|}}}|
|image2 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
<tr class="mergedtoprow">
|label1 = Location
<td class="tag {{{tag}}}" colspan="2">{{{tag}}}</td>
|data1 = {{#if:{{{location|}}}|{{{location|}}}}}
</tr>
}}
}}
{{#if:{{{image|}}}|
<tr class="mergedtoprow">
<td colspan="2">[[File:{{{image}}}|275px]]</td>
</tr>
}}
{{#if:{{{image-tab|}}}|
<tr class="mergedtoprow">
<td colspan="2">{{{image-tab}}}</td>
</tr>
}}
{{#if:{{{location|}}}|
<tr class="mergedtoprow">
<th>Location</th>
<td>{{{location}}}</td>
</tr>
}}
{{#if:{{{continent|}}}|
<tr class="mergedtoprow">
<th>Continent</th>
<td>{{{continent}}}</td>
</tr>
}}
{{#if:{{{country|}}}|
<tr class="mergedtoprow">
<th>Country</th>
<td>{{{country}}}</td>
</tr>
}}
{{#if:{{{nearestcity|}}}|
<tr class="mergedrow">
<th>Nearest City</th>
<td>{{{nearestcity}}}</td>
</tr>
}}
{{#if:{{{largestcity|}}}|
<tr class="mergedrow">
<th>Largest City</th>
<td>{{{largestcity}}}</td>
</tr>
}}
{{#if:{{{population|}}}|
<tr class="mergedrow">
<th>Population</th>
<td>{{{population}}}</td>
</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>