Template:CityBox: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="InfoBox/styles.css" /> | |||
<div class="infobox"> | <div class="infobox"> | ||
<div class="infobox-title ib-city">{{{title|{{PAGENAME}}}}}</div> | <div class="infobox-title ib-city">{{{title|{{PAGENAME}}}}}</div> | ||
{{#if:{{{image}}} | {{#if:{{{image|}}}| | ||
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} | <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} | ||
<table> | |||
{{#if:{{{Government|}}}|<tr> | |||
<th>Government</th></tr> | |||
<tr><td>{{{Government}}}</td> | |||
</tr>}} | |||
{{#if:{{{Other Organisations|}}}|<tr> | |||
<th>Organizations</th></tr> | |||
<tr><td>{{{Other Organisations}}}</td> | |||
</tr>}} | |||
{{#if:{{{Temples|}}}|<tr> | |||
<th>Temples</th></tr> | |||
<tr><td>{{{Temples}}}</td> | |||
</tr>}} | |||
{{#if:{{{Merchant Houses|}}}|<tr> | |||
<th>Merchant Houses</th></tr> | |||
<tr><td>{{{Merchant Houses}}}</td> | |||
</tr>}} | |||
</table> | |||
</div> | </div> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"description": "An infobox for cities and settlements, displaying governance, organizations, temples, and merchant houses, displayed at the top right of the page.", | |||
"format": "block", | |||
"params": { | |||
"title": { | |||
"label": "Title", | |||
"description": "The name of the city. Defaults to the current page title if omitted.", | |||
"type": "string", | |||
"default": "{{PAGENAME}}", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "The filename of an image (e.g., CapitalCity.jpg). Do not include the 'File:' prefix.", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"Government": { | |||
"label": "Government", | |||
"description": "Type of the city's system of governance; see https://5e.tools/book.html#dmg,1,forms%20of%20government,0.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"Other Organisations": { | |||
"label": "Organizations", | |||
"description": "All the Organizations in the city except for the Merchant Houses.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"Temples": { | |||
"label": "Temples", | |||
"description": "Temples of Deities in the city.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"Merchant Houses": { | |||
"label": "Merchant Houses", | |||
"description": "Merchant Houses in the city.", | |||
"type": "content", | |||
"suggested": true | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Latest revision as of 16:20, 16 July 2026
CityBox
An infobox for cities and settlements, displaying governance, organizations, temples, and merchant houses, displayed at the top right of the page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | The name of the city. Defaults to the current page title if omitted.
| String | suggested |
| Image | image | The filename of an image (e.g., CapitalCity.jpg). Do not include the 'File:' prefix. | File | suggested |
| Government | Government | Type of the city's system of governance; see https://5e.tools/book.html#dmg,1,forms%20of%20government,0. | Content | suggested |
| Organizations | Other Organisations | All the Organizations in the city except for the Merchant Houses. | Content | suggested |
| Temples | Temples | Temples of Deities in the city. | Content | suggested |
| Merchant Houses | Merchant Houses | Merchant Houses in the city. | Content | suggested |