Difference between revisions of "LocationInfoBox"
m (Spacing) |
(Fixed maximum height of images to 400px) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{InfoBox|title={{{title|}}}|infoBoxTable={{#if: {{{image|}}}|<tr><td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px]]</td></tr>}}{{#if: {{{type|}}}| <tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Type</b>:</td><td>{{{type}}}</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>{{#switch: {{{type}}}| Town | Village | City = Province | Province = State | State = Continent | #default = Located in}}</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>{{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>{"params": {"title": {"label": "Title","description": "Page title, usually the common name for the location","example": "Tala Rane","type": "string","required": true},"group": {"label": "Group","description": "Any groups the area is aligned or associated with with","example": "Templars","type": "wiki-page-name"},"image": {"label": "Image","description": "An image, could be a map or a picutre of the location","type": "wiki-file-name","suggested": true},"population": {"label": "Population","description": "The number of people in the location","example": "31000","type": "string","required": true,"suggested": true},"demonym": {"label": "Demonym","description": "The name to describe the people from this location ","example": "Rathirian","type": "wiki-page-name","suggested": true},"parentLocation": {"label": "Parent Location","description": "The location that this location is within","example": "Amalur","type": "wiki-page-name","suggested": true},"extraContent": {"label": "Extra content","description": "Additional content"},"type": {"label": "Type","description": "The type of location","example": "State, Province etc."}},"paramOrder": ["title","image","population","group","demonym","parentLocation","extraContent","type"],"description":"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."}</templatedata></noinclude> | + | <includeonly>{{InfoBox|title={{{title|}}}|infoBoxTable={{#if: {{{image|}}}|<tr><td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px|x400px]]</td></tr>}}{{#if: {{{type|}}}| <tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Type</b>:</td><td>{{{type}}}</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>{{#switch: {{{type}}}| Town | Village | City = Province | Province = State | State = Continent | #default = Located in}}</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>{{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>{"params": {"title": {"label": "Title","description": "Page title, usually the common name for the location","example": "Tala Rane","type": "string","required": true},"group": {"label": "Group","description": "Any groups the area is aligned or associated with with","example": "Templars","type": "wiki-page-name"},"image": {"label": "Image","description": "An image, could be a map or a picutre of the location","type": "wiki-file-name","suggested": true},"population": {"label": "Population","description": "The number of people in the location","example": "31000","type": "string","required": true,"suggested": true},"demonym": {"label": "Demonym","description": "The name to describe the people from this location ","example": "Rathirian","type": "wiki-page-name","suggested": true},"parentLocation": {"label": "Parent Location","description": "The location that this location is within","example": "Amalur","type": "wiki-page-name","suggested": true},"extraContent": {"label": "Extra content","description": "Additional content"},"type": {"label": "Type","description": "The type of location","example": "State, Province etc."}},"paramOrder": ["title","image","population","group","demonym","parentLocation","extraContent","type"],"description":"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."}</templatedata></noinclude> |
Latest revision as of 16:54, 30 August 2021
A Test location | |
---|---|
Type: | Test location type |
Population: | 6969 |
Located in: | 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 |