Difference between revisions of "Template:CharacterInfobox"

From LAH Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{| style="border:1px solid dimgray; width:320px" align={{{align}}}
+
<noinclude>{| align=right
! style="font-size:120%; color:orange" align=center | {{{name}}}
+
|__ToC__
 +
|}</noinclude>
 +
{| style="width:240px; border:1px solid dimgray" align=<includeonly>{{#if: {{{align|}}}|{{{align}}}|right}}</includeonly>
 +
| style="font-size:125%; text-align:center" |'''<includeonly>{{{header}}}</includeonly><noinclude>Header</noinclude>'''
 
|-
 
|-
| style="background:black; border:1px solid dimgray" align=center v-align=middle| [[Image:{{{image}}}|300px]]<BR><span style="font-size:90%; color:white">{{{caption}}}</span>
+
| style="border:1px solid dimgrey; text-align:center; background:black"| [[image:<includeonly>{{{imageFile}}}</includeonly><noinclude>ExampleAvvy.png</noinclude>|230px]]
 +
{{#if:{{{caption|}}}|{{{caption}}}}}<noinclude>Image Caption</noinclude>
 
|-
 
|-
| {{ #if: {{{eyecolor}}} | THEN | ELSE }}
+
|
|-
+
<includeonly>{{#if:{{{name|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Name'''</TD> <TD style="width:67%"> <includeonly>
| {{ #if: {{{haircolor|}}} | Hair Color: {{{haircolor}}} | ELSE
+
{{{name}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
|}
+
  
 +
--><includeonly>{{#if:{{{loli|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Loli?'''</TD> <TD style="width:67%"> <includeonly>
 +
{{{loli}}} </includeonly> <noinclude>Yes/No</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
  
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%" cellspacing="2"
+
--><includeonly>{{#if:{{{shota|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Shota?'''</TD> <TD style="width:67%"> <includeonly>
! style="background: {{{colour|#DEDEE2}}}; font-size: 120%;" align="center" colspan="2" | {{{name|{{PAGENAME}}}}}
+
{{{shota}}} </includeonly> <noinclude>Yes/No</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
{{#if: {{{image<includeonly>|</includeonly>}}} | <tr> <td align="center" colspan="2">{{{image}}} {{#if: {{{caption<includeonly>|</includeonly>}}} | <br><small>{{{caption}}}}}<small></td> </tr>}}
+
|-
+
| colspan=2 |
+
{| style="background:transparent"
+
! First appearance
+
| {{{first}}}
+
{{#if: {{{last<includeonly>|</includeonly>}}} | <tr> <th>Last appearance</th> <td>{{{last}}}</td> </tr>}}<!--
+
-->{{#if: {{{cause<includeonly>|</includeonly>}}} | <tr> <th>Cause/reason</th> <td>{{{cause}}}</td> </tr>}}
+
|}
+
|-
+
! style="background: {{{colour|#DEDEE2}}}; font-size: 120%;" align="center" colspan="2" | Information
+
{{#if: {{{nickname<includeonly>|</includeonly>}}} | <tr> <th>Nickname(s)</th> <td>{{{nickname}}}</td> </tr>}}<!--
+
-->{{#if: {{{alias<includeonly>|</includeonly>}}} | <tr> <th>Aliases</th> <td>{{{alias}}}</td> </tr>}}<!--
+
-->{{#if: {{{species<includeonly>|</includeonly>}}} | <tr> <th>Species</th> <td>{{{species}}}</td> </tr>}}<!--
+
-->{{#if: {{{gender<includeonly>|</includeonly>}}} | <tr> <th>Gender</th> <td>{{{gender}}}</td> </tr>}}<!--
+
-->{{#if: {{{age<includeonly>|</includeonly>}}} | <tr> <th>Age</th> <td>{{{age}}}</td> </tr>}}<!--
+
-->{{#if: {{{born<includeonly>|</includeonly>}}} | <tr> <th>Date of birth</th> <td>{{{born}}}</td> </tr>}}<!--
+
-->{{#if: {{{death<includeonly>|</includeonly>}}} | <tr> <th>Date of death</th> <td>{{{death}}}</td> </tr>}}<!--
+
-->{{#if: {{{specialty<includeonly>|</includeonly>}}} | <tr> <th>Specialty</th> <td>{{{specialty}}}</td> </tr>}}<!--
+
-->{{#if: {{{occupation<includeonly>|</includeonly>}}} | <tr> <th>Occupation</th> <td>{{{occupation}}}</td> </tr>}}<!--
+
-->{{#if: {{{title<includeonly>|</includeonly>}}} | <tr> <th>Title</th> <td>{{{title}}}</td> </tr>}}<!--
+
-->{{#if: {{{callsign<includeonly>|</includeonly>}}} | <tr> <th>Call&nbsp;sign</th> <td>{{{callsign}}}</td> </tr>}}<!--
+
-->{{#if: {{{family<includeonly>|</includeonly>}}} | <tr> <th>Family</th> <td>{{{family}}}</td> </tr>}}<!--
+
-->{{#if: {{{spouse<includeonly>|</includeonly>}}} | <tr> <th>Spouse(s)</th> <td>{{{spouse}}}</td> </tr>}}<!--
+
-->{{#if: {{{children<includeonly>|</includeonly>}}} | <tr> <th>Children</th> <td>{{{children}}}</td> </tr>}}<!--
+
-->{{#if: {{{relatives<includeonly>|</includeonly>}}} | <tr> <th>Relatives</th> <td>{{{relatives}}}</td> </tr>}}<!--
+
-->{{#if: {{{residence<includeonly>|</includeonly>}}} | <tr> <th>Address</th> <td>{{{residence}}}</td> </tr>}}<!--
+
-->{{#if: {{{religion<includeonly>|</includeonly>}}} | <tr> <th>Religion</th> <td>{{{religion}}}</td> </tr>}}<!--
+
-->{{#if: {{{nationality<includeonly>|</includeonly>}}} | <tr> <th>Nationality</th> <td>{{{nationality}}}</td> </tr>}}<!--
+
-->{{#if: {{{episode<includeonly>|</includeonly>}}} | <tr> <th>Episode count</th> <td>{{{episode}}}</td> </tr>}}<!--
+
-->{{#if: {{{portrayer<includeonly>|</includeonly>}}} | <tr> <th>Portrayed&nbsp;by</th> <td>{{{portrayer}}}</td> </tr>}}<!--
+
-->{{#if: {{{creator<includeonly>|</includeonly>}}} | <tr> <th>Created&nbsp;by</th> <td>{{{creator}}}</td> </tr>}}
+
|}<noinclude>
+
All parameters except "first" are optional (even "name" can be taken from PAGENAME).
+
  
== Usage ==
+
This first section is for in universe data
For brief explanation, see [[Template talk:Infobox character #Explanation of parameters]].
+
  
<pre style="overflow:auto">{{Infobox character
+
Physical
| colour    =
+
 
| name      =
+
--><includeonly>{{#if:{{{height|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Height'''</TD> <TD style="width:60%"> <includeonly>
| image      =  
+
{{{height}}} </includeonly> <noinclude>#</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
| caption    =  
+
 
| first      =  
+
--><includeonly>{{#if:{{{weight|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Weight'''</TD> <TD style="width:60%"> <includeonly>
| last      =  
+
{{{weight}}} </includeonly> <noinclude>#</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
| cause      =  
+
 
| nickname  =  
+
--><includeonly>{{#if:{{{measurements|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''B/W/H'''</TD> <TD style="width:60%"> <includeonly>
| alias      =  
+
{{{measurements}}} </includeonly> <noinclude># # #</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
| species    =  
+
 
| gender    =  
+
--><includeonly>{{#if:{{{eyes|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Eye Color'''</TD> <TD style="width:60%"> <includeonly>
| age        =  
+
{{{eyes}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
| born      =  
+
 
| death      =  
+
--><includeonly>{{#if:{{{hair|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Hair Color'''</TD> <TD style="width:60%"> <includeonly>
| occupation =  
+
{{{hair}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
| title      =
+
 
| callsign  =  
+
--><includeonly>{{#if:{{{realHair|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Real Hair Color'''</TD> <TD style="width:60%"> <includeonly>
| family    =  
+
{{{realHair}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
| spouse    =  
+
 
| children  =  
+
Background
| relatives  =  
+
 
| residence  =  
+
--><includeonly>{{#if:{{{age|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Age'''</TD> <TD style="width:60%"> <includeonly>
| episode    =  
+
{{{age}}} </includeonly> <noinclude>#</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
| portrayer  =
+
 
| creator    =  
+
--><includeonly>{{#if:{{{birthdate|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40 text-align:center">'''Date of Birth'''</TD> <TD style="width:60%"> <includeonly>
}}</pre>
+
{{{birthdate}}} </includeonly> <noinclude>#</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{origin|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Place of Origin'''</TD> <TD style="width:60%"> <includeonly>
 +
{{{origin}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{father|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Father'''</TD> <TD style="width:60%"> <includeonly>
 +
{{{father}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{mother|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Mother'''</TD> <TD style="width:60%"> <includeonly>
 +
{{{mother}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{custom1title|}}}|</includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center"><includeonly>'''{{{custom1title}}}'''</includeonly> <noinclude>'''Custom'''</noinclude></TD> <TD style="width:60%">
 +
<includeonly>{{{custom1data}}}</includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{custom2title|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center"><includeonly>'''{{{custom2title}}}'''</includeonly> <noinclude>'''Custom'''</noinclude></TD> <TD style="width:60%"> <includeonly>
 +
{{{custom2data}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{custom3title|}}}|</includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center"><includeonly>'''{{{custom3title}}}'''</includeonly> <noinclude>'''Custom'''</noinclude></TD> <TD style="width:60%"> <includeonly>
 +
{{{custom3data}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{custom4title|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center"><includeonly>'''{{{custom4title}}}'''</includeonly><noinclude>'''Custom'''</noinclude></TD> <TD style="width:60%"> <includeonly>
 +
{{{custom4data}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><table style="height:3px; background=transparent><TR><TD></TD></TR></TABLE><!--
 +
 
 +
 
 +
This second section is for out of universe data
 +
 
 +
--><includeonly>{{#if:{{{series|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Series'''</TD> <TD style="width:60%"> <includeonly>
 +
{{{series}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{actor|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Voice Actor'''</TD> <TD style="width:60%"> <includeonly>
 +
{{{actor}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{creator|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Created by'''</TD> <TD style="width:60%"> <includeonly>
 +
{{{creator}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{relatedCharacters|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Related Characters'''</TD> <TD style="width:60%"> <includeonly>
 +
{{{relatedCharacters}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{custom5title|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center"><includeonly>'''{{{custom5title}}}'''</includeonly><noinclude>'''Custom'''</noinclude></TD> <TD style="width:60%"> <includeonly>
 +
{{{custom5data}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!--
 +
 
 +
--><includeonly>{{#if:{{{custom6title|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center"><includeonly>'''{{{custom6title}}}'''</includeonly><noinclude>'''Custom'''</noinclude></TD> <TD style="width:60%"> <includeonly>
 +
{{{custom6data}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly>
 +
 
 +
|-
 +
|style="text-align:center; font-size:75%"|[[Template:CharacterInfobox|veiw this template]]
 +
|}<noinclude>
 +
{{-}}
 +
==Usage==
 +
This is a template for including a character profile in a standard way. The following fields may be filled in, and any may be omitted, with the exception of the header and imageFile.
  
[[Category:Television infobox templates|Character]]
+
{{TwoColumnList|width=100%
[[Category:Templates using ParserFunctions|Infobox character]]
+
|Col1=
[[Category:Fictional character infobox templates|Character]]
+
* '''header''' - the template header, usually the character's name
 +
* '''align''' - Where the template aligns itself on the page.  Right is standard, but it can also be aligned left or center. If left blank, it will default to right.
 +
* '''imageFile''' - the file name of the image.  The <nowiki>[[Image:]]</nowiki> code is unnecessary, and the template will resize the image to fit.
 +
* '''caption''' - a caption for the image
 +
* '''name''' - the name of the character
 +
* '''loli''' - is the character a loli? (yes, no, debatable) (leave blank if male)
 +
* '''shota''' - is the character a shota? (yes, no, debatable) (leave blank if female)
 +
* '''height''' - the height of the character, in both standard and metric if possible.
 +
* '''weight''' - the weight of the character, in both standard and metric if possible.
 +
* '''measurements''' - the character's bust, waist and hip measurements
 +
* '''eyes''' - the color of the character's eyes
 +
* '''hair''' - the color of the chracters's hair
 +
* '''realHair''' - some girls do dye their hair, you know . . .
 +
* '''age''' - age of the character
 +
* '''birthdate''' - the date of the character's birth
 +
|Col2=
 +
* '''origin''' - the character's place of origin
 +
* '''mother''' - the name of the character's mother
 +
* '''father''' - the name of the character's fother
 +
* '''custom1title''' - a costom field for in-universe character-specific info
 +
* '''custom1data''' - the data for costum1title
 +
* '''custom2title''' - a costom field for in-universe character-specific info
 +
* '''custom2data''' - the data for costum1title
 +
* '''custom3title''' - a costom field for in-universe character-specific info
 +
* '''custom3data''' - the data for costum1title
 +
* '''custom4title''' - a costom field for in-universe character-specific info
 +
* '''custom4data''' - the data for costum1title
 +
* '''series''' - the series in which the character appears
 +
* '''actor''' - the actor who voiced the character
 +
* '''relatedCharacters''' - characters related to the character (preferably limited to those who have an article on LAH Wiki
 +
* '''creator''' - the name of the creator or creators of the character
 +
* '''custom5title''' - a costom field for out-of-universe character-specific info
 +
* '''custom5data''' - the data for costum1title
 +
* '''custom6title''' - a costom field for out-of-universe character-specific info
 +
* '''custom6data''' - the data for costum1title
 +
}}
  
[[no:Mal:Infoboks rollefigur]]
+
==Code==
[[pl:Szablon:Postać Gotowe na wszystko infobox]]
+
The code to use, omitting any fields not used, is:
[[th:แม่แบบ:กล่องข้อมูล ตัวละคร]]
+
<pre>
 +
{{CharacterInfobox
 +
|align=
 +
|header=
 +
|imageFile=
 +
|caption=
 +
|name=
 +
|loli=
 +
|shota=
 +
|height=
 +
|weight=
 +
|measurements=
 +
|eyes=
 +
|hair=
 +
|realhair=
 +
|age=
 +
|birthdate=
 +
|origin=
 +
|father=
 +
|mother=
 +
|custom1title=
 +
|custom1data=
 +
|custom2title=
 +
|custom2data=
 +
|custom3title=
 +
|custom3data=
 +
|custom4title=
 +
|custom4data=
 +
|series=
 +
|actor=
 +
|relatedCharacters=
 +
|creator=
 +
|custom5title=
 +
|custom5data=
 +
|custom6title=
 +
|custom6data=
 +
}}
 +
</pre>
 +
[[Category:Formatting templates]]
 +
[[Category:Infoboxes]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:05, 15 February 2009

Personal tools