Difference between revisions of "LocationInfoBox"
m (Changed to use infobox) |
(Added demonstration) |
||
Line 1: | Line 1: | ||
− | {{InfoBox|title={{{title|}}}|infoBoxTable= | + | <includeonly> |
− | + | {{InfoBox|title={{{title|}}}|infoBoxTable= | |
− | + | {{#if: {{{image|}}}| | |
− | + | <tr> | |
− | </tr> | + | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px]]</td> |
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{population|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Population</b>:</td> | ||
+ | <td>{{{population}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{demonym|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Demonym</b>:</td> | ||
+ | <td>{{{demonym}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{parentLocation|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Parent Location</b>:</td> | ||
+ | <td>[[{{{parentLocation}}}]]</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{group|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Associated Group(s)</b>:</td> | ||
+ | <td>[[{{{group}}}]]</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{extraContent|}}}| | ||
+ | {{{extraContent}}} | ||
+ | }} | ||
}} | }} | ||
− | + | </includeonly> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<noinclude> | <noinclude> | ||
+ | {{LocationInfoBox|title=A Test location|image=byAllah.jpg|population=6969|parentLocation=A Parent Location|group=Some Group|extraContent=This is used by other templates to add stuff in here}} | ||
<templatedata> | <templatedata> | ||
{ | { |
Revision as of 23:00, 15 September 2020
This is used by other templates to add stuff in here
A Test location | |
---|---|
Population: | 6969 |
Parent Location: | A Parent Location |
Associated Group(s): | Some Group |
PC info
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 |