Template:Infobox City: Difference between revisions
Appearance
Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}} {{#if:{{{capital|}}}|<div class="infobox-marker">CAPITAL</div>}} <table class="infobox-table">{{#if:{{{country|}}}|<tr> <th>Country</th> <td>{{{country}}}</td> </tr>}}{{#if:{{{population|}}}|<tr> <th>Population</th> <td>{{{population}}}</td> </tr>}}{{#if:{{{mayor|}}}|<tr> <th>Mayo..." |
No edit summary |
||
| Line 6: | Line 6: | ||
<th>Country</th> | <th>Country</th> | ||
<td>{{{country}}}</td> | <td>{{{country}}}</td> | ||
</tr>}}{{#if:{{{state|}}}|<tr> | |||
<th>State</th> | |||
<td>{{{state}}}</td> | |||
</tr>}}{{#if:{{{population|}}}|<tr> | </tr>}}{{#if:{{{population|}}}|<tr> | ||
<th>Population</th> | <th>Population</th> | ||
| Line 40: | Line 43: | ||
"mayor": { | "mayor": { | ||
"description": "The major of the city" | "description": "The major of the city" | ||
}, | |||
"state": { | |||
"description": "Which state is it in? Omit if stateless country." | |||
} | } | ||
}, | }, | ||
"description": "Use this template for cities." | "description": "Use this template for cities.", | ||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"capital", | |||
"country", | |||
"state", | |||
"population", | |||
"mayor" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:58, 4 April 2025
Infobox City
Use this template for cities.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | Name of the city
| Unknown | required |
| image | image | An image of the city
| File | optional |
| capital | capital | Whether or not this city is a capital. | Boolean | optional |
| country | country | What country is this city part of? | Unknown | optional |
| state | state | Which state is it in? Omit if stateless country. | Unknown | optional |
| population | population | The population of the city | Unknown | optional |
| mayor | mayor | The major of the city | Unknown | optional |