Template:Spartan infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{!}} {{{section" to "class="infoboxsubheading" {{!}} {{{section")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" style="width:300px; background:{{{BG|#406B2E}}};  color:{{{color1|inherit}}}"
{{Infobox|start|bg=#406B2E}}
{{!}}-
{{Infobox|title|name={{{name|}}}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}" class="infoboxheading" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#F0F8FF}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|section|title={{{section1-title|Biographical information}}}|bg=#8DB87A|color=#000|entries=
! style="background:{{{imageBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999}}}" colspan="2" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|entry|title={{{fullname-title|Full name}}}|content={{{fullname|}}}}}
{{Infobox|entry|title={{{homeworld-title|Birthplace}}}|content={{{homeworld|}}}}}
{{Infobox|entry|title={{{birth-title|Date of birth}}}|content={{{birth|}}}}}
{{Infobox|entry|title={{{death-title|Date of death}}}|content={{{death|}}}}}
{{Infobox|entry|title={{{gender-title|Gender}}}|content={{{gender|}}}}}
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
{{Infobox|entry|title={{{mass-title|Weight}}}|content={{{mass|}}}}}
{{Infobox|entry|title={{{hair-title|Hair color}}}|content={{{hair|}}}}}
{{Infobox|entry|title={{{eyes-title|Eye color}}}|content={{{eyes|}}}}}
}}
}}
{{!}}-
 
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
{{Infobox|section|title={{{section2-title|Political and military information}}}|bg=#8DB87A|color=#000|entries=
! colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#8DB87A}}}" class="infoboxsubheading" {{!}} {{{section1-title|Biographical information}}}}}
{{Infobox|entry|title={{{spartantag-title|Spartan tag}}}|content={{{spartantag|}}}}}
{{!}}-
{{Infobox|entry|title={{{branch-title|Branch}}}|content={{{branch|}}}}}
{{#if:{{{fullname|}}}|
{{Infobox|entry|title={{{group-title|Group}}}|content={{{group|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{rank-title|Rank}}}|content={{{rank|}}}}}
'''{{{fullname-title|Full name}}}''':
}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
 
{{{fullname|}}}
{{Infobox|end}}<noinclude>{{clear}}
{{!}}-}}
==Usage instructions==
{{#if:{{{homeworld|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{homeworld-title|Birthplace}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{homeworld|}}}
{{!}}-}}
{{#if:{{{birth|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{birth-title|Date of birth}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{birth|}}}
{{!}}-}}
{{#if:{{{death|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{death-title|Date of death}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{death|}}}
{{!}}-}}
{{#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:{{{height|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{height-title|Height}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{height|}}}
{{!}}-}}
{{#if:{{{mass|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{mass-title|Weight}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{mass|}}}
{{!}}-}}
{{#if:{{{hair|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{hair-title|Hair color}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{hair|}}}
{{!}}-}}
{{#if:{{{eyes|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{eyes-title|Eye color}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{eyes|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#8DB87A}}}" class="infoboxsubheading" {{!}} {{{section2-title|Political and military information}}}}}
{{!}}-
{{#if:{{{spartantag|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{spartantag-title|Spartan tag}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{spartantag|}}}
{{!}}-}}
{{#if:{{{branch|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{branch-title|Branch}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{branch|}}}
{{!}}-}}
{{#if:{{{group|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{group-title|Group}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{group|}}}
{{!}}-}}
{{#if:{{{rank|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{rank-title|Rank}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{rank|}}}
{{!}}-}}
| colspan="2" style="text-align:center; line-height:8px" | &nbsp;
|}<noinclude>{{clear}}
==Usage==
Copy and paste the following into the article and fill in the fields.
Copy and paste the following into the article and fill in the fields.
<pre>
<pre>
{{Spartan infobox
{{Spartan infobox
Line 117: Line 48:
==Custom parameters==
==Custom parameters==
The following allows you to alter the title of the sub-sections:
The following allows you to alter the title of the sub-sections:
<pre>
<pre>
|BG=
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section1-title=
|section2-title=
|section2-title=
</pre>
==Display parameters==
The following allows you to hide the section header
*hidea (hides Bio section header)
*hideb (hides Politic/Military section header)
<pre>
|hidea=
|hideb=
</pre>
</pre>


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

Latest revision as of 11:10, June 14, 2024

Spartan infobox
 

Usage instructions

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

{{Spartan infobox
|name=
|image=
|fullname=
|homeworld=
|birth=
|death=
|gender=
|height=
|mass=
|hair=
|eyes=
|spartantag=
|branch=
|group=
|rank=
}}

Custom parameters

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

|section1-title=
|section2-title=