Template:Creature-infobox: Difference between revisions

From Metroid Wiki
infobox
m (float right. Also de-centering fields in right-hand column.)
(infobox)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{| width="300px" cellpadding="3" cellspacing="0" style="{{round|20px}} float:right; {{border|2}} {{background|neutral}}; font-size: 11px; margin-left:10px; margin-bottom:10px"
{| class="infobox"
|
|
{| width="100%" cellpadding="3" cellspacing="0" align="center" style="{{round}}"
{| class="infobox-sub"
! colspan="2" style="{{#if: {{{image|}}}| {{roundt}} | {{round}}}} {{border}} {{background}} font-size: 13px;" | ''{{{name|{{PAGENAME}}}}}''
! colspan="2" style="font-size: 13px; text-align: center;" | ''{{{name|{{PAGENAME}}}}}''
|-
|-
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
! colspan="2" align="center" style="{{roundb}} {{border}} {{background}}" {{!}} <div style="float:center; border-bottom:1px solid #{{mw color light}}">{{{image|}}}<br /><br /></div>
{{!}} colspan="2" style="text-align: center;" {{!}} <div style="float:center; border-bottom: 1px solid #{{mw color light}}">{{{image|}}}<br /><br /></div>
<span style="font-size: 10px">{{{caption|}}}</span>}}
<span style="font-size: 10px">{{{caption|}}}</span>}}
|}
|}
|-  
|-  
|
|
{| width="100%" cellpadding="3" cellspacing="0" style="{{round}} {{border}} {{background}}"
{| class="infobox-sub"
! style="width: 30%; border-right: 1px solid #{{mw color light}}" align="right"  {{!}} {{#if: {{{games|}}}|Games|Game}}
! Game(s)
{{!}}
{{!}}
{{{games|{{{game|''None''}}}}}}
{{{games|{{{game|''None''}}}}}}
|-
|-
{{#if:{{{appearances|}}}{{{appearance|}}}|
{{#if:{{{appearances|}}}{{{appearance|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} Off-Game {{#if: {{{appearances|}}}|Appearances|Appearance}}
! Off-Game Appearance(s)
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}
{{!}}
{{{appearances|}}}{{{appearance|}}}}}
{{{appearances|}}}{{{appearance|}}}}}
|-
|-
{{#if:{{{mainspecies|}}}|
{{#if:{{{mainspecies|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} Main Species
! Main Species
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}} {{{mainspecies|}}}}}
{{!}}
{{{mainspecies|}}}}}
|-
|-
{{#if:{{{damage|}}}|
{{#if:{{{damage|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} Damages by
! Damages by
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}  
{{!}}  
{{{damage|}}}}}
{{{damage|}}}}}
|-
|-
{{#if:{{{weaknesses|}}}{{{weakness|}}}|
{{#if:{{{weaknesses|}}}{{{weakness|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} {{#if:{{{weaknesses|}}}|Weaknesses|Weakness}}
! Weakness(es)
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}  
{{!}}  
{{{weaknesses|}}}{{{weakness|}}}}}
{{{weaknesses|}}}{{{weakness|}}}}}
|-
|-
{{#if:{{{immunities|}}}|
{{#if:{{{immunities|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} Immune to
! Immune to
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}  
{{!}}  
{{{immunities|}}}}}
{{{immunities|}}}}}
|-
|-
{{#if:{{{vulnerablearea|}}}{{{vulnerableareas|}}}|
{{#if:{{{vulnerablearea|}}}{{{vulnerableareas|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} {{#if:{{{vulnerableareas|}}}|Vulnerable Areas|Vulnerable Area}}
! Vulnerable Area(s)
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}  
{{!}}  
{{{vulnerableareas|}}}{{{vulnerablearea|}}}}}
{{{vulnerableareas|}}}{{{vulnerablearea|}}}}}
|-
|-
{{#if:{{{rewards|}}}|
{{#if:{{{rewards|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} Rewards
! Rewards
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}  
{{!}}  
{{{rewards|}}}}}
{{{rewards|}}}}}
|-
|-
{{#if:{{{threat|}}}|
{{#if:{{{threat|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} Threat Capacity
! Threat Capacity
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}  
{{!}}  
{{{threat|}}}}}
{{{threat|}}}}}
|-
|-
{{#if:{{{habitats|}}}{{{habitat|}}}|
{{#if:{{{habitats|}}}{{{habitat|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} {{#if: {{{habitats|}}}|Natural Habitats|Natural Habitat}}
! Natural Habitat(s)
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}
{{!}}
{{{habitats|}}}{{{habitat|}}}}}
{{{habitats|}}}{{{habitat|}}}}}
|-
|-
{{#if:{{{location|}}}|
{{#if:{{{location|}}}|
! style="border-top: 1px solid #{{mw color light}}; border-right: 1px solid #{{mw color light}}" align="right" {{!}} Located in
! Located in
{{!}} style="border-top: 1px solid #{{mw color light}}" {{!}}
{{!}}
{{{location|}}}}}
{{{location|}}}}}
|}
|}
|}{{#if:{{{name|}}}|{{DISPLAYTITLE:{{{name|}}}}}|}}
|}{{#if:{{{name|}}}|{{DISPLAYTITLE:{{{name|}}}}}}}
 
<noinclude>{{clear}}
<noinclude>
{{clear}}


==Usage==
==Usage==
Line 104: Line 103:
}}</pre>
}}</pre>


[[Category:Infobox Templates|{{PAGENAME}}]]
[[Category:Infobox Templates]]</noinclude>
</noinclude>