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

Template:Location: Difference between revisions

Template page
Calix (talk | contribs)
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly><infobox type="Location" theme-source="nation">
<includeonly>
<title source="title"/>
<infobox type="Location" theme-source="nation">
<image source="image"><caption source="imagecaption"/></image>
<title source="title"><default>{{PAGENAME}}</default></title>
 
<image source="image">
<caption source="imagecaption"/>
</image>
 
<group>
<group>
<header>Physical Information</header>
<header>Physical Information</header>
<data source="location"><label>Location</label></data>
<data source="location"><label>Location</label></data>
</group>
</group>
<group>
<group>
<header>Government</header>
<header>Government</header>
Line 18: Line 24:
<data source="leader"><label>Leader</label></data>
<data source="leader"><label>Leader</label></data>
<data source="admin"><label>Administrator</label></data>
<data source="admin"><label>Administrator</label></data>
    </group>
</group>
    <group>
 
        <header>History</header>
<group>
        <data source="events"><label>Key Events</label></data>
<header>History</header>
        <data source="affiliate"><label>Affiliation</label></data>
<data source="events"><label>Key events</label></data>
        <data source="status"><label>Status</label></data>
<data source="affiliate"><label>Affiliation</label></data>
        <data source="cause"><label>Cause</label></data>
<data source="status"><label>Status</label></data>
        <data source="pred"><label>Preceded By</label></data>
<data source="cause"><label>Cause</label></data>
        <data source="success"><label>Succeeded By</label></data>
<data source="pred"><label>Preceded by</label></data>
    </group>
<data source="success"><label>Succeeded by</label></data>
</infobox>[[Category:Locations]]</includeonly><noinclude>{{Documentation}}</noinclude>
</group>
</infobox>
[[Category:Locations]]
</includeonly>
 
<noinclude>
 
<templatedata>
{
  "description": "Infobox for locations, nations, cities, and regions.",
  "params": {
    "title": {
      "label": "Title",
      "description": "Display name (defaults to page name if omitted).",
      "type": "string"
    },
    "image": {
      "label": "Image",
      "description": "Representative image (file name without File:).",
      "type": "wiki-file-name"
    },
    "imagecaption": {
      "label": "Image caption",
      "description": "Caption describing the image.",
      "type": "string"
    },
 
    "location": {
      "label": "Location",
      "description": "Geographic placement or broader region.",
      "type": "string"
    },
 
    "position": {
      "label": "Position",
      "description": "Political or geographic status.",
      "type": "string"
    },
    "capital": {
      "label": "Capital",
      "description": "Capital city.",
      "type": "string"
    },
    "govtype": {
      "label": "Form of government",
      "description": "Type of government.",
      "type": "string"
    },
    "statehead": {
      "label": "Head of state",
      "description": "Primary governing authority.",
      "type": "string"
    },
    "holyhead": {
      "label": "Religious authority",
      "description": "Spiritual leader or authority.",
      "type": "string"
    },
    "currency": {
      "label": "Currency",
      "description": "Official currency used.",
      "type": "string"
    },
    "ruler": {
      "label": "Ruler",
      "description": "Monarch or ruling figure.",
      "type": "string"
    },
    "owner": {
      "label": "Owner",
      "description": "Controlling entity.",
      "type": "string"
    },
    "leader": {
      "label": "Leader",
      "description": "Administrative or political leader.",
      "type": "string"
    },
    "admin": {
      "label": "Administrator",
      "description": "Administrative official.",
      "type": "string"
    },
 
    "events": {
      "label": "Key events",
      "description": "Important historical events.",
      "type": "string"
    },
    "affiliate": {
      "label": "Affiliation",
      "description": "Associated faction or group.",
      "type": "string"
    },
    "status": {
      "label": "Status",
      "description": "Current status (active, destroyed, disputed, etc.).",
      "type": "string"
    },
    "cause": {
      "label": "Cause",
      "description": "Cause of status change or historical shift.",
      "type": "string"
    },
    "pred": {
      "label": "Preceded by",
      "description": "Previous entity or state.",
      "type": "string"
    },
    "success": {
      "label": "Succeeded by",
      "description": "Next entity or state.",
      "type": "string"
    }
  },
  "paramOrder": [
    "title",
    "image",
    "imagecaption",
    "location",
    "position",
    "capital",
    "govtype",
    "statehead",
    "holyhead",
    "currency",
    "ruler",
    "owner",
    "leader",
    "admin",
    "events",
    "affiliate",
    "status",
    "cause",
    "pred",
    "success"
  ]
}
</templatedata>
 
{{Documentation}}
 
</noinclude>

Latest revision as of 02:48, 2 May 2026



Infobox for locations, nations, cities, and regions.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Display name (defaults to page name if omitted).

Stringoptional
Imageimage

Representative image (file name without File:).

Fileoptional
Image captionimagecaption

Caption describing the image.

Stringoptional
Locationlocation

Geographic placement or broader region.

Stringoptional
Positionposition

Political or geographic status.

Stringoptional
Capitalcapital

Capital city.

Stringoptional
Form of governmentgovtype

Type of government.

Stringoptional
Head of statestatehead

Primary governing authority.

Stringoptional
Religious authorityholyhead

Spiritual leader or authority.

Stringoptional
Currencycurrency

Official currency used.

Stringoptional
Rulerruler

Monarch or ruling figure.

Stringoptional
Ownerowner

Controlling entity.

Stringoptional
Leaderleader

Administrative or political leader.

Stringoptional
Administratoradmin

Administrative official.

Stringoptional
Key eventsevents

Important historical events.

Stringoptional
Affiliationaffiliate

Associated faction or group.

Stringoptional
Statusstatus

Current status (active, destroyed, disputed, etc.).

Stringoptional
Causecause

Cause of status change or historical shift.

Stringoptional
Preceded bypred

Previous entity or state.

Stringoptional
Succeeded bysuccess

Next entity or state.

Stringoptional
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.