Difference between revisions of "Template:Location"

rm featured in
m
(rm featured in)
 
(37 intermediate revisions by 5 users not shown)
{{infobox
|title={{{placename|{{PAGENAME}}|}}}|id=location|
|{{#if:{{{map|}}}|{{row/image|{{{map}}}|width={{{map-width|240px}}}|}}|}}<!--
 
<!-- map or image -->
-->{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{{ethnicity}}}<!-- -->}}|}}<!--
-->{{#if:{{{capitalmap|}}} |{{row/kv|Capitalimage+artist |{{{capitalmap}}}<!-- -->}}|}}<!--
-->{{#if:{{{rulerimage|}}} |{{row/kv|Ruler image+artist |{{{rulerimage}}}<!-- -->}}|}}<!--
 
<!-- about -->
location
-->{{#if:{{{raw-citycapital|}}} |{{row/kv|City Capital |{{{raw-citycapital}}}<!-- -->[[Category: infobox.raw-city]]<!-- -->}}|}}<!--
-->{{#if:{{{cityruler|}}} |{{row/kv|City Ruler |{{toponym tag|{{{cityruler}}}|}}[[Category: infobox.city<!-- -->}}|}}<!--
-->{{#if:{{{raw-stateoccupied|}}} |{{row/kv|State Occupied by |{{{raw-stateoccupied}}}<!-- -->[[Category: infobox.raw-state]]<!-- -->}}|}}<!--
-->{{#if:{{{stateera|}}} |{{row/kv|State Era |[[{{toponym tag|{era}}}]]{{era/{{{stateera}}}|}}[[Category: infobox.state]]<!-- -->}}|}}<!--
 
-->{{#if:{{{dominance|}}} |{{row/kv|Dominance |{{tag|{{{dominance}}} Dominance}}<!-- -->}}|}}<!--
<!-- location -->
-->{{#if:{{{princedom|}}} |{{row/kv|Princedom |{{tag|{{{princedom}}} princedom}}<!-- -->}}|}}<!--
-->{{#if:{{{raw-region'city|}}} |{{row/kv|Region City |{{{raw-region'city}}}{{raw/city}}<!-- -->[[Category: infobox.raw-region]]<!-- -->}}|}}<!--
-->{{#if:{{{regioncity|}}} |{{row/kv|Region City |{{toponymplace tag|{{{regioncity}}}|}}[[Category: infobox.region]]<!-- -->}}|}}<!--
-->{{#if:{{{raw-nation'state|}}} |{{row/kv|Nation State |{{{'state}}}{{raw-nation}/state}}<!-- -->[[Category: infobox.raw-nation]]<!-- -->}}|}}<!--
-->{{#if:{{{nationstate|}}} |{{row/kv|Nation State |{{toponymplace tag|{{{nationstate}}}|}}<!-- -->}}|}}<!--
-->{{#if:{{{raw-worlddominance|}}} |{{row/kv|World Dominance |{{tag|{raw-world{{dominance}}}<!-- -->[[Category: infobox.raw-world]]Dominance}}<!-- -->}}|}}<!--
-->{{#if:{{{earthprincedom|}}} |{{row/kv|World Princedom |[[Earth ({{tag|{{{earthprincedom}}})]][[Category: {{{earthprincedom}}} places]]<!-- -->}}|}}<!--
-->{{#if:{{{world'region|}}} |{{row/kv|World Region |{{toponym tag|{{{world'region}}}|{{raw/region}}<!-- -->}}|}}<!--
-->{{#if:{{{universeregion|}}} |{{row/kv|Universe Region |{{place tag|{{{universeregion}}}|}}<!-- -->[[Category: infobox.universe]]<!-- -->}}|}}<!--
{{#if:{{{'nation|}}} |{{row/kv| Nation |{{{'nation}}}{{raw/nation}}<!-- -->}}|}}
{{#if:{{{nation|}}} |{{row/kv| Nation |{{place tag|{{{nation}}}|}}<!-- -->}}|}}
{{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}}{{raw/world}}<!-- -->}}|}}
{{#if:{{{earth|}}} |{{row/kv| World |{{earth tag|earth={{{earth}}}|cat=Earth ({{{earth}}})}} |}}|}}
{{#if:{{{world|}}} |{{row/kv| World |{{place tag|{{{world}}}|}}<!-- -->}}|}}
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}}
 
featured in
-->{{row/kv|Featured In|''{{{books}}}''|}}
}}<includeonly><!--
 
-->{{cat ns|Locations|only=0}}<!--
-->[[Category: Places]]<!--
 
-->{{#if:{{{location|}}}|[[Category: infobox.location]]}}<!--
-->{{#if:{earth|}}}<!-- -->{{country{world|}}}<!-- -->{{{'world|[[Category:}}}<!-- infobox.country]]-->{{{universe|}}}<!--
-->{{#if:{{{era|}}}|[[Category: {{infobox.era]]/no-world}}<!--
-->}}<!--
 
-->{{#if:{{{map-artist|}}}|[[category: redundant artist attribution]]}}<!--
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!--
 
--></includeonly><noinclude>
 
The general ''{{t|location}}'' infobox template can be used to describe locations that cannot be better described by other location templates, such as:
This template allows you to include information about a country, city, geographical landmark, building, or other place on its article.
* {{t|nation}} for nations, kingdoms, etc.
* {{t|settlement}} for cities, villages, etc.
* {{t|architecture}} for buildings
* {{t|geography}} for features of the landscape, such as rivers, mountains, and lakes
 
 
__TOC__
 
=== Template ===
<pre class=mw-code>
{{location
|map= / image=
|capital=
|ruler=
|occupied=
|era=
|city=
|state=
|dominance=
|princedom=
|region=
|nation=
|world= / earth=
|universe=
}}
</pre>
 
=== Parameters ===
Highlighted lines indicate '''mandatory''' parameters.
On lines with multiple parameters (e.g. <code>|world= / earth=</code>) pick only the one most appropriate.
 
{{docs|title={{t|Location}} Parameters}}
 
<!-- ---------------- -->
<!-- ROW: image / map -->
<!-- ---------------- -->
{{docs/row/optional
|'param= <code>image</code> <br><small>or</small><br> <code>map</code>
|desc= Use this to display a relevant image hosted on the Coppermind.
<small>See [[Help:Infoboxes]] for further details.</small>
|eg=
<code><nowiki>|image=Shadesmar (TWoK).jpg</nowiki></code><br>
<code><nowiki>|map=Locator_Frostlands.png</nowiki></code>
}}
 
<!-- ------------ -->
<!-- ROW: capital -->
<!-- ------------ -->
{{docs/row/optional
|param= capital
|desc= Use this to specify the capital of nation-like locations.
|eg=
<code><nowiki>|capital=[[Kholinar]]</nowiki></code>
}}
 
<!-- ---------- -->
<!-- ROW: ruler -->
<!-- ---------- -->
{{docs/row/optional
|param= ruler
|desc= Use this to specify the ruler of the location.
|eg=
<code><nowiki>|ruler=[[Torol Sadeas]]</nowiki></code>
}}
 
<!-- ------------- -->
<!-- ROW: occupied -->
<!-- ------------- -->
{{docs/row/optional
|param= occupied
|desc= When the location is contested in a war, use this to specify which party holds it currently. Mostly useful for locations of [[Roshar]] as the war with [[Odium]]'s forces unfolds.
|eg=
<code><nowiki>|occupied=[[Alethkar]]</nowiki></code>
}}
 
<!-- -------- -->
<!-- ROW: era -->
<!-- -------- -->
{{docs/row/optional
|param= era
|desc= Use this to specify which era the location existed or exists in.
|eg=
<code><nowiki>|era=[[Classical Scadrial]]</nowiki></code><br>
<code><nowiki>|era=[[Heraldic Epochs]]</nowiki></code><br>
<code><nowiki>|era=Post-Catacendre</nowiki></code>
}}
 
<!-- --------- -->
<!-- ROW: city -->
<!-- --------- -->
{{docs/row/optional
|param= city
|desc= Use this to specify the city where the location can be found.<br>
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'city</code>.</small><br>
<small>See [[Help: Infoboxes]] for further details.
|eg=
<code><nowiki>|city=Elendel</nowiki></code><br>
<code><nowiki>|'city=[[Wikipedia: Boston|Boston]]</nowiki></code>
}}
 
<!-- ---------- -->
<!-- ROW: state -->
<!-- ---------- -->
{{docs/row/optional
|param= state
|desc= Use this to specify the state where the location can be found.
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'state</code>.</small><br>
<small>See [[Help: Infoboxes]] for further details.
|eg=
<code><nowiki>|state=Alornia</nowiki></code><br>
<code><nowiki>|'state=[[Wikipedia: Iowa|Iowa]]</nowiki></code>
}}
 
<!-- -------------- -->
<!-- ROW: dominance -->
<!-- -------------- -->
{{docs/row/optional
|param= dominance
|desc= Use this to specify the [[Final Empire]] [[Dominance]] where the location can be found.
<small>'''Note:''' Automatically generates a link.</small><br>
<small>See [[Help: Infoboxes]] for further details.
|eg=
<code><nowiki>|dominance=Central</nowiki></code>
}}
 
<!-- -------------- -->
<!-- ROW: princedom -->
<!-- -------------- -->
{{docs/row/optional
|param= princedom
|desc= Use this to specify the [[Alethi]] princedoms where the location can be found.
<small>'''Note:''' Automatically generates a link.</small><br>
<small>See [[Help: Infoboxes]] for further details.
|eg=
<code><nowiki>|princedom=Kholin</nowiki></code>
}}
 
<!-- ----------- -->
<!-- ROW: region -->
<!-- ----------- -->
{{docs/row/optional
|param=region
|desc= Use this to specify the region where the location can be found.
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'region</code>.</small><br>
<small>See [[Help: Infoboxes]] for further details.
|eg=
<code><nowiki>|region=Elendel Basin</nowiki></code><br>
<code><nowiki>|'region=[[Wikipedia: Midwest|Midwest]]</nowiki></code>
}}
 
<!-- ----------- -->
<!-- ROW: nation -->
<!-- ----------- -->
{{docs/row/optional
|param= nation
|desc= Use this to specify the nation where the location can be found.
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'nation</code>.</small><br>
<small>See [[Help: Infoboxes]] for further details.
|eg=
<code><nowiki>|nation=Alethkar</nowiki></code><br>
<code><nowiki>|'nation=[[Wikipedia: USA|American]]</nowiki></code>
 
}}
 
<!-- ------------------ -->
<!-- ROW: world / earth -->
<!-- ------------------ -->
{{docs/world}}
 
<!-- ------------- -->
<!-- ROW: universe -->
<!-- ------------- -->
{{docs/universe}}
 
|}
 
=== Categories & Tags ===
There are two required parameters, the {{{world}}} that the place inhabits, and the {{{books}}} or series the place is set upon.
Pages that make use of the ''{{t|location}}'' template will be added to [[:Category: Locations]]. In addition to this, specifying an <code>earth</code> in the infobox will apply the appropriate [[Earth]] category (<small>e.g. <code>|earth=Reckoners</code> will apply [[:Category:Earth (Reckoners)]]</small>).
A number of optional parameters allow you to pinpoint the location to a particular {{{region}}}, {{{country}}}, {{{capital}}} or {{{city}}}. {{{capital}}} should be used when talking about countries, {{{city}}} should be used when talking about places inside a city.
Another parameter allows you to define the {{{era}}} or time period the place existed in.
 
An advanced field {{{location}}} allows you to add {{t|row/kv}}s directly, and {{{place}}} allows you to change the box heading.
 
[[Category: Infoboxes]]
== Articles using Template ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}