Difference between revisions of "CityInfoBox"
m (Changed demo to not capital) |
m (Spacing) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{LocationInfoBox | {{LocationInfoBox | ||
|title={{{title|}}} | |title={{{title|}}} | ||
− | |type={{# | + | |type={{#ifexpr: {{{capital|}}} | Capital City | City}} |
|image={{{image}}} | |image={{{image}}} | ||
|population={{{population|}}} | |population={{{population|}}} | ||
− | |parentLocation={{{parentLocation}}} | + | |parentLocation={{{parentLocation|}}} |
|group={{{group|}}} | |group={{{group|}}} | ||
|extraContent= | |extraContent= | ||
Line 18: | Line 18: | ||
<td class="infoboxtd1strow" style="padding: 10px;"><b>Districts</b>:</td> | <td class="infoboxtd1strow" style="padding: 10px;"><b>Districts</b>:</td> | ||
<td>{{{districts}}}</td> | <td>{{{districts}}}</td> | ||
− | </tr> | + | </tr>}}}}</includeonly><noinclude> |
− | |||
− | }} | ||
− | </includeonly> | ||
− | <noinclude> | ||
{{CityInfoBox | {{CityInfoBox | ||
|title=A Test City | |title=A Test City | ||
Line 31: | Line 27: | ||
|demonym=Chads | |demonym=Chads | ||
|districts=District A, District B | |districts=District A, District B | ||
− | |capital= | + | |capital=0 |
}} | }} | ||
<templatedata> | <templatedata> | ||
Line 71: | Line 67: | ||
"label": "Capital", | "label": "Capital", | ||
"description": "Is the city a capital", | "description": "Is the city a capital", | ||
− | "example": " | + | "example": "0, 1", |
"type": "boolean", | "type": "boolean", | ||
− | "default": " | + | "default": "0", |
"required": true | "required": true | ||
}, | }, |
Latest revision as of 21:21, 2 October 2020
A Test City | |
---|---|
Type: | City |
Population: | 6969 |
Province: | Some state |
Associated Group(s): | Some Group |
Demonym: | Chads |
Districts: | District A, District B |
The city info box template shows as follows
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | An image, could be a map or a picture of the city | File | optional |
Population | population | The number of people in the city
| Number | required |
Parent Location | parentLocation | The location that this location is within | Page | optional |
Demonym | demonym | The name to describe the people from this city
| String | optional |
Districts | districts | The districts of the city | Content | optional |
Title | title | The name of the location | Unknown | optional |
Capital | capital | Is the city a capital
| Boolean | required |
Groups | group | Any associated groups | String | optional |