Sarna News: Bad 'Mechs - Icestorm

Difference between revisions of "Template:InfoBoxWar"

m (Updating the Template)
m (Fixing it up)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{#template_params:name (label=Name of the War;property=WarName)|othernames (label=Known also as;property=WarOtherName)|era (label=The Era it took place in;property=Era)|startdateyear (label=Start Year;property=Startdateyear)|enddateyear (label=End Year;property=Enddateyear)|result (label=The result of the War;property=Result)|faction1 (label=1st Faction involved;property=Faction1)|faction2 (label=2nd Faction involved;property=Faction2)|faction3 (label=3rd Faction involved;property=Faction3)|faction4 (label=4th Faction involved;property=Faction4)|faction5 (label=5th Faction involved;property=Faction5)|faction6 (label=6th Faction involved;property=Faction6)}}
+
{{#template_params:name (label=Name of the War;property=WarName)|othernames (label=Known also as;property=WarOtherName)|era (label=The Era it took place in;property=Era)|startdate (label=startdate;property=Start date)|enddate(label=enddate;property=End Date)|result (label=The result of the War;property=Result)|faction1 (label=1st Faction involved;property=Faction1)|faction2 (label=2nd Faction involved;property=Faction2)|faction3 (label=3rd Faction involved;property=Faction3)|faction4 (label=4th Faction involved;property=Faction4)|faction5 (label=5th Faction involved;property=Faction5)|faction6 (label=6th Faction involved;property=Faction6)}}
 
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
Line 14: Line 14:
 
|-
 
|-
 
! Start Year
 
! Start Year
| [[Startdateyear::{{{startdateyear|}}}]]
+
| [[Start date::{{{startdate|}}}]]
 
|-
 
|-
 
! End Year
 
! End Year
| [[Enddateyear::{{{enddateyear|}}}]]
+
| [[End date::{{{enddate|}}}]]
 
|-
 
|-
 
! The result of the War
 
! The result of the War
Line 41: Line 41:
 
|-
 
|-
 
|}
 
|}
Template
+
<includeonly>[[Category:Wars]]</includeonly><noinclude>
 
+
{{documentation}}
[[Category:War]]
+
<!-- Add cats and interwikis to the /doc subpage, not here! -->
</includeonly>
 
<noinclude>
 
<templatedata>
 
{
 
"params": {
 
"name": {
 
"label": "War Name",
 
"description": "Name of War",
 
"type": "wiki-page-name",
 
"required": true
 
},
 
"othernames": {
 
"label": "Also known as",
 
"description": "Also known as",
 
"type": "wiki-page-name",
 
"suggested": true
 
},
 
"era": {
 
"label": "Era",
 
"description": "The name of the Era this took place in",
 
"type": "wiki-page-name",
 
"required": true
 
},
 
"startdateyear": {
 
"label": "Start Date",
 
"description": "Year of when the War started",
 
"type": "date",
 
"required": true
 
},
 
"enddateyear": {
 
"label": "End Date",
 
"description": "Year when the War ended",
 
"type": "date",
 
"required": true
 
},
 
"result": {
 
"label": "War Result",
 
"description": "What was the War's result?",
 
"type": "content",
 
"suggested": true
 
},
 
"faction1": {
 
"label": "1st Faction involved",
 
"description": "Name of the 1st Faction involved",
 
"type": "wiki-page-name",
 
"required": true
 
},
 
"faction2": {
 
"label": "2nd Faction involved",
 
"description": "The name of the 2nd Faction involved",
 
"type": "wiki-page-name",
 
"required": true
 
},
 
"faction3": {
 
"label": "3rd Faction involved (if required)",
 
"description": "The name of the 3rd Faction involved (if required)",
 
"type": "wiki-page-name"
 
},
 
"faction4": {
 
"label": "4th Faction involved (if required)",
 
"description": "The name of the 4th Faction involved (if required)",
 
"type": "wiki-page-name"
 
},
 
"faction5": {
 
"label": "5th Faction involved (if required)",
 
"description": "The name of the 5th Faction involved (if required)",
 
"type": "wiki-page-name"
 
},
 
"faction6": {
 
"label": "6th Faction involved (if required)",
 
"description": "The name of the 6th Faction involved (if required)",
 
"type": "wiki-page-name"
 
}
 
},
 
"description": "This template is used for Wars (which is the main conflict in a series of smaller conflicts)"
 
}
 
</templatedata>
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:36, 21 August 2022

This is the "InfoBoxWar" template.

It should be called in the following format:

{{InfoBoxWar
|name=
|othernames=
|era=
|startdate=
|enddate=
|result=
|faction1=
|faction2=
|faction3=
|faction4=
|faction5=
|faction6=
}}

Edit the page to see the template text.