Template:LM portrait infobox: Difference between revisions

From https://www.mariowiki.com/Template:LM_portrait_infobox
m (Text replacement - "\[\[Category:([^|]+)\|{{PAGENAME}}\]\]" to "Category:$1")
(From https://www.mariowiki.com/Template:LM_portrait_infobox)
Line 1: Line 1:
{| class="infobox" cellpadding=3 cellspacing=2 width=220px style="font-family: arial, sans-serif; padding: 4px; margin: {{#switch:{{{align|}}}|left=0 1em 1em 0|center=1em 1em 1em 1em|0 0 1em 1em}}; font-size: 12px; background-color:ghostwhite; border:1px solid #88c;float:{{{align|right}}}; color:black"
{| class="infobox" style="width:220px;background:ghostwhite;border:1px solid #88c"
! colspan="2" style="font-size:125%;background:#eef;border:1px solid #88c" |{{#if:{{{icon|}}}|<span style="float:left;width:0">[[File:{{{icon}}}|x18px]]</span>}} {{{name|{{PAGENAME}}}}}
|-
| colspan="2" | {{#if:{{{image|}}}|[[File:{{{image|}}}|{{{width|100}}}px|center]]}}
|-
{{#if:{{{full_name|}}}|
{{!}} '''Full name'''
{{!}} {{{full_name}}}
}}
|-
{{#if:{{{age|}}}|
{{!}} '''Age'''
{{!}} {{{age}}}
}}
|-
{{#if:{{{biography|}}}|
{{!}} '''Biography'''
{{!}} {{{biography}}}
}}
|-
{{#if:{{{room|}}}|
{{!}} '''Room'''
{{!}} {{{room}}}
}}
|-
|-
| align="center" valign="center" style="background-color:#eef; border:1px solid #88c" colspan=2 |{{#if: {{{icon|}}}|<span style="float:left;width:0em;text-align:left;">[[Image:{{{icon}}}]]</span>}}<font size=3>'''{{{title|{{PAGENAME}}}}}'''</font>
{{#if:{{{hp|}}}|
|-
{{!}} '''HP'''
| colspan=2 | {{#if:{{{image|}}}|[[Image:{{{image|}}}|{{{width|100}}}px|center]]}}
{{!}} {{{hp}}}
}}
|-
|-
{{#if:{{{fullname|}}} | {{!}}-
{{#if:{{{quote|}}}|
{{!}} '''Full Name''' {{!}}{{!}} {{{fullname}}} }}
{{!}} '''Heart quote'''
{{#if:{{{age|}}} | {{!}}-
{{!}} {{{quote}}}
{{!}} '''Age''' {{!}}{{!}} {{{age}}} }}
}}
{{#if:{{{biography|}}} | {{!}}-
|}<noinclude>{{br}}
{{!}} '''Biography''' {{!}}{{!}} {{{biography}}} }}
==Usage instructions==
{{#if:{{{room|}}} | {{!}}-
{{!}} '''Room''' {{!}}{{!}} {{{room}}} }}
{{#if:{{{hp|}}} | {{!}}-
{{!}} '''Life''' {{!}}{{!}} {{{hp|100}}} }}
{{#if:{{{quote|}}} | {{!}}-
{{!}} '''Heart Quote''' {{!}}{{!}} {{{quote}}} }}
|}<noinclude><br clear="all">
==Usage Instructions==
Provides info about the 23 Portrait Ghosts in ''[[Luigi's Mansion]]''.
Provides info about the 23 Portrait Ghosts in ''[[Luigi's Mansion]]''.


All rows will disappear if respective variables are not defined. Width is for image only, default 100px, HP is default 100
All rows will disappear if respective variables are not defined. Width is for image only, default 100px.
 
<pre>
<pre>
{{portrait-infobox
{{LM portrait infobox
|title=
|image=
|image=
|width=
|width=
|fullname=
|full_name=
|age=
|age=
|biography=
|biography=
|room=
|room=
|life=
|hp=
|quote=
|quote=
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>