Difference between revisions of "FactionInfoBox"
m (Removed ships from population) |
m (Spacing) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{GroupInfoBox|title={{{title|}}}|image={{{image|}}}|members={{{members|}}}|origins={{{origins|}}}|foundedDate={{{foundedDate|}}}|extraContent={{#if: {{{civilianPopulation|}}}|<tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Civilian Population</b>:</td><td>{{{civilianPopulation}}}</td></tr>}}{{#if: {{{militaryPopulation|}}}|<tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Military Population</b>:</td><td>{{{militaryPopulation}}}</td></tr>}}{{#if: {{{civilianPopulation|}}}|<tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Total Population</b>:</td><td>{{#expr: {{{civilianPopulation|0}}} + {{{militaryPopulation|0}}} }}</td></tr>}}{{#if: {{{power|}}}|<tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Power Status</b>:</td><td>{{{power}}}</td></tr>}}{{#if: {{{leaders|}}}|<tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Leader(s)</b>:</td><td>{{{leaders}}}</td></tr>}}}}</includeonly><noinclude>{{FactionInfoBox|title=Test Faction|image=byAllah.jpg|members=[[Sub Group A]], [[Sub Group B]]|origins=This faction was founded by David as he memed on discord|foundedDate=20/09/2020|civilianPopulation=1|militaryPopulation=2|power=Major|leaders=[[User:DaiKnapz|David]]}}<templatedata>{"params": {"title": {"label": "Title","description": "The name of the faction"},"members": {"label": "Members","description": "If the faction is made up of subgroups","type": "string"},"origins": {"label": "Origins","description": "A brief description of how the faction was founded","type": "string"},"foundedDate": {"label": "Founded Date","description": "When the faction was founded","type": "string"},"civilianPopulation": {"label": "Civilian Population","description": "The number of civilians in the faction","type": "number","required": true},"militaryPopulation": {"label": "Military Population","description": "The number of Military in the faction","type": "number","required": true},"power": {"label": "Power Status","description": "How influential or powerful the faction is","example": "Major, Minor","type": "string"},"leaders": {"label": "Leader(s)","description": "The leader(s) of the faction","type": "wiki-page-name"}},"description": "This is how Faction infoboxes should look"}</templatedata></noinclude> |
− | {{GroupInfoBox | ||
− | |title={{{title|}}} | ||
− | |image={{{image|}}} | ||
− | |members={{{members|}}} | ||
− | |origins={{{origins|}}} | ||
− | |foundedDate={{{foundedDate|}}} | ||
− | |extraContent= | ||
− | {{#if: {{{civilianPopulation|}}}| | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | {{#if: {{{ | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | {{#if: {{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#if: {{{power|}}}| | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | {{#if: {{{leaders|}}}| | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | }} | ||
− | </includeonly> | ||
− | <noinclude> | ||
− | {{FactionInfoBox | ||
− | |title=Test Faction | ||
− | |image=byAllah.jpg | ||
− | |members=[[Sub Group A]], [[Sub Group B]] | ||
− | |origins=This faction was founded by David as he memed on discord | ||
− | |foundedDate=20/09/2020 | ||
− | |civilianPopulation=1 | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |power=Major | ||
− | |leaders=[[User:DaiKnapz|David]] | ||
− | }} | ||
− | <templatedata> | ||
− | { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | </templatedata> | ||
− | </noinclude> |
Latest revision as of 19:02, 28 November 2020
Test Faction | |
---|---|
Current Members: | Sub Group A, Sub Group B |
Origins: | This faction was founded by David as he memed on discord |
Founded date: | 20/09/2020 |
Civilian Population: | 1 |
Military Population: | 2 |
Total Population: | 3 |
Power Status: | Major |
Leader(s): | David |
This is how Faction infoboxes should look
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The name of the faction | Unknown | optional |
Members | members | If the faction is made up of subgroups | String | optional |
Origins | origins | A brief description of how the faction was founded | String | optional |
Founded Date | foundedDate | When the faction was founded | String | optional |
Civilian Population | civilianPopulation | The number of civilians in the faction | Number | required |
Military Population | militaryPopulation | The number of Military in the faction | Number | required |
Power Status | power | How influential or powerful the faction is
| String | optional |
Leader(s) | leaders | The leader(s) of the faction | Page | optional |