Template:AI infobox: Difference between revisions

From Halopedia, the Halo wiki

(notoc? no, not here...)
(Wiki-tablefied.)
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;">
<includeonly>{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#f0f0f0; 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;">
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|{{{image}}}}}
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{imageBG|#0F1C8A}}};">{{{image|}}}</td></tr>
|-
<tr style="text-align:center; color:#ffffff; background:#0F1C8A; 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:#5260E0;">'''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;">Service&nbsp;number&nbsp;</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#0F1C8A; border-top:1px solid #999; border-bottom:1px solid #999;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
{{{number|}}}
|-
</td></tr>|1{{{number|}}}=}} {{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;">Began&nbsp;service&nbsp;</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if:{{{number|}}}{{{began|}}}{{{ended|}}}|
{{{began|}}}
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Biographical information'''}}
</td></tr>|1{{{began|}}}=}} {{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;">Ended&nbsp;service&nbsp;</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{{ended|}}}
{{#if:{{{number|}}}|{{!}}{{!}}Service number{{!}}{{!}}
</td></tr>|1{{{ended|}}}=}} {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#5260E0;">'''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;">Gender</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{number}}} }}
{{{gender|}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
</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;">Description</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if:{{{began|}}}|{{!}}{{!}}Began service{{!}}{{!}}
{{{description|}}}
{{{began}}} }}
</td></tr>|1{{{description|}}}=}} {{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;">Normal color</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{{color|}}}
{{#if:{{{ended|}}}|{{!}}{{!}}Ended service{{!}}{{!}}
</td></tr>|1{{{color|}}}=}} {{t|1=|1{{{hidec|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#5260E0;">'''Political information and functions'''</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;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{ended}}} }}
{{{affiliation|}}}
|-
</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;">Primary Function</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if:{{{gender|}}}{{{description|}}}{{{color|}}}|
{{{function|}}}
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Physical description'''}}
</td></tr>|1{{{function|}}}=}} {{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 Battles</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{{battles|}}}
{{#if:{{{gender|}}}|{{!}}{{!}}Gender{{!}}{{!}}
</td></tr>|1{{{battles|}}}=}} </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:AI infobox|[Source]]]</td></tr></table><noinclude>
{{{gender}}} }}
{{clear}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
=== Usage instructions ===
{{#if:{{{description|}}}|{{!}}{{!}}Description{{!}}{{!}}
{{{description}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{color|}}}|{{!}}{{!}}Normal color{{!}}{{!}}
{{{color}}} }}
|-
{{#if:{{{affiliation|}}}{{{function|}}}{{{battles|}}}|
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Political information and functions'''}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{affiliation|}}}|{{!}}{{!}}Affiliation{{!}}{{!}}
{{{affiliation}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{function|}}}|{{!}}{{!}}Primary function{{!}}{{!}}
{{{function}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{battles|}}}|{{!}}{{!}}Notable battles{{!}}{{!}}
{{{battles}}} }}
|-
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:AI Infobox|[Source]]]
|}
</includeonly>
<noinclude>
==Usage==
Copy and paste the following into the article and fill in the fields.
<pre>
{{AI Infobox
| image=
| name=
| number=
| began=
| ended=
| gender=
| description=
| color=
| affiliation=
| function=
| battles=
}}
</pre>


Paste the following code into the top of an article, filling all known fields:
All fields are optional.
<pre><nowiki>
{{AI infobox
|name=
|image=
|number=
|began=
|ended=
|gender=
|description=
|color=
|affiliation=
|function=
|battles=
}}</nowiki></pre>


=== Display parameters ===
==Source==
 
<pre>
*hideb
{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"
*hidep
|-
*hidec
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|{{{image}}}}}
 
|-
[[Category:Character infoboxes|{{PAGENAME}}]]
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#0F1C8A; border-top:1px solid #999; border-bottom:1px solid #999;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
|-
{{#if:{{{number|}}}{{{began|}}}{{{ended|}}}|
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Biographical information'''}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{number|}}}|{{!}}{{!}}Service number{{!}}{{!}}
{{{number}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{began|}}}|{{!}}{{!}}Began service{{!}}{{!}}
{{{began}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{ended|}}}|{{!}}{{!}}Ended service{{!}}{{!}}
{{{ended}}} }}
|-
{{#if:{{{gender|}}}{{{description|}}}{{{color|}}}|
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Physical description'''}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{gender|}}}|{{!}}{{!}}Gender{{!}}{{!}}
{{{gender}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{description|}}}|{{!}}{{!}}Description{{!}}{{!}}
{{{description}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{color|}}}|{{!}}{{!}}Normal color{{!}}{{!}}
{{{color}}} }}
|-
{{#if:{{{affiliation|}}}{{{function|}}}{{{battles|}}}|
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Political information and functions'''}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{affiliation|}}}|{{!}}{{!}}Affiliation{{!}}{{!}}
{{{affiliation}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{function|}}}|{{!}}{{!}}Primary function{{!}}{{!}}
{{{function}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{battles|}}}|{{!}}{{!}}Notable battles{{!}}{{!}}
{{{battles}}} }}
|-
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:AI Infobox|[Source]]]
|}
</pre>
</noinclude>
</noinclude>

Revision as of 21:14, August 1, 2008


Usage

Copy and paste the following into the article and fill in the fields.

{{AI Infobox
| image=
| name=
| number=
| began=
| ended=
| gender=
| description=
| color=
| affiliation=
| function=
| battles=
}}

All fields are optional.

Source

{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"
|- 
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|{{{image}}}}}
|-
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#0F1C8A; border-top:1px solid #999; border-bottom:1px solid #999;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
|-
{{#if:{{{number|}}}{{{began|}}}{{{ended|}}}|
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Biographical information'''}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{number|}}}|{{!}}{{!}}Service number{{!}}{{!}}
{{{number}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{began|}}}|{{!}}{{!}}Began service{{!}}{{!}}
{{{began}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{ended|}}}|{{!}}{{!}}Ended service{{!}}{{!}}
{{{ended}}} }}
|-
{{#if:{{{gender|}}}{{{description|}}}{{{color|}}}|
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Physical description'''}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{gender|}}}|{{!}}{{!}}Gender{{!}}{{!}}
{{{gender}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{description|}}}|{{!}}{{!}}Description{{!}}{{!}}
{{{description}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{color|}}}|{{!}}{{!}}Normal color{{!}}{{!}}
{{{color}}} }}
|-
{{#if:{{{affiliation|}}}{{{function|}}}{{{battles|}}}|
! colspan=2 style="text-align:left; background:#5260E0; border-bottom:1px solid #999;" {{!}} '''Political information and functions'''}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{affiliation|}}}|{{!}}{{!}}Affiliation{{!}}{{!}}
{{{affiliation}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{function|}}}|{{!}}{{!}}Primary function{{!}}{{!}}
{{{function}}} }}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{battles|}}}|{{!}}{{!}}Notable battles{{!}}{{!}}
{{{battles}}} }}
|-
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:AI Infobox|[Source]]]
|}