Template:Locationbox/doc
A general geographical infobox for continents, kingdoms, regions, settlements, structures, ruins, and natural features. Every field is optional. Empty fields produce no row. There are no MMO level ranges or PvP flags.
Usage
{{Locationbox
| name =
| image =
| caption =
| faction =
| fname =
| type =
| parent =
| location =
| affiliation =
| faffiliation =
| government =
| ruler =
| fruler =
| capital =
| fcapital =
| major =
| minor =
| population =
| fpopulation =
| races =
| languages =
| faiths =
| terrain =
| climate =
| waterways =
| resources =
| garrison =
| access =
| status =
| source =
}}
Parameters
Use plain text or manually written Page / label links in descriptive fields. Only parent is automatically linked. To display multiple entries, use commas or . If a value needs a literal pipe outside a link or template, use |.
| Parameter | Cargo field | Meaning |
|---|---|---|
name |
Name | Display name; omitted or empty values fall back to the page name. |
image |
Image | Uploaded filename only, without File: or image markup; displayed at 200px. |
caption |
Caption | Optional image caption; shown only when an image is supplied. |
faction |
Faction | Header icon key for Template:FactionIcon: alliance, horde, ashen, guardians, neutral, combat, scourge, burning. This is separate from political affiliation. |
fname |
Former_name | Earlier names; qualify names with dates where useful. |
type |
Type | Type. |
parent |
Parent | One exact wiki page title, without [[ ]] or a display label. Automatically linked in the infobox and stored as a Cargo Page. This is the immediate geographical parent, not a full ancestry chain. |
location |
Location | Free-form geographical description with manually written links; may mention several surrounding areas. |
affiliation |
Affiliation | Affiliation(s). |
faffiliation |
Former_affiliation | Former affiliation(s). |
government |
Government | Government. |
ruler |
Ruler | Ruler(s). |
fruler |
Former_ruler | Former ruler(s). |
capital |
Capital | Capital(s). |
fcapital |
Former_capital | Former capital(s). |
major |
Major_settlements | Major settlements contained within the location. |
minor |
Minor_settlements | Minor settlements contained within the location. |
population |
Population | Text, not an integer: supports estimates, dates, ranges, or uncertainty. |
fpopulation |
Former_population | Earlier population estimates with their associated dates. |
races |
Races | Race(s). |
languages |
Languages | Language(s). |
faiths |
Faiths | Faith(s). |
terrain |
Terrain | Terrain. |
climate |
Climate | Climate. |
waterways |
Waterways | Waterway(s). |
resources |
Resources | Resources. |
garrison |
Garrison | Forces stationed locally, including numbers and commanders where known. |
access |
Access | Roads, passes, sea routes, gates, or other means of reaching the location. |
status |
Status | Status. |
source |
Source | Source references; use <ref> tags or concise citations as appropriate. Add to the article when needed. |
nocargo |
— | Set to yes on demonstrations or tests to suppress Cargo storage and automatic Locations categorisation. Not an article data field.
|
Hierarchy
Use an immediate geographical parent consistently. A village can have a forest as its parent, and that forest can have a kingdom as its parent. Administrative allegiance belongs in affiliation. Cargo stores the parent as a page title, allowing queries to find directly contained locations; recursive descendants are not automatically calculated.
Cargo
The template declares and stores data in Locations. Fields use underscores where their labels contain spaces. Linked descriptive fields use Wikitext string; longer source, access, garrison, historical-population, and caption fields use Wikitext. Wikitext string fields default to 300 characters in Cargo; keep these infobox summaries short. The Parent field is Page and Image is File.
Storage and automatic Locations categorisation occur only in the main namespace. Use one Locationbox per location article. Documentation, user sandboxes, and template test pages do not add records. The declaration is included in Template:Locationbox itself; do not install it as a second declaring template.
Styling
Template:Locationbox/styles.css controls the 20em table. It follows Template:npcbox: a right-floated continuous HTML table with conditional rows, a faction icon beside the name, and optional image.