Wikia

Tron Wiki

Changes: Template:Program Infobox

View source

Back to page

(Preventative measure for invalid Status)
m (Status constraint)
 
Line 13: Line 13:
 
{{#if:{{{death|}}}|{{!}}{{!}}Derezzed Date{{!}}{{!}}{{{death}}}}}
 
{{#if:{{{death|}}}|{{!}}{{!}}Derezzed Date{{!}}{{!}}{{{death}}}}}
 
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
 
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{status|}}}|{{!}}{{!}}Status{{!}}{{!}}{{{status}}}}} {{#if: {{#pos: {{lc: {{{status|}}}}} |unknown}} | <div style="color:red;">'''INVALID ENTRY!''' Please select either either "Alive", "Deceased", or "Derezzed"[[Category:Articles requiring cleanup]]</div>}}
+
{{#if:{{{status|}}}|{{!}}{{!}}Status{{!}}{{!}}{{#switch: {{lc:{{{status}}}}}
  +
| alive = Alive
  +
| derezzed = Derezzed
  +
| unknown = <div style="color:red;">'''INVALID ENTRY!''' Please select either either "Alive", or "Derezzed".[[Category:Articles requiring cleanup]]</div>}}
  +
}}
 
|-
 
|-
 
| colspan=2 style="background:#000E1D; border-bottom:1px solid #088fb1;" | '''Physical description'''
 
| colspan=2 style="background:#000E1D; border-bottom:1px solid #088fb1;" | '''Physical description'''

Latest revision as of 02:50, October 14, 2013


UsageEdit

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


{{Program Infobox
|name=     
|image=    
|gallery=  False
|user=     
|birth=    
|death=    
|status=   
|color=    
|gender=   
|describe= 
|job=      
|equipment=
|vehicle=  
|allies=   
|actor=    
|appear=   
}}

All fields are optional. If a gallery is needed because there are more than two images in the article's body text then switching the "Gallery" parameter to "True" will provide an appropriate link in the bottom of the infobox.

SourceEdit

Taken from http://halo.wikia.com/wiki/Template:Spartan_infobox.

{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#111; border-collapse:collapse; border:2px solid #088fb1; font-size:smaller; line-height:1.5;"
|- 
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
|-
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#001F33; border-top:1px solid #088fb1; border-bottom:1px solid #088fb1;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
|-
| colspan=2 style="background:#000E1D; border-bottom:1px solid #088fb1;" | '''Biographical information'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{user|}}}|{{!}}{{!}}User{{!}}{{!}}{{{user}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{birth|}}}|{{!}}{{!}}Compile Date{{!}}{{!}}{{{birth}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{death|}}}|{{!}}{{!}}Derezzed Date{{!}}{{!}}{{{death}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{status|}}}|{{!}}{{!}}Status{{!}}{{!}}{{{status}}}}}
|-
| colspan=2 style="background:#000E1D; border-bottom:1px solid #088fb1;" | '''Physical description'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{color|}}}|{{!}}{{!}}Circuitry Color{{!}}{{!}}{{{color}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{gender|}}}|{{!}}{{!}}Gender{{!}}{{!}}{{{gender}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{desrcibe|}}}|{{!}}{{!}}Description{{!}}{{!}}{{{describe}}}}}
|-
| colspan=2 style="background:#000E1D; border-bottom:1px solid #088fb1;" | '''Other information'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{job|}}}|{{!}}{{!}}Functions{{!}}{{!}}{{{job}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{equipment|}}}|{{!}}{{!}}Equipment{{!}}{{!}}{{{equipment}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{vehicle|}}}|{{!}}{{!}}Vehicles{{!}}{{!}}{{{vehicle}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{allies|}}}|{{!}}{{!}}Allies{{!}}{{!}}{{{allies}}}}}
|-
| colspan=2 style="background:#000E1D; border-bottom:1px solid #088fb1;" | '''Out of universe information'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{actor|}}}|{{!}}{{!}}Actor{{!}}{{!}}{{{actor}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #088fb1;"
{{#if:{{{appear|}}}|{{!}}{{!}}Appearances{{!}}{{!}}{{{appear}}}}}
|-
| colspan=2 style="text-align:center; font-size:larger; background:#111; padding:0px;" |{{#if: {{#pos: {{{gallery}}} |True}} | '''[[{{PAGENAME}}/Gallery|Gallery]]'''}}
|}

Around Wikia's network

Random Wiki