Template:Spartan infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(92 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"
{{Infobox|start|bg=#406B2E}}
|-  
{{Infobox|title|name={{{name|}}}}}
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|{{{image}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#F0F8FF}}
|-
 
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#406B2E; border-top:1px solid #999; border-bottom:1px solid #999;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
{{Infobox|section|title={{{section1-title|Biographical information}}}|bg=#8DB87A|color=#000|entries=
|-
{{Infobox|entry|title={{{fullname-title|Full name}}}|content={{{fullname|}}}}}
| colspan=2 style="background:#8DB87A; border-bottom:1px solid #999;" | '''Biographical information'''
{{Infobox|entry|title={{{homeworld-title|Birthplace}}}|content={{{homeworld|}}}}}
|-
{{Infobox|entry|title={{{birth-title|Date of birth}}}|content={{{birth|}}}}}
{{#if:{{{spartantag|}}}|
{{Infobox|entry|title={{{death-title|Date of death}}}|content={{{death|}}}}}
! width="32%" style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;" {{!}} Spartan Tag
{{Infobox|entry|title={{{gender-title|Gender}}}|content={{{gender|}}}}}
! width="68%" style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;" {{!}} {{{spartantag}}}
{{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|}}}}}
}}
 
{{Infobox|section|title={{{section2-title|Political and military information}}}|bg=#8DB87A|color=#000|entries=
{{Infobox|entry|title={{{spartantag-title|Spartan tag}}}|content={{{spartantag|}}}}}
{{Infobox|entry|title={{{branch-title|Branch}}}|content={{{branch|}}}}}
{{Infobox|entry|title={{{group-title|Group}}}|content={{{group|}}}}}
{{Infobox|entry|title={{{rank-title|Rank}}}|content={{{rank|}}}}}
}}
}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 
{{#if:{{{homeworld|}}}|{{!}}{{!}}Homeworld{{!}}{{!}}{{{homeworld}}}}}
{{Infobox|end}}<noinclude>{{clear}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
==Usage instructions==
{{#if:{{{birth|}}}|{{!}}{{!}}Birth date{{!}}{{!}}{{{birth}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{death|}}}|{{!}}{{!}}Death date{{!}}{{!}}{{{death}}}}}
|-
| colspan=2 style="background:#8DB87A; border-bottom:1px solid #999;" | '''Physical description'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{gender|}}}|{{!}}{{!}}Gender{{!}}{{!}}{{{gender}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{height|}}}|{{!}}{{!}}Height{{!}}{{!}}{{{height}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{mass|}}}|{{!}}{{!}}Weight{{!}}{{!}}{{{mass}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{hair|}}}|{{!}}{{!}}Hair color{{!}}{{!}}{{{hair}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{eyes|}}}|{{!}}{{!}}Eye color{{!}}{{!}}{{{eyes}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{cyber|}}}|{{!}}{{!}}Cybernetics{{!}}{{!}}{{{cyber}}}}}
|-
| colspan=2 style="background:#8DB87A; border-bottom:1px solid #999;" | '''Affiliation and military information'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{affiliation|}}}|{{!}}{{!}}Affiliation{{!}}{{!}}{{{affiliation}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{rank|}}}|{{!}}{{!}}Rank{{!}}{{!}}{{{rank}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{specialty|}}}|{{!}}{{!}}Specialty{{!}}{{!}}{{{specialty}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{battles|}}}|{{!}}{{!}}Battles{{!}}{{!}}{{{battles}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{class|}}}|{{!}}{{!}}Class{{!}}{{!}}{{{class}}}}}
|-
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:SPARTAN Infobox|[Source]]]
|}</includeonly><noinclude>
==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
|name=  
|name=
|image=  
|image=
|spartantag=  
|fullname=
|homeworld=  
|homeworld=
|birth=  
|birth=
|death=  
|death=
|gender=
|gender=
|height=
|height=
Line 61: Line 39:
|hair=
|hair=
|eyes=
|eyes=
|cyber=
|spartantag=
|affiliation=
|branch=
|group=
|rank=
|rank=
|specialty=
|battles=
|class=
}}
}}
</pre>
</pre>


All fields are optional.
==Custom parameters==
The following allows you to alter the title of the sub-sections:


==Source==
<pre>
<pre>
{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"
|section1-title=
|-
|section2-title=
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|{{{image}}}}}
|-
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#406B2E; border-top:1px solid #999; border-bottom:1px solid #999;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
|-
| colspan=2 style="background:#8DB87A; border-bottom:1px solid #999;" | '''Biographical information'''
|-
{{#if:{{{spartantag|}}}|
! width="32%" style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;" {{!}} Spartan Tag
! width="68%" style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;" {{!}} {{{spartantag}}}
}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{homeworld|}}}|{{!}}{{!}}Homeworld{{!}}{{!}}{{{homeworld}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{birth|}}}|{{!}}{{!}}Birth date{{!}}{{!}}{{{birth}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{death|}}}|{{!}}{{!}}Death date{{!}}{{!}}{{{death}}}}}
|-
| colspan=2 style="background:#8DB87A; border-bottom:1px solid #999;" | '''Physical description'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{gender|}}}|{{!}}{{!}}Gender{{!}}{{!}}{{{gender}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{height|}}}|{{!}}{{!}}Height{{!}}{{!}}{{{height}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{hair|}}}|{{!}}{{!}}Hair color{{!}}{{!}}{{{hair}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{eyes|}}}|{{!}}{{!}}Eye color{{!}}{{!}}{{{eyes}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{cyber|}}}|{{!}}{{!}}Cybernetics{{!}}{{!}}{{{cyber}}}}}
|-
| colspan=2 style="background:#8DB87A; border-bottom:1px solid #999;" | '''Affiliation and military information'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{affiliation|}}}|{{!}}{{!}}Affiliation{{!}}{{!}}{{{affiliation}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{rank|}}}|{{!}}{{!}}Rank{{!}}{{!}}{{{rank}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{specialty|}}}|{{!}}{{!}}Specialty{{!}}{{!}}{{{specialty}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{battles|}}}|{{!}}{{!}}Battles{{!}}{{!}}{{{battles}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{class|}}}|{{!}}{{!}}Class{{!}}{{!}}{{{class}}}}}
|-
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:SPARTAN Infobox|[Source]]]
|}
</pre>
</pre>
[[Category:Character infoboxes|SPARTAN Infobox]]
 
[[Category:Templates|{{PAGENAME}}]]
[[Category:Infobox templates]]</noinclude>
</noinclude>

Latest revision as of 10: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=