Template:Military infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "Updated infoboxes" to "Infobox templates")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(52 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="width:300px; margin:0 0 1em 1em; padding:2px; border-radius:0 0 .5em .5em; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}};"
{{Infobox|start|bg=#{{#switch:{{{variant}}}|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
{{!}}-
{{Infobox|title|name={{{name|}}}}}
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:#FFFFFF;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#{{#switch:{{{variant}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|AAA}}}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|entry|title={{{formed-title|Active}}}|content={{{formed|}}}}}
! style="background:{{{imageBG|#{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
}}
{{Infobox|entry|title={{{branch-title|{{#switch:{{{variant}}}|Cov=Group|Branch}}}}}|content={{{branch|}}}}}
{{!}}-
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
{{#if:{{{formed|}}}|
{{Infobox|entry|title={{{role-title|Role}}}|content={{{role|}}}}}
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
{{Infobox|entry|title={{{size-title|Size}}}|content={{{size|}}}}}
'''{{{formed-title|Active}}}''':
{{Infobox|entry|title={{{nicknames-title|Nicknames}}}|content={{{nicknames|}}}}}
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{Infobox|entry|title={{{battles-title|Engagements}}}|content={{{battles|}}}}}
{{{formed|}}}
{{Infobox|entry|title={{{commanders-title|Commanders}}}|content={{{commanders|}}}}}
{{!}}-}}
{{Infobox|entry|title={{{notable-title|Notable information}}}|content={{{notable|}}}}}
{{#if:{{{affiliation|}}}|
 
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
{{Infobox|end}}<noinclude>{{clear}}
'''{{{affiliation-title|Affiliation}}}:'''
==Usage instructions==
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{affiliation|}}}
{{!}}-}}
{{#if:{{{branch|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}''':
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{branch|}}}
{{!}}-}}
{{#if:{{{type|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{type-title|Type}}}''':
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{type|}}}
{{!}}-}}
{{#if:{{{role|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{role-title|Role}}}''':
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{role|}}}
{{!}}-}}
{{#if:{{{size|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{size-title|Size}}}''':
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{size|}}}
{{!}}-}}
{{#if:{{{nicknames|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{nicknames-title|Nicknames}}}''':
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{nicknames|}}}
{{!}}-}}
{{#if:{{{battles|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{battles-title|Engagements}}}:'''
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{battles|}}}
{{!}}-}}
{{#if:{{{commanders|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{commanders-title|Commanders}}}''':
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{commanders|}}}
{{!}}-}}
{{#if:{{{notable|}}}|
{{!}}class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; padding-right:2px; line-height:14px; width:70px;" {{!}}
'''{{{notable-title|Notable information}}}''':
{{!}}class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{notable|}}}
{{!}}-}}
| colspan="2" style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:9px; line-height:10px;" |&nbsp;
|}<noinclude>
{{clear}}
===Usage instructions===
Paste the following code into the top of an article, filling all known fields:
Paste the following code into the top of an article, filling all known fields:
<pre>
<pre>
{{Military infobox
{{Military infobox
Line 85: Line 31:
|battles=
|battles=
|commanders=
|commanders=
}}</pre>
}}
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 10:11, June 14, 2024

Military infobox
 

Usage instructions

Paste the following code into the top of an article, filling all known fields:

{{Military infobox
|name=
|image=
|formed=
|affiliation=
|branch=
|type=
|role=
|size=
|nicknames=
|battles=
|commanders=
}}