Template:AI infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "|{{!}}-|{{!}}-" to "||")
m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to "{{Infobox|entry|title=$2|content=$1}}")
Line 10: Line 10:
}}
}}
|-
|-
{{#if:{{{activationsite|}}}|
{{Infobox|entry|title={{{activationsite-title|Activation site}}}|content={{{activationsite|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{began-title|Began service}}}|content={{{began|}}}}}
{{{activationsite-title|Activation site}}}:
{{Infobox|entry|title={{{ended-title|Ended service}}}|content={{{ended|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{gender-title|Gender}}}|content={{{gender|}}}}}
{{{activationsite}}}
{{Infobox|entry|title={{{description-title|Description}}}|content={{{description|}}}}}
}}
{{Infobox|entry|title={{{color-title|Color(s)}}}|content={{{color|}}}}}
|-
{{#if:{{{began|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{began-title|Began service}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{began}}}
}}
|-
{{#if:{{{ended|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ended-title|Ended service}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ended}}}
}}
|-
{{#if:{{{gender|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{gender-title|Gender}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{gender}}}
}}
|-
{{#if:{{{description|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{description-title|Description}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{description}}}
}}
|-
{{#if:{{{color|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{color-title|Color(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{color}}}
}}
|-
{{#if:{{{hideb|}}}||
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#555}}}" {{!}} {{{section2-title|Political and military information}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#555}}}" {{!}} {{{section2-title|Political and military information}}}
}}
}}
|-
|-
{{#if:{{{affiliation|}}}|
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{function-title|Functionality}}}|content={{{function|}}}}}
{{{affiliation-title|Affiliation}}}:
{{Infobox|entry|title={{{number-title|[[AI serial number|Service number]]}}}|content={{{number|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
{{{affiliation}}}
{{Infobox|entry|title={{{misc-title|Miscellaneous}}}|content={{{misc|}}}}}
}}
|-
{{#if:{{{function|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{function-title|Functionality}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{function}}}
}}
|-
{{#if:{{{number|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{number-title|[[AI serial number|Service number]]}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{number}}}
}}
|-
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{notable-title|Notable info}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{notable}}}
}}
|-
{{#if:{{{misc|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{misc-title|Miscellaneous}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{misc}}}
}}
|-
| class="infoboxfooter" colspan="2" |  
| class="infoboxfooter" colspan="2" |  
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Character {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Character {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>

Revision as of 10:26, August 28, 2023

AI infobox
Biographical information
Political and military information
 

Usage

Copy and paste the following into the article and fill in the fields.

{{AI infobox
|name=
|image=
|activationsite=
|began=
|ended=
|gender=
|description=
|color=
|affiliation=
|number= <exclusive for UNSC AI>*
|function=
|notable=
}}

Custom parameters

The following allows you to alter the title of the sub-sections:

|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=

Display parameters

The following allows you to hide the section header

  • hidea (hides Bio section header)
  • hideb (hides Politic/Military section header)
|hidea=
|hideb=