Difference between revisions of "Template:War infobox"

From NPOWiki
Jump to navigation Jump to search
(Template modifications)
(fixes to combatants, improvements to styling and logic)
Line 34: Line 34:
 
}}
 
}}
 
{{#if:{{{aka|}}}|
 
{{#if:{{{aka|}}}|
! Also known as
+
! Also Known As
 
{{!}} {{{aka}}}
 
{{!}} {{{aka}}}
{{!}}-
 
}}
 
|-
 
{{#if:{{{combatants|}}}|{{#if:{{{side1|}}}{{{side2|}}}}}|
 
{{!}} colspan="2" class="infobox-center-text infobox-blue-bg" {{!}}
 
Combatants
 
 
}}
 
}}
|-
+
|- class="center-row"
{{#if:{{{combatants|}}}|{{#if:{{{side1|}}}{{{side2|}}}|{{error|mixed infobox usage (combatants)}}}}
+
! colspan="2" class="infobox-blue-bg" | Combatants
{{!}} colspan="2" class="infobox-center-text" {{!}}
+
{{#if:{{{combatants|}}}|{{#if:{{{side1|}}}{{{side2|}}}}}|{{error|mixed infobox usage (combatants)}}}}
 +
{{!}}- class="center-row"
 +
{{!}} colspan="2" {{!}}
 
{{{combatants}}}
 
{{{combatants}}}
 
|
 
|
 +
{{!}}-
 
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
 
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
 
{{{side1}}}
 
{{{side1}}}
Line 53: Line 50:
 
{{{side2}}}
 
{{{side2}}}
 
}}
 
}}
|-
 
{{#if:{{{leadership1|}}}{{{leadership2|}}}|
 
{{!}} colspan="2" class="infobox-center-text infobox-blue-bg" {{!}}
 
Commanders
 
}}
 
|-
 
 
{{#if:{{{leadership1|}}}{{{leadership2|}}}|
 
{{#if:{{{leadership1|}}}{{{leadership2|}}}|
 +
{{!}}- class="center-row"
 +
! colspan="2" class="infobox-blue-bg" {{!}} Commanders
 +
{{!}}-
 
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
 
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{leadership1}}}
+
{{{leadership1|}}}
 
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
 
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{leadership2}}}
+
{{{leadership2|}}}
}}
 
|-
 
{{#if:{{{ribbon|}}}|
 
{{!}} colspan="2" class="infobox-center-text infobox-blue-bg" {{!}}
 
Ribbon Awarded
 
 
}}
 
}}
|-
 
 
{{#if:{{{ribbon|}}}|
 
{{#if:{{{ribbon|}}}|
{{!}} colspan="2" class="infobox-center-text" {{!}}
+
{{!}}- class="center-row"
[[File:{{{ribbon}}}|{{PAGENAME}} War Ribbon]]
+
! colspan="2" class="infobox-blue-bg" {{!}} Ribbon Awarded
 +
{{!}}- class="center-row"
 +
{{!}} colspan="2" {{!}} [[File:{{{ribbon}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} War Ribbon]]
 
}}
 
}}
|-
 
 
|}{{if ns|main|
 
|}{{if ns|main|
 
[[Category:{{#if:{{{game|}}}|Wars in {{{game}}}|Wars}}]]
 
[[Category:{{#if:{{{game|}}}|Wars in {{{game}}}|Wars}}]]
 
}}</includeonly><noinclude>{{documentation}}</noinclude>
 
}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 11:52, 24 February 2021

Documentation [edit]

This infobox is for conflicts between two or more entities.

Parameters

  • game - the game in which the war took place.
  • name - (optional) the name of the war. Defaults to the page name.
  • combatants - only use this if there are not exactly two sides in the war. This is a freeform field.
  • side1 and side2 - if not using combatants, these are the two sides of the war. These are also freeform fields.
  • leadership1 and leadership2 - (optional) list the commanders during the combat.
  • start - the date the war started.
  • end - if applicable, the date the war ended.
  • cause - the reason the war started.
  • result - if the war has ended, a brief summary of the results of the war.
  • aka - (optional) other names by which the war is known.
  • partof - if applicable, the larger conflict from which this one branched off.
  • ribbon - (optional) upload the war ribbon and use just the name and file extension, eg: NSORaidRibbon.png

Skeleton

{{War infobox
|game = 
|side1 = 
|side2 = 
|leadership1 = 
|leadership2 = 
|start = 
|end = 
|cause = 
|result = 
|aka = 
|precededby = 
|succeededby = 
|ribbon = 
}}

The above documentation is transcluded from Template:War infobox/doc.