Template:Character infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
(This version is A LOT simpler, though uses the same fields..if you want to change background...just do that...DON'T REVERT)
Line 1: Line 1:
<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;">
{| 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;"
<tr><td colspan="2"><div id="infoboxinternal">
| align="center" colspan=2 bgcolor="#000000" style="font-size:110%;" |
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;">
<span style="color:#FFFFFF;">'''''Character profile'''''</span>
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{imageBG|#444444}}};">{{{image|}}}</td></tr>
|-
<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;">
|colspan=2 style="text-align:center;" | {{{image|}}}
{{{homeworld|}}}
|-
</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;">
!colspan=2 style="font-size: larger" | {{{name|''name missing''}}}
{{{birth|}}}
|-
</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;">
!{{#if:{{{homeworld|}}}|<nowiki/> '''homeworld'''|}}}|<nowiki/> || {{{homeworld|''homeworld unknown''}}}|<nowiki/>
{{{death|}}}
|-
</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;">
!{{#if:{{{birth|}}}|<nowiki/> '''Date of Birth'''|}}}|<nowiki/> || {{{birth|''birthdate unknown''}}}|<nowiki/>
{{{species|}}}
|-
</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;">
!{{#if:{{{died|}}}|<nowiki/> '''Date of Death'''|}}}|<nowiki/> || {{{died|''deathdate unknown''}}}|<nowiki/>
{{{gender|}}}
|-
</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;">
!{{#if:{{{species|}}}|<nowiki/> '''Species'''|}}}|<nowiki/> || {{{species|''species unknown''}}}|<nowiki/>
{{{height|}}}
|-
</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;">
|'''Gender''' || {{{gender|''gender unknown''}}}
{{{weapons|}}}
|-
</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;">
!{{#if:{{{height|}}}|<nowiki/> '''Height'''|}}}|<nowiki/> || {{{died|''height unknown''}}}|<nowiki/>
{{{equipment|}}}
|-
</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;">
!{{#if:{{{weapons|}}}|<nowiki/> '''Weapons'''|}}}|<nowiki/> || {{{weapons|''weapons unknown''}}}|<nowiki/>
{{{vehicles|}}}
|-
</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;">
!{{#if:{{{equipment|}}}|<nowiki/> '''Equipment'''|}}}|<nowiki/> || {{{equipment|''equipment unknown''}}}|<nowiki/>
{{{hair|}}}
|-
</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;">
!{{#if:{{{vehicles|}}}|<nowiki/> '''Vehicles'''|}}}|<nowiki/> || {{{vehicles|''vehicles unknown''}}}|<nowiki/>
{{{eyes|}}}
|-
</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;">
!{{#if:{{{hair|}}}|<nowiki/> '''Hair'''|}}}|<nowiki/> || {{{hair|''hair colour unknown''}}}|<nowiki/>
{{{cyber|}}}
|-
</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;">
!{{#if:{{{eyes|}}}|<nowiki/> '''Eyes'''|}}}|<nowiki/> || {{{eyes|''eye colour unknown''}}}|<nowiki/>
{{{era|}}}
|-
</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;">
!{{#if:{{{cyber|}}}|<nowiki/> '''Cyber'''|}}}|<nowiki/> || {{{cyber|''cyber unknown''}}}|<nowiki/>
{{{types|}}}
|-
</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;">
!{{#if:{{{era|}}}|<nowiki/> '''Era'''|}}}|<nowiki/> || {{{eras|''eras unknown''}}}|<nowiki/>
{{{notable|}}}
|-
</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;">
!{{#if:{{{types|}}}|<nowiki/> '''Types'''|}}}|<nowiki/> || {{{types|''types unknown''}}}|<nowiki/>
{{{affiliation|}}}
|-
</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>
!{{#if:{{{noteable|}}}|<nowiki/> '''Noteable'''|}}}|<nowiki/> || {{{noteable|''noteable facts unavailable''}}}|<nowiki/>
{{clear}}
|-
===Usage instructions===
!{{#if:{{{affiliatiom|}}}|<nowiki/> '''Affiliation'''|}}}|<nowiki/> || {{{affiliation|''affiliation unknown''}}}|<nowiki/>
Paste the following code into the top of an article, filling all known fields:
|}<noinclude>
<pre><nowiki>
{{Character Infobox
|name=
|image=
|homeworld=
|birth=
|death=
|species=
|gender=
|height=
|weapons=
|equipment=
|vehicles=
|hair=
|eyes=
|cyber=
|era=
|types=
|notable=
|affiliation=
}}</nowiki></pre>


===Display parameters===
== Usage ==
*hideb
Any field -other than name- can be dropped when editing a character article, here is the full list of possible fields.
*hidep
 
*hidec
<pre>
{{Character Infobox
|name=
|image=
|homeworld=
|birth=
|death=
|species=
|gender=
|height=
|weapons=
|equipment=
|vehicles=
|hair=
|eyes=
|cyber=
|era=
|types=
|notable=
|affiliation=
}}</pre>


===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 12:22, July 1, 2009

Character profile

name missing
Gender gender unknown

Usage

Any field -other than name- can be dropped when editing a character article, here is the full list of possible fields.

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