Difference between revisions of "Template:InfoBoxWar"
m (Fixing it up) |
m (Fixing it up) |
||
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)| | + | {{#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 | ||
− | | [[ | + | | [[startdate::{{{startdate|}}}]] |
|- | |- | ||
! End Year | ! End Year | ||
− | | [[ | + | | [[snddate::{{{enddate|}}}]] |
|- | |- | ||
! The result of the War | ! The result of the War | ||
Line 43: | Line 43: | ||
<includeonly>[[Category:Wars]]</includeonly><noinclude> | <includeonly>[[Category:Wars]]</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
− | <!-- Add cats and interwikis to the /doc subpage, not here! --> | + | <!-- Add cats and interwikis to the /doc subpage, not here! --><templatedata> |
+ | { | ||
+ | "params": { | ||
+ | "name": {}, | ||
+ | "othernames": {}, | ||
+ | "era": {}, | ||
+ | "startdate": { | ||
+ | "type": "date", | ||
+ | "required": true | ||
+ | }, | ||
+ | "enddate": {}, | ||
+ | "result": {}, | ||
+ | "faction1": {}, | ||
+ | "faction2": {}, | ||
+ | "faction3": {}, | ||
+ | "faction4": {}, | ||
+ | "faction5": {}, | ||
+ | "faction6": {} | ||
+ | }, | ||
+ | "format": "block" | ||
+ | } | ||
+ | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 17:23, 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.
This template may be suitable for conversion to use {{Infobox}} as a base. |
Purpose
Usage
TemplateData
This template is used for Wars (which is the main conflict in a series of smaller conflicts)
Parameter | Description | Type | Status | |
---|---|---|---|---|
War Name | name | Name of War | Page | required |
Also known as | othernames | Also known as | Page | suggested |
Era | era | The name of the Era this took place in | Page | required |
startdate | startdate | When the War started | Date | required |
enddate | enddate | When the War ended | Date | required |
War Result | result | What was the War's result? | String | suggested |
1st Faction involved | faction1 | Name of the 1st Faction involved | Page | required |
2nd Faction involved | faction2 | The name of the 2nd Faction involved | Page | required |
3rd Faction involved (if required) | faction3 | The name of the 3rd Faction involved (if required) | Page | optional |
4th Faction involved (if required) | faction4 | The name of the 4th Faction involved (if required) | Page | optional |
5th Faction involved (if required) | faction5 | The name of the 5th Faction involved (if required) | Page | optional |
6th Faction involved (if required) | faction6 | The name of the 6th Faction involved (if required) | Page | optional |
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | no description | Unknown | optional |
Othernames | othernames | no description | Unknown | optional |
Era | era | no description | Unknown | optional |
Startdate | startdate | no description | Date | required |
Enddate | enddate | no description | Unknown | optional |
Result | result | no description | Unknown | optional |
Faction1 | faction1 | no description | Unknown | optional |
Faction2 | faction2 | no description | Unknown | optional |
Faction3 | faction3 | no description | Unknown | optional |
Faction4 | faction4 | no description | Unknown | optional |
Faction5 | faction5 | no description | Unknown | optional |
Faction6 | faction6 | no description | Unknown | optional |