Template:Spartan infobox: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:6px; padding:2px; background:{{{BG|#406B2E}}}; border-radius: 0 0 .7em .7em; -moz-border-radius: 0 0 .7em .7em; -webkit-border-radius: 0 0 .7em .7em; -ms-border-radius: 0 0 .7em .7em; -o-border-radius: 0 0 .7em .7em; color:{{{color1|inherit}}};" | |||
|- | {{!}}- | ||
| | ! style="background:{{{nameBG|transparent}}}; color:{{{color2|#FFFFFF}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
|- | {{!}}- | ||
| | {{#if:{{{image|}}}| | ||
|- | ! style="background:{{{imageBG|#F0F8FF}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}} | ||
| | }} | ||
|- | {{!}}- | ||
{{#if:{{{hidea|}}}|{{!}}-|{{!}}- | |||
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#FFFFFF}}}; text-align:center; background:{{{sectionBG|#8DB87A}}}" {{!}} {{{section1-title|Biographical information}}}}} | |||
{{!}}- | |||
{{#if:{{{fullname|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{fullname-title|Full name}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{fullname|}}} | |||
{{!}}-}} | |||
{{#if:{{{homeworld|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{homeworld-title|Birthplace}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{homeworld|}}} | |||
{{!}}-}} | |||
{{#if:{{{birth|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{birth-title|Date of birth}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{birth|}}} | |||
{{!}}-}} | |||
{{#if:{{{death|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{death-title|Date of death}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{death|}}} | |||
{{!}}-}} | |||
{{#if:{{{gender|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{gender-title|Gender}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{gender|}}} | |||
{{!}}-}} | |||
{{#if:{{{height|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{height-title|Height}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{height|}}} | |||
{{!}}-}} | |||
{{#if:{{{mass|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{mass-title|Weight}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{mass|}}} | |||
{{!}}-}} | |||
{{#if:{{{hair|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{hair-title|Hair color}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{hair|}}} | |||
{{!}}-}} | |||
{{#if:{{{eyes|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{eyes-title|Eye color}}}''': | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{eyes|}}} | |||
{{!}}-}} | |||
{{#if:{{{hideb|}}}|{{!}}-|{{!}}- | |||
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#FFFFFF}}}; text-align:center; background:{{{sectionBG|#8DB87A}}}" {{!}} {{{section2-title|Political and military information}}}}} | |||
{{!}}- | |||
{{#if:{{{spartantag|}}}| | {{#if:{{{spartantag|}}}| | ||
! | {{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | ||
'''{{{spartantag-title|Service number}}}''': | |||
}} | {{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | ||
{{{spartantag|}}} | |||
{{ | {{!}}-}} | ||
{{#if:{{{service|}}}| | |||
{{ | {{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | ||
'''{{{service-title|Years of service}}}:''' | |||
{{ | {{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | ||
{{{service|}}} | |||
{{!}}-}} | |||
{{#if:{{{branch|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{branch-title|Branch}}}:''' | |||
{{ | {{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | ||
{{{branch|}}} | |||
{{# | {{!}}-}} | ||
{{#if:{{{group|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{group-title|Group}}}:''' | |||
{{ | {{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | ||
{{{group|}}} | |||
{{ | {{!}}-}} | ||
{{#if:{{{rank|}}}| | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
'''{{{rank-title|Rank}}}:''' | |||
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}} | |||
{{{rank|}}} | |||
{{ | {{!}}-}} | ||
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px;" | [[Template:SPARTAN Infobox|<span style="color:#FFFFFF;">[Source]</span>]] | |||
{{# | |}<noinclude> | ||
{{ | |||
{{ | |||
| colspan=2 style="text-align:center; background: | |||
|} | |||
==Usage== | ==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 | ||
|image= | |image= | ||
|homeworld= | |homeworld= | ||
|birth= | |birth= | ||
Line 61: | Line 112: | ||
|hair= | |hair= | ||
|eyes= | |eyes= | ||
| | |spartantag= | ||
| | |service= | ||
|branch= | |||
|group= | |||
|rank= | |rank= | ||
}} | }} | ||
</pre> | </pre> | ||
==Custom parameters== | |||
The following allows you to alter the title of the sub-sections: | |||
<pre> | |||
|imageBG= | |||
|nameBG= | |||
|sectionBG= | |||
|fieldBG= | |||
|titleBG= | |||
|color1= | |||
|color2= | |||
|section1-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> | <pre> | ||
|hidea= | |||
|hideb= | |||
| | |||
</pre> | </pre> | ||
[[Category:Character infoboxes|SPARTAN Infobox]] | [[Category:Character infoboxes|SPARTAN Infobox]] | ||
</noinclude> | </noinclude> |
Revision as of 07:36, September 19, 2011
Spartan infobox | |
---|---|
Biographical information | |
Political and military information | |
[Source] |
Usage
Copy and paste the following into the article and fill in the fields.
{{SPARTAN Infobox |image= |homeworld= |birth= |death= |gender= |height= |mass= |hair= |eyes= |spartantag= |service= |branch= |group= |rank= }}
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=