Template:Title infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "\| class="infoboxfooter" colspan="2" \|  ↵\|}" to "{{Infobox|end}}")
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:{{{type|}}}|
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{government-title|Government}}}|content={{{government|}}}}}
{{{type-title|Type}}}:
{{Infobox|entry|title={{{memberof-title|Member of}}}|content={{{memberof|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{duties-title|Duties}}}|content={{{duties|}}}}}
{{{type}}}
{{Infobox|entry|title={{{term-title|Term length}}}|content={{{term|}}}}}
}}
{{Infobox|entry|title={{{style-title|Style of office}}}|content={{{style|}}}}}
|-
{{Infobox|entry|title={{{headquarters-title|Headquarters}}}|content={{{headquarters|}}}}}
{{#if:{{{government|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{government-title|Government}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{government}}}
}}
|-
{{#if:{{{memberof|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{memberof-title|Member of}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{memberof}}}
}}
|-
{{#if:{{{duties|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{duties-title|Duties}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{duties}}}
}}
|-
{{#if:{{{term|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{term-title|Term length}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{term}}}
}}
|-
{{#if:{{{style|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{style-title|Style of office}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{style}}}
}}
|-
{{#if:{{{headquarters|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{headquarters-title|Headquarters}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{headquarters}}}
}}
|-
{{#if:{{{hideb|}}}||
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#9b9b9b}}}" {{!}} {{{section2-title|Historical information}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#9b9b9b}}}" {{!}} {{{section2-title|Historical information}}}
}}
}}
|-
|-
{{#if:{{{formation|}}}|
{{Infobox|entry|title={{{formation-title|Formation}}}|content={{{formation|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{reorganized-title|Reorganized}}}|content={{{reorganized|}}}}}
{{{formation-title|Formation}}}:
{{Infobox|entry|title={{{abolished-title|Abolished}}}|content={{{abolished|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{notable-title|Notable individuals}}}|content={{{notable|}}}}}
{{{formation}}}
{{Infobox|entry|title={{{misc-title|Miscellaneous}}}|content={{{misc|}}}}}
}}
|-
{{#if:{{{reorganized|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{reorganized-title|Reorganized}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{reorganized}}}
}}
|-
{{#if:{{{abolished|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{abolished-title|Abolished}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{abolished}}}
}}
|-
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{notable-title|Notable individuals}}}:
{{!}} 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}}}
}}
|-
{{Infobox|end}}<noinclude>{{clear}}
{{Infobox|end}}<noinclude>{{clear}}



Revision as of 12:30, August 29, 2023

Title infobox
Political information
Historical information
 

Usage

This infobox is for political titles. Copy and paste the following into the article and fill in the fields.

{{Title infobox
|name=
|image=
|type=
|government=
|memberof=
|duties=
|term=
|style=
|headquarters=
|formation=
|reorganized=
|abolished=
|notable=
}}

Custom parameters

|type-title=
|government-title=
|memberof-title=
|duties-title=
|term-title=
|style-title=
|headquarters-title=
|formation-title=
|reorganized-title=
|abolished-title=
|notable-title=
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=

Display parameters

The following allows you to hide the section header

  • hidea (hides first section header)
  • hideb (hides second section header)
|hidea=
|hideb=