Template:Spartan infobox: Difference between revisions
From Halopedia, the Halo wiki
Chickenman (talk | contribs) m (Made the infobox more aethetically pleasing. :p) |
(major update. will need to update spartan pages) |
||
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;"> | |||
<tr><td colspan="2"><div id="infoboxinternal"> | |||
<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|#406B2E}}};">{{{image|}}}</td></tr> | ||
|{{{ | <tr style="text-align:center; color:#ffffff; background:#406B2E; 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:#8DB87A;">'''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;">Spartan Tag</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
|- | {{{spartantag|}}} | ||
| style=" | </td></tr>|1{{{spartantag|}}}=}} {{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|}}} | ||
| style=" | </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 of birth</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
|- | {{{birth|}}} | ||
| style=" | </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 of death</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
|- | {{{death|}}} | ||
| style=" | </td></tr>|1{{{death|}}}=}} {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#8DB87A;">'''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|}}} | ||
| style=" | </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|}}} | ||
| style=" | </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|}}} | ||
| style=" | </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;">Hair color</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
|- | {{{hair|}}} | ||
| style=" | </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 color</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
|- | {{{eyes|}}} | ||
| style=" | </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|}}} | ||
| style=" | </td></tr>|1{{{cyber|}}}=}} {{t|1=|1{{{hidec|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#8DB87A;">'''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|}}} | ||
| style=" | </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;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
|- | {{{affiliation|}}} | ||
| style=" | </td></tr>|1{{{affiliation|}}}=}} {{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;">Rank</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
| | {{{rank|}}} | ||
| style=" | </td></tr>|1{{{rank|}}}=}} {{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;">Specialty</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | ||
{{{specialty|}}} | |||
</td></tr>|1{{{specialty|}}}=}} {{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;">Battles</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | |||
{{{battles|}}} | |||
</td></tr>|1{{{battles|}}}=}} {{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;">Class</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;"> | |||
{{{class|}}} | |||
</td></tr>|1{{{class|}}}=}} </table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;"> [[Template:Bounty hunter 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}} | |||
===Usage=== | |||
Paste the following code into the top of an article, filling all known fields: | |||
== | <pre><nowiki>{{eras|}} | ||
< | |||
{{Template: Spartan infobox | {{Template: Spartan infobox | ||
|name= | |name= | ||
|image= | |image= | ||
|spartantag= | |spartantag= | ||
|gender= | |gender= | ||
| | |birth= | ||
| | |death= | ||
| | |affiliation= | ||
|specialty= | |specialty= | ||
|rank= | |rank= | ||
|status= | |status= | ||
|battles= | |battles= | ||
| | |class= | ||
}} | }}</nowiki></pre> | ||
</ | |||
{{ | ===Display parameters=== | ||
| | *hideb | ||
| | *hidep | ||
| | *hidec | ||
| | |||
|gender | ===Source=== | ||
| | <nowiki> | ||
| | {{subst:slh|#406B2E|250px}} {{subst:sls|Biographical information|#8DB87A|hideb}} {{subst:sld|Homeworld|homeworld}} {{subst:sld|Date of birth|birth}} {{subst:sld|Date of death|death}} {{subst:sls|Physical description|#8DB87A|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|#8DB87A|hidec}} {{subst:sld|Era(s)|era}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}} | ||
| | </nowiki><noinclude> | ||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}} | |||
[[Category: | [[Category:Character infoboxes]] | ||
</noinclude> | </noinclude> |
Revision as of 17:24, February 19, 2007
[Source] |
Usage
Paste the following code into the top of an article, filling all known fields:
{{eras|}} {{Template: Spartan infobox |name= |image= |spartantag= |gender= |birth= |death= |affiliation= |specialty= |rank= |status= |battles= |class= }}
Display parameters
- hideb
- hidep
- hidec
Source
{{subst:slh|#406B2E|250px}} {{subst:sls|Biographical information|#8DB87A|hideb}} {{subst:sld|Homeworld|homeworld}} {{subst:sld|Date of birth|birth}} {{subst:sld|Date of death|death}} {{subst:sls|Physical description|#8DB87A|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|#8DB87A|hidec}} {{subst:sld|Era(s)|era}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}}