Difference between revisions of "Template:Infobox Legio"

From Australis Ultima 30k
Jump to: navigation, search
(Created page with "<includeonly>{| style="float:right; clear:right; margin:0 0 .5em 1em; width:20em; background: #FAFAFA; border:1px solid {{#if:{{{bgcolor|}}}|{{{bgcolor}}}|#000000}}; font-...")
 
m
Line 1: Line 1:
<includeonly>{| style="float:right; clear:right; margin:0 0 .5em 1em; width:20em; background: #FAFAFA; border:1px solid {{#if:{{{bgcolor|}}}|{{{bgcolor}}}|&#35;000000}}; font-size:smaller; color:black;"
+
<!--Please do no edit this template-->
 +
{| class="infobox" style="font-size:95%; width:300px; background-color:#fff;float: right;border: 1px solid #aaa; margin-left:20px;"
 
|-
 
|-
! colspan=2 style="text-align:center; font-size:150%; background:{{#if:{{{bgcolor|}}}|{{{bgcolor}}}|&#35;000000}}; color:{{{fgcolor|&#35;FFFFFF}}}; padding:0.5em;"|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
+
! colspan="2" style="background-color:#d7e2ea; text-align:center; color:#000; font-size:150%; padding:1em;" | {{FULLPAGENAME}}
|-  
+
{{#if: {{{image|}}}|
{{#if:{{{image|}}}|
+
{{!}}-
! colspan=2 style="text-align:center;" {{!}} {{{image}}}
+
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|100px|link={{FULLPAGENAME}}]]<br/>''{{{caption| }}}''
 +
|
 
}}
 
}}
 
|-
 
|-
{{#if:{{{Warcry|}}}|
+
| style="width:40%;" |
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Warcry
+
'''Legio:'''
{{!}} style="padding-left:0.4em;" {{!}}
+
| style="width:60%;" |
{{{Warcry}}}
+
{{#var:legio}}
}}
+
|
 
|-
 
|-
{{#if:{{{Founding|}}}|
+
|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Founding
+
'''Legio Name:'''
{{!}} style="padding-left:0.4em;" {{!}}
+
|
{{{Founding}}}
+
{{#var:designation}}
}}
+
 
|-
 
|-
{{#if:{{{Successors of|}}}|
+
|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Successors of
+
'''Designation:'''
{{!}} style="padding-left:0.4em;" {{!}}
+
|
{{{Successors of}}}
+
{{FULLPAGENAME}}
}}
+
 
|-
 
|-
{{#if:{{{Successor Chapters|}}}|
+
|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Successor Chapters
+
'''Cognomen:'''
{{!}} style="padding-left:0.4em;" {{!}}
+
|
{{{Successor Chapters}}}
+
{{{Cognomen|No information}}}
}}
+
 
|-
 
|-
{{#if:{{{Number|}}}|
+
 
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Number
+
|
{{!}} style="padding-left:0.4em;" {{!}}
+
'''Allegiance:'''
{{{Number}}}
+
|{{#switch:{{{Allegiance}}}
 +
| loyalist = {{#vardefine:allegiance|Loyalist}}
 +
| Loyalist = {{#vardefine:allegiance|Loyalist}}
 +
| Traitor = {{#vardefine:allegiance|Traitor}}
 +
| traitor = {{#vardefine:allegiance|traitor}}
 +
| undecided = {{#vardefine:allegiance|Undecided}}
 +
| Undecided = {{#vardefine:allegiance|Undecided}}
 +
| {{#vardefine:allegiance|Unknown}}
 
}}
 
}}
 +
[[{{#var:allegiance}}]]
 
|-
 
|-
{{#if:{{{Primarch|}}}|
+
|colspan="2" style="text-align: center;background-color:#DCDCDC"|'''Campaigns'''
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Primarch
+
{{!}} style="padding-left:0.4em;" {{!}}
+
{{{Primarch}}}
+
}}
+
 
|-
 
|-
{{#if:{{{Chapter Master|}}}|
+
|colspan="2" style="text-align: center;"|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Chapter Master
+
{{#vardefine:errcheck|{{#sub:{{#dpl:
{{!}} style="padding-left:0.4em;" {{!}}
+
|category =Battlereport
{{{Chapter Master}}}
+
|category =Campaign
}}
+
|category ={{PAGENAME}}
 +
|notnamespace=Template
 +
}}|3|9}}}}
 +
{{#ifeq:{{#var:errcheck}}|Extension|{{DPL Error Message}}|{{#dpl:
 +
|category =Battlereport
 +
|category =Campaign
 +
|category ={{PAGENAME}}
 +
|include={Campaign Honour} imgmini
 +
|notnamespace=Template
 +
|format=,,[[%PAGE%]],
 +
}}}}
 
|-
 
|-
{{#if:{{{Homeworld|}}}|
+
|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Homeworld
+
{{!}} style="padding-left:0.4em;" {{!}}
+
{{{Homeworld}}}
+
}}
+
 
|-
 
|-
{{#if:{{{Alligiance|}}}|
+
|colspan="2" style="text-align: center;background-color:#DCDCDC"|'''Battles'''
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Allegiance
+
{{!}} style="padding-left:0.4em;" {{!}}
+
{{{Alligiance}}}
+
}}
+
 
|-
 
|-
{{#if:{{{Colours|}}}|
+
|colspan="2" style="text-align: center;"|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Colours
+
{{#vardefine:errcheck|{{#sub:{{#dpl:
{{!}} style="padding-left:0.4em;" {{!}}
+
|category =Battlereport
{{{Colours}}}
+
|category =Battle
}}
+
|category ={{PAGENAME}}
|}
+
|notnamespace=Template
 +
}}|3|9}}}}
 +
{{#ifeq:{{#var:errcheck}}|Extension|{{DPL Error Message}}|{{#dpl:
 +
|category =Battlereport
 +
|category =Battle
 +
|category ={{PAGENAME}}  
 +
|notnamespace=Template
 +
|format=,[[%PAGE%]]
 +
}}}}

Revision as of 06:54, 30 August 2014

Template:Infobox Legio

Legio:

Legio Name:

Designation:

Template:Infobox Legio

Cognomen:

No information

Allegiance:

Unknown

Campaigns

Imperial Search....No Result

Battles

Imperial Search....No Result