Jump to content

Template:Infobox: Difference between revisions

From The Three Kingdoms
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
<table class="infobox-table">
<table class="infobox-table">
{{#if:{{{type|}}}|<tr>
<tr>
    <th>Type</th>
  <th>Type</th>
    <td>{{{type}}}</td>
  <td>{{{type}}}</td>
</tr>{{#if:{{{size|}}}|<tr>
</tr>
    <th>Size</th>
<tr>
    <td>{{{size}}}</td>
  <th>Population</th>
</tr>}}{{#if:{{{population|}}}|<tr>
  <td>{{{population}}}</td>
    <th>Population</th>
</tr>
    <td>{{{population}}}</td>
<tr>
</tr>}}{{#if:{{{gplimit|}}}|<tr>
  <th>GP Limit</th>
    <th>GP Limit</th>
  <td>{{{gplimit}}}</td>
    <td>{{{gplimit}}}</td>
</tr>
</tr>}}{{#if:{{{readycash|}}}|<tr>
<tr>
    <th>Ready Cash</th>
  <th>Ready Cash</th>
    <td>{{{readycash}}}</td>
  <td>{{{readycash}}}</td>
</tr>}}
</tr>
{{#if:{{{powercentre|}}}|<tr>
<tr>
     <th>Power Centre (Alignment)</th>
  <th>Power Centre/s (Alignment)</th>
     <td>{{{powercentre}}}</td>
  <td>{{#invoke:Helpers|listout|{{{powercentre}}}}}</td>
</tr>}}
</tr>
{{#if:{{{authorities|}}}|<tr>
<tr>
     <th>Community Authorities</th>
  <th>Community Authorities</th>
     <td>{{{authorities}}}</td>
  <td>{{#invoke:Helpers|listout|{{{authorities}}}}}</td>
</tr>}}</table>
</tr>
<tr>
  <th>Full-time Guards</th>
  <td>{{#invoke:Helpers|listout|{{{guards}}}}}</td>
</tr>
<tr>
  <th>Militia Strength</th>
  <td>{{{militia}}}</td>
</tr>
<tr>
    <th>Notable NPCs</th>
    <td>{{#invoke:Helpers|listout|{{{notablenpcs}}}}}
</td>
</tr>
<tr>
     <th>NPCs of each Class</th>
     <td>{{#invoke:Helpers|listout|{{{npcclasses}}}}}</td>
</tr>
<tr>
     <th>Racial Demographics</th>
     <td>{{#invoke:Helpers|listout|{{{racialdemographics}}}}}</td>
</tr>
</table>
</div>
</div>
<noinclude>
<templatedata>
{
"params": {
"title": {
"label": "Title",
"description": "Name of the population centre",
"example": "Barlowe",
"type": "string",
"required": true
},
"image": {
"label": "Town Map",
"type": "wiki-file-name"
},
"type": {
"label": "Population Centre Type",
"description": "Whether this is a Thorpe, Hamlet, Town, City, Village etc",
"type": "string",
"suggestedvalues": [
"Thorpe",
"Hamlet",
"Village",
"Small town",
"Large town",
"Small city",
"Large city",
"Metropolis"
],
"required": true
},
"population": {
"label": "Population",
"description": "Number of adults in the population centre",
"type": "number",
"required": true
},
"gplimit": {
"label": "GP Limit",
"description": "The cost of the most expensive item available for purchase in the population centre",
"type": "number",
"required": true
},
"readycash": {
"label": "Ready Cash",
"description": "GP limit for how much the town can buy or sell until a merchant comes through",
"type": "number",
"required": true
},
"powercentre": {
"label": "Power Centre (Alignment)",
"description": "The type of power centre/s for the population and the alignment of those power centre/s",
"example": "Mayor (Lawful Good)",
"type": "string"
},
"authorities": {
"label": "Authorities",
"description": "Information on Constables / Captains, those who maintain order, not necessarily those in charge",
"type": "string"
},
"guards": {
"label": "Guards",
"description": "Information on the full-time guards and soldiers employed by the town",
"type": "string"
},
"militia": {
"label": "Number of Militia",
"description": "The number of able-bodied people the town can conscript at a moments notice",
"example": "Population / 20 (rounded down)",
"type": "number"
},
"notablenpcs": {
"label": "Notable NPCs",
"description": "List of notable NPCs in the population centre",
"type": "string"
},
"npcclasses": {
"label": "NPCs of each class",
"type": "string"
},
"racialdemographics": {
"label": "Racial Demographics",
"description": "Breakdown of the different races present in the city for all non-specified characters",
"example": "Commoners - 23 Humans, 2 Elves",
"type": "string"
}
},
"description": "Include at-a-glance population centre info for Dungeon Masters",
"paramOrder": [
"title",
"image",
"type",
"population",
"gplimit",
"readycash",
"powercentre",
"authorities",
"guards",
"militia",
"notablenpcs",
"npcclasses",
"racialdemographics"
]
}
</templatedata>
</noinclude>

Latest revision as of 00:08, 29 December 2024

Infobox
Type {{{type}}}
Population {{{population}}}
GP Limit {{{gplimit}}}
Ready Cash {{{readycash}}}
Power Centre/s (Alignment) {{{powercentre}}}
Community Authorities {{{authorities}}}
Full-time Guards {{{guards}}}
Militia Strength {{{militia}}}
Notable NPCs {{{notablenpcs}}}
NPCs of each Class {{{npcclasses}}}
Racial Demographics {{{racialdemographics}}}

Include at-a-glance population centre info for Dungeon Masters

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Name of the population centre

Example
Barlowe
Stringrequired
Town Mapimage

no description

Fileoptional
Population Centre Typetype

Whether this is a Thorpe, Hamlet, Town, City, Village etc

Suggested values
Thorpe Hamlet Village Small town Large town Small city Large city Metropolis
Stringrequired
Populationpopulation

Number of adults in the population centre

Numberrequired
GP Limitgplimit

The cost of the most expensive item available for purchase in the population centre

Numberrequired
Ready Cashreadycash

GP limit for how much the town can buy or sell until a merchant comes through

Numberrequired
Power Centre (Alignment)powercentre

The type of power centre/s for the population and the alignment of those power centre/s

Example
Mayor (Lawful Good)
Stringoptional
Authoritiesauthorities

Information on Constables / Captains, those who maintain order, not necessarily those in charge

Stringoptional
Guardsguards

Information on the full-time guards and soldiers employed by the town

Stringoptional
Number of Militiamilitia

The number of able-bodied people the town can conscript at a moments notice

Example
Population / 20 (rounded down)
Numberoptional
Notable NPCsnotablenpcs

List of notable NPCs in the population centre

Stringoptional
NPCs of each classnpcclasses

no description

Stringoptional
Racial Demographicsracialdemographics

Breakdown of the different races present in the city for all non-specified characters

Example
Commoners - 23 Humans, 2 Elves
Stringoptional