Template:Military infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "border-color:{{{lineBG\|([^\n}]+)}}}" {{!}} {{{image\|}}}" to "border-bottom:1px solid {{{lineBG|$1}}}" {{!}} {{{image|}}}")
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}}" cellspacing="0"
{{Infobox|start|bg=#{{#switch:{{{variant}}}|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#{{#switch:{{{variant}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|AAA}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|entry|title={{{formed-title|Active}}}|content={{{formed|}}}}}
}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
|-
{{Infobox|entry|title={{{branch-title|{{#switch:{{{variant}}}|Cov=Group|Branch}}}}}|content={{{branch|}}}}}
{{#if:{{{formed|}}}|
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{Infobox|entry|title={{{role-title|Role}}}|content={{{role|}}}}}
{{{formed-title|Active}}}:
{{Infobox|entry|title={{{size-title|Size}}}|content={{{size|}}}}}
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{nicknames-title|Nicknames}}}|content={{{nicknames|}}}}}
{{{formed|}}}
{{Infobox|entry|title={{{battles-title|Engagements}}}|content={{{battles|}}}}}
{{!}}-}}
{{Infobox|entry|title={{{commanders-title|Commanders}}}|content={{{commanders|}}}}}
{{#if:{{{affiliation|}}}|
{{Infobox|entry|title={{{notable-title|Notable information}}}|content={{{notable|}}}}}
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
 
{{{affiliation-title|Affiliation}}}:
{{Infobox|end}}<noinclude>{{clear}}
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
==Usage instructions==
{{{affiliation|}}}
{{!}}-}}
{{#if:{{{branch|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{branch|}}}
{{!}}-}}
{{#if:{{{type|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{type-title|Type}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{type|}}}
{{!}}-}}
{{#if:{{{role|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{role-title|Role}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{role|}}}
{{!}}-}}
{{#if:{{{size|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{size-title|Size}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{size|}}}
{{!}}-}}
{{#if:{{{nicknames|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{nicknames-title|Nicknames}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{nicknames|}}}
{{!}}-}}
{{#if:{{{battles|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{battles-title|Engagements}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{battles|}}}
{{!}}-}}
{{#if:{{{commanders|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{commanders-title|Commanders}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{commanders|}}}
{{!}}-}}
{{#if:{{{notable|}}}|
{{!}}class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}; width:70px" {{!}}
{{{notable-title|Notable information}}}:
{{!}}class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{notable|}}}
{{!}}-}}
| class="infoboxfooter" colspan="2" | &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:


Line 85: Line 31:
|battles=
|battles=
|commanders=
|commanders=
}}</pre>
}}
</pre>


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

Latest revision as of 15:05, August 29, 2023

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=
}}