Template:Infobox character: Difference between revisions

From Katawa Shoujo Wiki

imported>Galrion
m Added gender and auto category for it
imported>TheWallflower00
No edit summary
 
(26 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px; background-color:#FFF;"
<infobox>
|-
<title source="name" style="text-align:center">
! colspan="2" style="background-color:#3366CC; color:#FFFFFF; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
    <default>{{PAGENAME}}</default>
{{#if: {{{image|<noinclude>asdf</noinclude>}}}|
    <format><div style="width:100%; text-align:center;background-color:#008080;color:black;">{{{name}}}</div></format>
{{!}}-
    </title>
{{!}} colspan="2" style="text-align:center;" {{!}} [[Image:{{{image|Placeholder_person.png}}}|{{{im_width|250px}}}]]<br/>'' ''
<image source="image"/>
|
<data source="birthday">
}}
    <label>Birthday</label>
{{#if: {{{quote|<noinclude>asdf</noinclude>}}} |
</data>
{{!}}-
<data source="zodiac">
{{!}} colspan="2" style="text-align: center;"{{!}} ''"{{{quote}}}"''|
    <label>Zodiac sign</label>
}}
    </data>
{{#if: {{{gender|{{{1}}}}}|
    <data source="gender">
{{!}}-
    <label>Gender</label>
{{!}} style="width:30%;" {{!}} '''Gender'''|}}
    </data>
{{#switch: {{{gender|{{{1}}}}}
<data source="eyes">
| m = {{!}} style="width:70%;" {{!}} Male [[Category:Male characters]]
    <label>Eye color</label>
| f = {{!}} style="width:70%;" {{!}} Female [[Category:Female characters]]
</data>
| #default = {{!}} style="width:70%;" {{!}} {{{1|{{{gender}}}}}}
<data source="hair">
}}
    <label>Hair color</label>
{{#if: {{{birthday|{{{2|<noinclude>asdf</noinclude>}}}}}} |
</data>
{{!}}-
<data source="height">
{{!}} style="width:30%;" {{!}}
    <label>Height</label>
'''Birthday'''
</data>
{{!}} style="width:70%;" {{!}}
<data source="weight">
{{{birthday|{{{2|<noinclude>{{{birthday}}}</noinclude>}}}}}}|}}
    <label>Weight</label>
{{#if: {{{zodiac|{{{3|<noinclude>asdf</noinclude>}}}}}}|
</data>
{{!}}-
<data source="measurements">
{{!}}
    <label>B/W/H</label>
'''Zodiac sign'''
</data>
{{!}}
<data source="bloodtype">
{{{zodiac|{{{3|<noinclude>{{{zodiac}}}</noinclude>}}}}}}|}}
    <label>Blood type</label>
{{#if: {{{bloodtype|{{{4|<noinclude>asdf</noinclude>}}}}}}|
</data>
{{!}}-
<data source="music">
{{!}}
    <label>Theme</label>
'''Bloodtype'''
</data>
{{!}}
<data source="occupation">
{{{bloodtype|{{{4|<noinclude>{{{bloodtype}}}</noinclude>}}}}}}|}}
    <label>Occupation</label>
{{#if: {{{height|{{{5|<noinclude>asdf</noinclude>}}}}}}|
</data>
{{!}}-
<data source="family">
{{!}}
    <label>Relatives</label>
'''Height'''
    </data>
{{!}}
<data source="quote">
{{{height|{{{5|<noinclude>{{{height}}}</noinclude>}}}}}}|}}
    <label>Quote</label>
{{#if: {{{music|{{{6|<noinclude>asdf</noinclude>}}}}}}|
    </data>
{{!}}-
    <data source="disability">
{{!}}
        <label>Disability</label>
'''Theme'''
    </data>
{{!}}
<data source="other">
{{{music|{{{6|<noinclude>{{{music}}}</noinclude>}}}}}}|}}
    <label>Other</label>
{{#if: {{{other|{{{7|<noinclude>asdf</noinclude>}}}}}}|
</data>
{{!}}-
</infobox>
{{!}}
<noinclude>{{Documentation}}</noinclude>
'''Notable features'''
{{!}}
{{{other|{{{7|<noinclude>{{{other}}}</noinclude>}}}}}}|}}
|}
<noinclude><br clear="all"/>{{documentation}}</noinclude>

Latest revision as of 14:39, 28 July 2017

Template documentation (for the above template, sometimes hidden or invisible)

Type in this:

{{Infobox_character
|name=Emi Ibarazaki
|image=Char_emi.png
|gender=Female
|birthday=March 14th (age 19)
|zodiac=Pisces
|bloodtype=B
|measurements=70/51/74 (27-20-29)
|height=151cm (4'11")
|weight=41 kg (90 lbs.)
|eyes=Poplar green
|hair=Light brown
|family=[[Meiko Ibarazaki]] (mother)
|music="Standing Tall" [[File:1-20 Standing Tall.ogg|noicon]]
|disability=Missing both legs below the knees
|quote="Can you stand up for yourself?"
|other=Pigtails
}}

to see this: