Template:Military infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(83 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly><table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;">
{{Infobox|start|bg=#{{#switch:{{{variant}}}|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
<tr><td colspan="2"><div id="infoboxinternal">
{{Infobox|title|name={{{name|}}}}}
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;">
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#{{#switch:{{{variant}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|AAA}}}}
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{imageBG|#b0c4de}}};">{{{image|}}}</td></tr>
 
<tr style="text-align:center; color:#000000; background:#b0c4de; font-size:larger;"><th colspan="2">{{{unit_name}}}</th></tr>
{{Infobox|entry|title={{{formed-title|Active}}}|content={{{formed|}}}}}
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Active</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{{dates|}}}
{{Infobox|entry|title={{{branch-title|{{#switch:{{{variant}}}|Cov=Group|Branch}}}}}|content={{{branch|}}}}}
</td></tr>|1{{{dates|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Country</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
{{{country|}}}
{{Infobox|entry|title={{{role-title|Role}}}|content={{{role|}}}}}
</td></tr>|1{{{country|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Allegiance</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{Infobox|entry|title={{{size-title|Size}}}|content={{{size|}}}}}
{{{allegiance|}}}
{{Infobox|entry|title={{{nicknames-title|Nicknames}}}|content={{{nicknames|}}}}}
</td></tr>|1{{{allegiance|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Branch</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{Infobox|entry|title={{{battles-title|Engagements}}}|content={{{battles|}}}}}
{{{branch|}}}
{{Infobox|entry|title={{{commanders-title|Commanders}}}|content={{{commanders|}}}}}
</td></tr>|1{{{branch|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Type</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{Infobox|entry|title={{{notable-title|Notable information}}}|content={{{notable|}}}}}
{{{type|}}}
</td></tr>|1{{{type|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Role</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{role|}}}
</td></tr>|1{{{role|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Size</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{size|}}}
</td></tr>|1{{{size|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Part of</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{command_structure|}}}
</td></tr>|1{{{command_structure|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Garrison</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{garrison|}}}
</td></tr>|1{{{garrison|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Nickname</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{nickname|}}}
</td></tr>|1{{{nickname|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Patron</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{patron|}}}
</td></tr>|1{{{patron|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Motto</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{motto|}}}
</td></tr>|1{{{motto|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Colors</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{colors|}}}
</td></tr>|1{{{colors|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">March</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{march|}}}
</td></tr>|1{{{march|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Mascot</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{mascot|}}}
</td></tr>|1{{{mascot|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Anniversaries</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{anniversaries|}}}
</td></tr>|1{{{anniversaries|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Equipment</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{equipment|}}}
</td></tr>|1{{{equipment|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Battles</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{battles|}}}
</td></tr>|1{{{battles|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Decorations</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{decorations|}}}
</td></tr>|1{{{decorations|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Battle Honors</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{battle_honors|}}}
</td></tr>|1{{{battle_honors|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Commanders</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{commanders|}}}
</td></tr>|1{{{commanders|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f9f9f9}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Notable Commanders</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{notable_commanders|}}}
</td></tr>|1{{{notable_commanders|}}}=}} </table></div></td></tr></table><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --></includeonly>
<noinclude>
{{clear}}
{{Infobox Military Unit
|unit_name=unit_name
|image=image
|dates=dates
|country=country
|allegiance=allegiance
|branch=branch
|type=type
|role=role
|size=size
|command_structure=command_structure
|garrison=garrison
|garrison_label=garrison_label
|nickname=nickname
|patron=patron
|motto=motto
|colors=colors
|colors_label=colors_label
|march=march
|mascot=mascot
|anniversaries=anniversaries
|equipment=equipment
|battles=battles
|decorations=decorations
|battle_honors=battle_honors
|commanders=commanders
|notable_commanders=notable_commanders
<!-- Insignia -->
|identification_symbol=identification_symbol
|identification_symbol_label=identification_symbol_label
|identification_symbol_2=identification_symbol_2
|identification_symbol_2_label=identification_symbol_2_label
|identification_symbol_3=identification_symbol_3
|identification_symbol_3_label=identification_symbol_3_label
<!-- Aircraft -->
|aircraft_attack=aircraft_attack
|aircraft_bomber=aircraft_bomber
|aircraft_electronic=aircraft_electronic
|aircraft_fighter=aircraft_fighter
|aircraft_interceptor=aircraft_interceptor
|aircraft_patrol=aircraft_patrol
|aircraft_recon=aircraft_recon
|aircraft_trainer=aircraft_trainer
|aircraft_transport=aircraft_transport
}}


===Usage instructions===
{{Infobox|end}}<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><nowiki>
 
{{Infobox Military Unit
<pre>
|unit_name=
{{Military infobox
|name=
|image=
|image=
|dates=
|formed=
|country=
|affiliation=
|allegiance=
|branch=
|branch=
|type=
|type=
|role=
|role=
|size=
|size=
|command_structure=
|nicknames=
|garrison=
|nickname=
|patron=
|motto=
|colors=
|march=
|mascot=
|anniversaries=
|equipment=
|battles=
|battles=
|decorations=
|battle_honors=
|commanders=
|commanders=
|notable_commanders=
}}
}}</nowiki></pre>
</pre>


===Display parameters===
[[Category:Infobox templates]]</noinclude>
*hideb
*hidep
*hidec
[[Category:Infoboxes|Military Unit]]
</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=
}}