Difference between revisions of "CityInfoBox"
m (Fixed list) |
m (Spacing) |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{LocationInfoBox | + | <includeonly> |
+ | {{LocationInfoBox | ||
+ | |title={{{title|}}} | ||
+ | |type={{#ifexpr: {{{capital|}}} | Capital City | City}} | ||
+ | |image={{{image}}} | ||
+ | |population={{{population|}}} | ||
+ | |parentLocation={{{parentLocation|}}} | ||
+ | |group={{{group|}}} | ||
+ | |extraContent= | ||
{{#if: {{{demonym|}}}| | {{#if: {{{demonym|}}}| | ||
<tr> | <tr> | ||
Line 9: | Line 17: | ||
<tr> | <tr> | ||
<td class="infoboxtd1strow" style="padding: 10px;"><b>Districts</b>:</td> | <td class="infoboxtd1strow" style="padding: 10px;"><b>Districts</b>:</td> | ||
− | <td> | + | <td>{{{districts}}}</td> |
− | + | </tr>}}}}</includeonly><noinclude> | |
− | + | {{CityInfoBox | |
− | + | |title=A Test City | |
− | </tr> | + | |image=byAllah.jpg |
− | + | |population=6969 | |
+ | |parentLocation=Some state | ||
+ | |group=[[Some Group]] | ||
+ | |demonym=Chads | ||
+ | |districts=District A, District B | ||
+ | |capital=0 | ||
}} | }} | ||
− | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 22: | Line 34: | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
− | "description": "An image, could be a map or a | + | "description": "An image, could be a map or a picture of the city", |
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
Line 51: | Line 63: | ||
"label": "Title", | "label": "Title", | ||
"description": "The name of the location" | "description": "The name of the location" | ||
+ | }, | ||
+ | "capital": { | ||
+ | "label": "Capital", | ||
+ | "description": "Is the city a capital", | ||
+ | "example": "0, 1", | ||
+ | "type": "boolean", | ||
+ | "default": "0", | ||
+ | "required": true | ||
+ | }, | ||
+ | "group": { | ||
+ | "label": "Groups", | ||
+ | "description": "Any associated groups", | ||
+ | "type": "string" | ||
} | } | ||
− | } | + | }, |
+ | "description": "The city info box template shows as follows" | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
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 |