Template:Character infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
(revert.)
Line 1: Line 1:
<includeonly>{| class="infobox Character" cellpadding=2 cellspacing=2 align=right width=240px style="font-family: verdana, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 10px; background-color: #AFE495; border:1px solid #66CC33;"
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;">
| align="center" colspan=2 bgcolor="#000000" style="font-size:110%;" |
<tr><td colspan="2"><div id="infoboxinternal">
<span style="color:#FFFFFF;">'''''Character profile'''''</span>
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;">
|-
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{imageBG|#444444}}};">{{{image|}}}</td></tr>
|colspan=2 style="text-align:center;" | {{{image|}}}
<tr style="text-align:center; color:#ffffff; background:#444444; font-size:larger;"><th colspan="2">{{{name}}}</th></tr> {{t|1=|1{{{hideb|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#777777;">'''Biographical information'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Homeworld</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{homeworld|}}}
!colspan=2 style="font-size: larger" | {{{name|''name missing''}}}
</td></tr>|1{{{homeworld|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Date&nbsp;of&nbsp;birth</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{birth|}}}
!{{#if:{{{homeworld|}}}|<nowiki/> '''homeworld'''|}}}|<nowiki/>
</td></tr>|1{{{birth|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Date&nbsp;of&nbsp;death</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{death|}}}
!{{#if:{{{birth|}}}|<nowiki/> '''Date of Birth'''|}}}|<nowiki/>
</td></tr>|1{{{death|}}}=}} {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#777777;">'''Physical description'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Species</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{species|}}}
!{{#if:{{{died|}}}|<nowiki/> '''Date of Death'''|}}}|<nowiki/>
</td></tr>|1{{{species|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Gender</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{gender|}}}
!{{#if:{{{species|}}}|<nowiki/> '''Species'''|}}}|<nowiki/>
</td></tr>|1{{{gender|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Height</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{height|}}}
!{{#if:{{{gender|}}}|<nowiki/> '''Gender'''|}}}|<nowiki/>
</td></tr>|1{{{height|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Weapons</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{weapons|}}}
!{{#if:{{{height|}}}|<nowiki/> '''Height'''|}}}|<nowiki/>
</td></tr>|1{{{weapons|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Equipment</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{equipment|}}}
!{{#if:{{{weapons|}}}|<nowiki/> '''Weapons'''|}}}|<nowiki/>
</td></tr>|1{{{equipment|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Vehicles</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{vehicles|}}}
!{{#if:{{{equipment|}}}|<nowiki/> '''Equipment'''|}}}|<nowiki/>
</td></tr>|1{{{vehicles|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Hair&nbsp;color</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{hair|}}}
!{{#if:{{{vehicles|}}}|<nowiki/> '''Vehicles'''|}}}|<nowiki/>
</td></tr>|1{{{hair|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Eye&nbsp;color</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{eyes|}}}
!{{#if:{{{hair|}}}|<nowiki/> '''Hair'''|}}}|<nowiki/>
</td></tr>|1{{{eyes|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Cybernetics</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{cyber|}}}
!{{#if:{{{eyes|}}}|<nowiki/> '''Eyes'''|}}}|<nowiki/>
</td></tr>|1{{{cyber|}}}=}} {{t|1=|1{{{hidec|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#777777;">'''Chronological and political information'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Era(s)</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{era|}}}
!{{#if:{{{cyber|}}}|<nowiki/> '''Cyber'''|}}}|<nowiki/>
</td></tr>|1{{{era|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Subclasses</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{types|}}}
!{{#if:{{{era|}}}|<nowiki/> '''Era'''|}}}|<nowiki/>
</td></tr>|1{{{types|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Notable Persons</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{notable|}}}
!{{#if:{{{types|}}}|<nowiki/> '''Types'''|}}}|<nowiki/>
</td></tr>|1{{{notable|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{affiliation|}}}
!{{#if:{{{noteable|}}}|<nowiki/> '''Noteable'''|}}}|<nowiki/>
</td></tr>|1{{{affiliation|}}}=}} </table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;">&nbsp;&nbsp;[[Template:Covenant Character Infobox|[Source]]]</td></tr></table><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><noinclude>
|-
{{clear}}
!{{#if:{{{affiliatiom|}}}|<nowiki/> '''Affiliation'''|}}}|<nowiki/>
===Usage instructions===
|}</includeonly><noinclude>
Paste the following code into the top of an article, filling all known fields:
 
<pre><nowiki>
== Usage ==
{{Character Infobox
Any field -other than name- can be dropped when editing a character article, here is the full list of possible fields.
|name=
 
|image=
<pre>
|homeworld=
{{Character Infobox
|birth=
|name=
|death=
|image=
|species=
|homeworld=
|gender=
|birth=
|height=
|death=
|weapons=
|species=
|equipment=
|gender=
|vehicles=
|height=
|hair=
|weapons=
|eyes=
|equipment=
|cyber=
|vehicles=
|era=
|hair=
|types=
|eyes=
|notable=
|cyber=
|affiliation=
|era=
}}</nowiki></pre>
|types=
|notable=
|affiliation=
}}</pre>


==Test==
===Display parameters===
{{Character Infobox
*hideb
|name=...
*hidep
|image=...
*hidec
|homeworld=...
|birth=...
|death=...
|species=...
|gender=...
|height=...
|weapons=...
|equipment=...
|vehicles=...
|hair=...
|eyes=...
|cyber=...
|era=...
|types=...
|notable=...
|affiliation=...
}}


===Source===
<nowiki>
{{subst:slh|#444444|250px}} {{subst:sls|Biographical information|#777777|hideb}} {{subst:sld|Homeworld|homeworld}} {{subst:sld|Date&nbsp;of&nbsp;birth|birth}} {{subst:sld|Date&nbsp;of&nbsp;death|death}} {{subst:sls|Physical description|#777777|hidep}} {{subst:sld|Species|species}} {{subst:sld|Gender|gender}} {{subst:sld|Height|height}} {{subst:sld|Hair&nbsp;color|hair}} {{subst:sld|Eye&nbsp;color|eyes}} {{subst:sld|Cybernetics|cyber}} {{subst:sls|Chronological and political information|#777777|hidec}} {{subst:sld|Era(s)|era}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}}
</nowiki>
</noinclude>
<noinclude>
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 14:41, July 1, 2009

  [Source]

Usage instructions

Paste the following code into the top of an article, filling all known fields:

{{Character Infobox
|name=
|image=
|homeworld=
|birth=
|death=
|species=
|gender=
|height=
|weapons=
|equipment=
|vehicles=
|hair=
|eyes=
|cyber=
|era=
|types=
|notable=
|affiliation=
}}

Display parameters

  • hideb
  • hidep
  • hidec

Source

{{subst:slh|#444444|250px}} {{subst:sls|Biographical information|#777777|hideb}} {{subst:sld|Homeworld|homeworld}} {{subst:sld|Date of birth|birth}} {{subst:sld|Date of death|death}} {{subst:sls|Physical description|#777777|hidep}} {{subst:sld|Species|species}} {{subst:sld|Gender|gender}} {{subst:sld|Height|height}} {{subst:sld|Hair color|hair}} {{subst:sld|Eye color|eyes}} {{subst:sld|Cybernetics|cyber}} {{subst:sls|Chronological and political information|#777777|hidec}} {{subst:sld|Era(s)|era}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}}