User:Imperial Emperor/Template:War infobox: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
(Updating ribbon display)
(Re-ordering template)
Line 1: Line 1:
<includeonly>{| class="infobox {{#if:{{{game|}}}|{{{game}}}|othergame}}"
<includeonly>{| class="infobox {{#if:{{{game|}}}|{{{game}}}|othergame}}"
! colspan="2" class="infobox-header infobox-blue-bg" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! colspan="2" class="infobox-header infobox-blue-bg" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
{{#if:{{{combatants|}}}|{{#if:{{{side1|}}}{{{side2|}}}|{{error|mixed infobox usage (combatants)}}}}
{{!}} colspan="2" class="infobox-center-text" {{!}}
{{{combatants}}}
|
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{side1}}}
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{side2}}}
}}
|-
{{#if:{{{leadership1|}}}{{{leadership2|}}}|
{{!}} colspan="2" class="infobox-center-text infobox-blue-bg" {{!}}
Commanders
}}
|-
{{#if:{{{leadership1|}}}{{{leadership2|}}}|
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{leadership1}}}
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{leadership2}}}
}}
|-
|-
! Started
! Started
Line 30: Line 8:
! Ended
! Ended
{{!}} {{{end}}}
{{!}} {{{end}}}
{{!}}-
}}
{{#if:{{{partof|}}}|
! Part of
{{!}} {{{partof}}}
{{!}}-
{{!}}-
}}
}}
Line 38: Line 21:
! Result
! Result
{{!}} {{{result}}}
{{!}} {{{result}}}
{{!}}-
}}
{{#if:{{{aka|}}}|
! Also known as
{{!}} {{{aka}}}
{{!}}-
}}
{{#if:{{{partof|}}}|
! Part of
{{!}} {{{partof}}}
{{!}}-
{{!}}-
}}
}}
Line 60: Line 33:
{{!}}-
{{!}}-
}}
}}
{{#if:{{{aka|}}}|
! Also known as
{{!}} {{{aka}}}
{{!}}-
}}
|-
{{#if:{{{combatants|}}}|{{#if:{{{side1|}}}{{{side2|}}}|{{error|mixed infobox usage (combatants)}}}}
{{!}} colspan="2" class="infobox-center-text" {{!}}
{{{combatants}}}
|
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{side1}}}
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{side2}}}
}}
|-
{{#if:{{{leadership1|}}}{{{leadership2|}}}|
{{!}} colspan="2" class="infobox-center-text infobox-blue-bg" {{!}}
Commanders
}}
|-
{{#if:{{{leadership1|}}}{{{leadership2|}}}|
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{leadership1}}}
{{!}} class="infobox-images-left" style="width:50%; vertical-align:top;" {{!}}
{{{leadership2}}}
}}
|-
{{#if:{{{ribbon|}}}|
{{#if:{{{ribbon|}}}|
{{!}} colspan="2" class="infobox-center-text infobox-blue-bg" {{!}}
{{!}} colspan="2" class="infobox-center-text infobox-blue-bg" {{!}}

Revision as of 09:06, 24 February 2021

Documentation [edit]

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