Difference between revisions of "LocationInfoBox"
m (Fixed switch) |
(Fixed location type) |
||
Line 28: | Line 28: | ||
<td class="infoboxtd1strow" style="padding: 10px;"> | <td class="infoboxtd1strow" style="padding: 10px;"> | ||
<b> | <b> | ||
− | {{#switch: | + | {{#switch: {{{type}}} |
− | | Town | + | | Town |
− | | Village | + | | Village |
| City = Province | | City = Province | ||
| Province = State | | Province = State | ||
Line 52: | Line 52: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
− | {{LocationInfoBox|title=A Test location|image=byAllah.jpg|population=6969|parentLocation=A Parent Location|group=Some Group|extraContent=<tr><td>The extra content</td><td>This is used by other templates to add stuff in here</td>}} | + | {{LocationInfoBox |
+ | |title=A Test location | ||
+ | |image=byAllah.jpg | ||
+ | |type=Test location type | ||
+ | |population=6969 | ||
+ | |parentLocation=A Parent Location | ||
+ | |group=Some Group | ||
+ | |extraContent= | ||
+ | <tr> | ||
+ | <td> | ||
+ | The extra content | ||
+ | </td> | ||
+ | <td> | ||
+ | This is used by other templates to add stuff in here | ||
+ | </td> | ||
+ | }} | ||
<templatedata> | <templatedata> | ||
{ | { |
Revision as of 21:46, 17 September 2020
A Test location | |
---|---|
Type: | Test location type |
Population: | 6969 |
Parent Location: |
A Parent Location |
Associated Group(s): | Some Group |
The extra content |
This is used by other templates to add stuff in here |
This location info box template is used by the more specific types of location, so that they all keep a consistent style. This contains the fields that every location should have.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Page title, usually the common name for the location
| String | required |
Image | image | An image, could be a map or a picutre of the location | File | suggested |
Population | population | The number of people in the location
| String | required |
Group | group | Any groups the area is aligned or associated with with
| Page | optional |
Demonym | demonym | The name to describe the people from this location
| Page | suggested |
Parent Location | parentLocation | The location that this location is within
| Page | suggested |
Extra content | extraContent | Additional content | Unknown | optional |
Type | type | The type of location
| Unknown | optional |