Actions

Template

Difference between revisions of "FactionInfoBox"

m (Removed ships from population)
(Removed individual military units)
Line 13: Line 13:
 
     </tr>
 
     </tr>
 
}}
 
}}
 +
{{#if: {{{militaryPopulation|}}}}}|
 
     <tr>
 
     <tr>
 
         <td class="infoboxtd1strow" style="padding: 10px;"><b>Military Population</b>:</td>
 
         <td class="infoboxtd1strow" style="padding: 10px;"><b>Military Population</b>:</td>
         <td>{{#expr: {{{infantry|0}}} + {{{cavalry|0}}} + {{{ranged|0}}} + {{{support|0}}} + {{{mages|0}}} }}</td>
+
         <td>{{{miltaryPopulation}}}</td>
 
     </tr>
 
     </tr>
 
{{#if: {{{civilianPopulation|}}}|
 
{{#if: {{{civilianPopulation|}}}|
 
     <tr>
 
     <tr>
 
         <td class="infoboxtd1strow" style="padding: 10px;"><b>Total Population</b>:</td>
 
         <td class="infoboxtd1strow" style="padding: 10px;"><b>Total Population</b>:</td>
         <td>{{#expr: {{{civilianPopulation}}} + {{{infantry|0}}} + {{{cavalry|0}}} + {{{ranged|0}}} + {{{support|0}}} + {{{mages|0}}} }}</td>
+
         <td>{{#expr: {{{civilianPopulation|0}}} + {{{militaryPopulation|0}}} }}</td>
    </tr>
 
}}
 
{{#if: {{{infantry|}}}|
 
    <tr>
 
        <td class="infoboxtd1strow" style="padding: 10px;"><b>Infantry</b>:</td>
 
        <td>{{{infantry}}}</td>
 
    </tr>
 
}}
 
{{#if: {{{cavalry|}}}|
 
    <tr>
 
        <td class="infoboxtd1strow" style="padding: 10px;"><b>Cavalry</b>:</td>
 
        <td>{{{cavalry}}}</td>
 
    </tr>
 
}}
 
{{#if: {{{ranged|}}}|
 
    <tr>
 
        <td class="infoboxtd1strow" style="padding: 10px;"><b>Ranged</b>:</td>
 
        <td>{{{ranged}}}</td>
 
    </tr>
 
}}
 
{{#if: {{{support|}}}|
 
    <tr>
 
        <td class="infoboxtd1strow" style="padding: 10px;"><b>Support</b>:</td>
 
        <td>{{{support}}}</td>
 
    </tr>
 
}}
 
{{#if: {{{ships|}}}|
 
    <tr>
 
        <td class="infoboxtd1strow" style="padding: 10px;"><b>Ships</b>:</td>
 
        <td>{{{ships}}}</td>
 
    </tr>
 
}}
 
{{#if: {{{mages|}}}|
 
    <tr>
 
        <td class="infoboxtd1strow" style="padding: 10px;"><b>Mages</b>:</td>
 
        <td>{{{mages}}}</td>
 
 
     </tr>
 
     </tr>
 
}}
 
}}
 +
 
{{#if: {{{power|}}}|
 
{{#if: {{{power|}}}|
 
     <tr>
 
     <tr>
Line 81: Line 47:
 
|foundedDate=20/09/2020
 
|foundedDate=20/09/2020
 
|civilianPopulation=1
 
|civilianPopulation=1
|infantry=2
+
|militaryPopulation=2
|cavalry=3
 
|ranged=4
 
|support=5
 
|ships=6
 
|mages=7
 
 
|power=Major
 
|power=Major
 
|leaders=[[User:DaiKnapz|David]]
 
|leaders=[[User:DaiKnapz|David]]
Line 118: Line 79:
 
"required": true
 
"required": true
 
},
 
},
"infantry": {
+
                "militaryPopulation": {
"label": "Infantry",
+
"label": "Military Population",
"description": "The number of infantry units",
+
"description": "The number of Military in the faction",
"type": "number"
+
"type": "number",
},
+
"required": true
"cavalry": {
 
"label": "Cavalry",
 
"description": "The number of cavalry units",
 
"suggested": true
 
},
 
"ranged": {
 
"label": "Ranged",
 
"description": "The number of ranged units",
 
"type": "number"
 
},
 
"support": {
 
"label": "Support",
 
"description": "The number of support units",
 
"type": "number"
 
},
 
"ships": {
 
"label": "Ships",
 
"description": "The number of Ships",
 
"type": "number"
 
},
 
"mages": {
 
"label": "Mages",
 
"description": "The number of mage units",
 
"type": "number"
 
 
},
 
},
 
"power": {
 
"power": {

Revision as of 19:29, 20 September 2020



Test Faction
ByAllah.jpg
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


This is how Faction infoboxes should look

Template parameters

ParameterDescriptionTypeStatus
Titletitle

The name of the faction

Unknownoptional
Membersmembers

If the faction is made up of subgroups

Stringoptional
Originsorigins

A brief description of how the faction was founded

Stringoptional
Founded DatefoundedDate

When the faction was founded

Stringoptional
Civilian PopulationcivilianPopulation

The number of civilians in the faction

Numberrequired
Military PopulationmilitaryPopulation

The number of Military in the faction

Numberrequired
Power Statuspower

How influential or powerful the faction is

Example
Major, Minor
Stringoptional
Leader(s)leaders

The leader(s) of the faction

Pageoptional