Difference between revisions of "Template:Infobox unit"

From 7th Cavalry Wiki
Jump to navigation Jump to search
 
Line 4: Line 4:
 
| colspan="2" style="background:#cd5050; text-align:center" | '''{{{UnitName|Regimental HQ}}}'''
 
| colspan="2" style="background:#cd5050; text-align:center" | '''{{{UnitName|Regimental HQ}}}'''
 
|-
 
|-
| colspan="2" style="border-bottom:1px solid #aaaaaa; text-align:center" | {{{UnitIMG| https://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/7_Cav_Rgt_DUI.jpg/100px-7_Cav_Rgt_DUI.jpg}}}  
+
| colspan="2" style="border-bottom:1px solid #aaaaaa; text-align:center" | {{{UnitIMG|https://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/7_Cav_Rgt_DUI.jpg/100px-7_Cav_Rgt_DUI.jpg}}}  
|-
+
|- {{#if: {{{SupUnit|}}} | | style="display: none;" }}
|'''Superior Unit'''
+
! Superior Unit
|{{{SupUnit|N/A}}}
+
| {{{SupUnit}}}
 
|-
 
|-
 
| colspan="2" style="background:#cd5050; text-align:center" | '''Staff'''
 
| colspan="2" style="background:#cd5050; text-align:center" | '''Staff'''
|-
+
|- {{#if: {{{CO|}}} | | style="display: none;" }}
|'''CO'''
+
! CO
|{{{CO|N/A}}}
+
| {{{CO|}}}
|-
+
|- {{#if: {{{XO|}}} | | style="display: none;" }}
|'''XO'''
+
! XO
|{{{XO|N/A}}}
+
| {{{XO|}}}
|-
+
|- {{#if: {{{DepLead|}}} | | style="display: none;" }}
|'''NCO'''
+
! NCO
|{{{1SG|N/A}}}
+
| {{{1SG|}}}
 +
|- {{#if: {{{RepUnit|}}} | | style="display: none;" }}
 +
| colspan="2" style="background:#cd5050; text-align:center" | '''Reporting Units'''
 +
|{{RepUnit|}}
 
|}
 
|}
  
<!-- TODO: Add reporting Units (If-statements) -->
 
<!-- TODO: Add Documentation -->
 
 
<noinclude>
 
<noinclude>
 
<!--        Template Documentation        -->
 
<!--        Template Documentation        -->
Line 41: Line 42:
 
|UnitName || Regimental HQ
 
|UnitName || Regimental HQ
 
|-
 
|-
|UnitIMG || N/A
+
|UnitIMG || Gary Owen Image
 
|-
 
|-
 
|SupUnit || N/A
 
|SupUnit || N/A
Line 51: Line 52:
 
|1SG || N/A
 
|1SG || N/A
 
|-
 
|-
 +
|RepUnit ||
 
|}
 
|}
  
 
</noinclude>
 
</noinclude>

Revision as of 21:21, 31 January 2017

Regimental HQ
100px-7_Cav_Rgt_DUI.jpg
Superior Unit {{{SupUnit}}}
Staff
CO
XO
NCO
Reporting Units Template:RepUnit


Template Documentation

Usage

If this were a real template, the documentation would go here, along with a few examples on how to use it.

TemplateData

ParameterName Default Value
UnitName Regimental HQ
UnitIMG Gary Owen Image
SupUnit N/A
CO N/A
XO N/A
1SG N/A
RepUnit