Difference between revisions of "Template:Location"

Jump to navigation Jump to search
m
no edit summary
m
m
(26 intermediate revisions by 5 users not shown)
{{infobox
|title={{{placename|{{PAGENAMEtranslated title}}|}}}|id=location|
 
|
<!-- map or image -->
{{#if:{{{map|}}} |{{row/image |{{{map}}} |width={{{map-width|240px}}} }}|}}
{{#if:{{{map|}}} |{{row/image+artist |{{{map}}} }}|}}
<!-- information -->
{{#if:{{{ethnicityimage|}}} |{{row/kv|Ethnicityimage+artist |{{{ethnicityimage}}}<!-- -->}}|}}
 
{{#if:{{{capital|}}} |{{row/kv|Capital |{{{capital}}}<!-- -->}}|}}
<!-- about -->
{{#if:{{{ruler|}}} |{{row/kv|Ruler |{{{ruler}}}<!-- -->}}|}}
{{#if:{{{capital|}}} |{{row/kv| Capital |{{{capital}}}<!-- -->}}|}}
{{#if:{{{ruler|}}} |{{row/kv| Ruler |{{{ruler}}}<!-- -->}}|}}
{{#if:{{{occupied|}}} |{{row/kv| Occupied by |{{{occupied}}}<!-- -->}}|}}
{{#if:{{{era|}}} |{{row/kv| Era |{{{era}}}{{era/{{{era}}}|}}<!-- -->}}|}}
 
<!-- location -->
{{#if:{{{raw-'city|}}} |{{row/kv| City |{{{'city}}}{{raw-/city}}}<!-- -->}}|}}
{{#if:{{{city|}}} |{{row/kv| City |{{place tag|{{{city}}}|}}<!-- -->}}|}}
{{#if:{{{raw-'state|}}} |{{row/kv| State |{{{'state}}}{{raw-/state}}}<!-- -->}}|}}
{{#if:{{{state|}}} |{{row/kv| State |{{place tag|{{{state}}}|}}<!-- -->}}|}}
{{#if:{{{dominance|}}} |{{row/kv| Dominance |{{tag|{{{dominance}}} Dominance}}<!-- -->}}|}}
{{#if:{{{princedom|}}} |{{row/kv| Princedom |{{tag|{{{princedom}}} princedom}}<!-- -->}}|}}
{{#if:{{{raw-'region|}}} |{{row/kv| Region |{{{'region}}}{{raw-/region}}}<!-- -->}}|}}
{{#if:{{{region|}}} |{{row/kv| Region |{{place tag|{{{region}}}|}}<!-- -->}}|}}
{{#if:{{{raw-'nation|}}} |{{row/kv| Nation |{{{'nation}}}{{raw-/nation}}}<!-- -->}}|}}
{{#if:{{{nation|}}} |{{row/kv| Nation |{{place tag|{{{nation}}}|}}<!-- -->}}|}}
{{#if:{{{raw-'world|}}} |{{row/kv| World |{{{'world}}}{{raw-/world}}}<!-- -->}}|}}
{{#if:{{{earth|}}} |{{row/kv| World |[[Earth{{earth (tag|earth={{{earth}}})]][[Category: |cat=Earth ({{{earth}}})]]}} |}}|}}
{{#if:{{{world|}}} |{{row/kv| World |{{place tag|{{{world}}}|}}<!-- -->}}|}}
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}}
 
<!-- featured in -->{{row/kv|Featured In |''{{{books}}}''<!-- -->}}
<!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}}
}}<includeonly><!--
 
-->[[Category: PlacesLocations]]<!--
 
-->{{#if:<!--
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{universe|}}}<!--
-->||{{infobox/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=
|books=
}}
</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}}
 
<!-- ---------- -->
<!-- ROW: books -->
<!-- ---------- -->
{{docs/books}}
 
|}
 
=== 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}}

Navigation menu