Template:Spartan infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Made the infobox more aethetically pleasing. :p)
(major update. will need to update spartan pages)
Line 1: Line 1:
{| class="infobox" border="1" style="float:right; clear:right;width: 250px; border-spacing: 2px; font-size: 95%; text-align: left;border-collapse:collapse; border:1px solid #999999;margin: 0 0 .5em 1em;"
<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">
! colspan="2" style="background: olivedrab; text-align: center; font-size:100%;" | {{{name|{{PAGENAME}}}}}
<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>
|{{{image|}}}<br/>{{{caption|}}}
<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="padding-right: 1em;background:#F0F0F0;"| '''SPARTAN Tag:''' {{{spartantag|}}}
</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="padding-right: 1em;"| '''Gender:''' {{{gender|}}}
</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|}}}
| style="padding-right: 1em;background:#F0F0F0;"| '''Date of Birth:''' {{{dateofbirth|}}}
</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|}}}
| style="padding-right: 1em;"| '''Place of Birth:''' {{{placeofbirth|}}}
</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="padding-right: 1em;background:#F0F0F0;"| '''Date of Death:''' {{{dateofdeath|}}}
</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="padding-right: 1em;"| '''Place of Death''': {{{placeofdeath|}}}
</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="padding-right: 1em;background:#F0F0F0;"| '''Allegiance:''' {{{allegiance|}}}
</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&nbsp;color</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{hair|}}}
| style="padding-right: 1em;"| '''Specialty:''' {{{specialty|}}}
</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|}}}
| style="padding-right: 1em;background:#F0F0F0;"| '''Rank:''' {{{rank|}}}
</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="padding-right: 1em;"| '''Status:''' {{{status|}}}
</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="padding-right: 1em;background:#F0F0F0;"| '''Battles/wars:''' {{{battles|}}}
</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="padding-right: 1em;"| '''Spartan Class:''' {{{spartanclass|}}}
</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="padding-right: 1em;background:olivedrab;height:5px"|
</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;">
|}<noinclude>
{{{specialty|}}}
==General==
</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%;">&nbsp;&nbsp;[[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}}


This is a template that is used for the Spartans.
===Usage===
 
Paste the following code into the top of an article, filling all known fields:
==How to use==
<pre><nowiki>{{eras|}}
 
Insert this code into the spartan page, filling in the appropriate data:  
<PRE>
{{Template: Spartan infobox
{{Template: Spartan infobox
|name=
|name=
|image=
|image=
|caption=
|spartantag=
|spartantag=
|gender=
|gender=
|dateofbirth=
|birth=
|placeofbirth=
|death=
|dateofdeath=
|affiliation=
|placeofdeath=
|allegiance=
|specialty=
|specialty=
|rank=
|rank=
|status=
|status=
|battles=
|battles=
|spartanclass=
|class=
}}
}}</nowiki></pre>
</PRE>
==Sample==
Here is a sample using the Master Chief:


{{Template: Spartan infobox
===Display parameters===
|name=John
*hideb
|image=[[Image:Halo3MC.jpg|center|150px]]
*hidep
|caption=
*hidec
|spartantag=SPARTAN-117
 
|gender=Male
===Source===
|dateofbirth=[[2511]]
<nowiki>
|placeofbirth=[[Elysium City]], [[Eridanus II]]
{{subst:slh|#406B2E|250px}} {{subst:sls|Biographical information|#8DB87A|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|#8DB87A|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|#8DB87A|hidec}} {{subst:sld|Era(s)|era}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}}
|dateofdeath=N/A
</nowiki><noinclude>
|placeofdeath=N/A
|allegiance= [[UNSC]]
|specialty=
|rank=[[Master Chief Petty Officer]]
|status=Active
|battles=[[Battle of Chi Ceti]], [[Battle of Jericho VII]], [[Battle of Sigma Octanus IV]], [[The Battle of Reach]], [[The Battle of Installation 04]], [[Operation: First Strike]], [[The First Battle of Earth]], [[Battle of Installation 05]], [[The Second Battle of Earth]] and many others.
|spartanclass=Class 1: 2525
}}


[[Category: Templates]]
[[Category:Character infoboxes]]
</noinclude>
</noinclude>

Revision as of 18: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}}