Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox town: Difference between revisions

Template page
m Remove stale doc reference to the deleted Main page/continents template
m Replace reader-visible prose double hyphens with a proper em dash entity
Line 27: Line 27:
</pre>
</pre>


Only <code>name</code> is required (it otherwise defaults to the page name); every other row is hidden when omitted. Built on [[Template:Infobox]] for the shared name/image/row chrome -- see there for the wiki's common infobox look. Supplying <code>biome</code> shows the "Location" section: the panel's backdrop auto-detects the same biome photo [[Template:Biome]] uses (<code>&lt;biome&gt;.jpg</code>, falling back to <code>.png</code>, then a flat fallback with no photo). The continent shield and biome icon each sit immediately before their own value (the continent/biome name), not the row label.
Only <code>name</code> is required (it otherwise defaults to the page name); every other row is hidden when omitted. Built on [[Template:Infobox]] for the shared name/image/row chrome &mdash; see there for the wiki's common infobox look. Supplying <code>biome</code> shows the "Location" section: the panel's backdrop auto-detects the same biome photo [[Template:Biome]] uses (<code>&lt;biome&gt;.jpg</code>, falling back to <code>.png</code>, then a flat fallback with no photo). The continent shield and biome icon each sit immediately before their own value (the continent/biome name), not the row label.


== Parameters ==
== Parameters ==

Revision as of 14:20, 23 August 2026

Usage

{{Infobox town
|name=Example Town
|image=Example Town.png
|owner=PlayerName
|founded=March 26, 2026
|population=12
|continent=Ascalon
|biome=Forest
|tile=12,-4
}}

Only name is required (it otherwise defaults to the page name); every other row is hidden when omitted. Built on Template:Infobox for the shared name/image/row chrome — see there for the wiki's common infobox look. Supplying biome shows the "Location" section: the panel's backdrop auto-detects the same biome photo Template:Biome uses (<biome>.jpg, falling back to .png, then a flat fallback with no photo). The continent shield and biome icon each sit immediately before their own value (the continent/biome name), not the row label.

Parameters

Parameter Description
name Town name. Defaults to the page name.
image Filename of an image uploaded to the wiki (no File: prefix).
owner Current town owner.
founded Date the town was founded.
population Current population.
continent Continent the town is on (e.g. Ascalon). Used for the Location section's shield icon.
biome Biome the town sits in (e.g. Forest). Drives the whole Location section: enables it, picks its backdrop photo, and picks its icon, both via the same auto-detection Template:Biome uses.
tile Tile/coordinate identifier. Shown as-is, no icon.