Template:Unit infobox: Difference between revisions
From Halopedia, the Halo wiki
m (Text replacement - ""vertical-align: *top; " to """) |
m (Text replacement - "border-bottom: *1px solid {{{lineBG\|([^\n}]+)}}}; border-top: *1px solid {{{lineBG\|[^\n}]+}}}; " to "border-color:{{{lineBG|$1}}}; ") |
||
Line 8: | Line 8: | ||
{{!}}- | {{!}}- | ||
{{#if:{{{mission|}}}| | {{#if:{{{mission|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{mission-title|Function}}}''': | '''{{{mission-title|Function}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{mission|}}} | {{{mission|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{leader|}}}| | {{#if:{{{leader|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{leader-title|Leader}}}''': | '''{{{leader-title|Leader}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{leader|}}} | {{{leader|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{species|}}}| | {{#if:{{{species|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{species-title|Species}}}''': | '''{{{species-title|Species}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{species|}}} | {{{species|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{headquarters|}}}| | {{#if:{{{headquarters|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{headquarters-title|Headquarters}}}''': | '''{{{headquarters-title|Headquarters}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{headquarters|}}} | {{{headquarters|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{affiliation|}}}| | {{#if:{{{affiliation|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{affiliation-title|Affiliation}}}:''' | '''{{{affiliation-title|Affiliation}}}:''' | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{affiliation|}}} | {{{affiliation|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{authority|}}}| | {{#if:{{{authority|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{authority-title|{{#switch:{{{variant|}}}|Cov=Ministry|Human=Operational<br>authority|Authority}}}}}''': | '''{{{authority-title|{{#switch:{{{variant|}}}|Cov=Ministry|Human=Operational<br>authority|Authority}}}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{authority|}}} | {{{authority|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{branch|}}}| | {{#if:{{{branch|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}''': | '''{{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{branch|}}} | {{{branch|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{role|}}}| | {{#if:{{{role|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{role-title|Other role(s)}}}''': | '''{{{role-title|Other role(s)}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{role|}}} | {{{role|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{size|}}}| | {{#if:{{{size|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{size-title|Size}}}''': | '''{{{size-title|Size}}}''': | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{size|}}} | {{{size|}}} | ||
{{!}}-}} | {{!}}-}} | ||
<!-- {{#if:{{{equipment|}}}| | <!-- {{#if:{{{equipment|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{equipment-title|Equipment}}}:''' | '''{{{equipment-title|Equipment}}}:''' | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{equipment|}}} | {{{equipment|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{armament|}}}| | {{#if:{{{armament|}}}| | ||
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{armament-title|Armament}}}:''' | '''{{{armament-title|Armament}}}:''' | ||
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{armament|}}} | {{{armament|}}} | ||
{{!}}-}} --> | {{!}}-}} --> | ||
{{#if:{{{notable|}}}| | {{#if:{{{notable|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{notable-title|Notable individuals}}}:''' | '''{{{notable-title|Notable individuals}}}:''' | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{notable|}}} | {{{notable|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{othernames|}}}| | {{#if:{{{othernames|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}} | ||
'''{{{othernames-title|Also known as}}}:''' | '''{{{othernames-title|Also known as}}}:''' | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border- | {{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}} | ||
{{{othernames|}}} | {{{othernames|}}} | ||
{{!}}-}} | {{!}}-}} |
Revision as of 22:24, September 14, 2022
Unit infobox | |
---|---|
About
Standardised for all faction use.
Usage
Paste the following code into the top of an article, filling all known fields:
- Note: adding 'Cov' in the "variant" field will set every title using Covenant standards (i.e. Group as opposed to Branch, Ministry as opposed to Operational authority). The opposite is the same if 'Human' is added instead.
{{Unit infobox|variant= <specify Cov, Ban, Human, Forerunner. No value makes infobox grey> |image= |mission= |leader= |species= |headquarters= |authority= |branch= |affiliation= |role= |size= |notable= |othernames= }}
Custom parameters
The following are custom parameters that allows you to alter the infobox
|name= |<FIELD>-title= |imageBG= |nameBG= |sectionBG= |fieldBG=