Difference between revisions of "Template:CharacterInfobox"
From LAH Wiki
Line 1: | Line 1: | ||
− | {| style="border:1px solid dimgray | + | <noinclude>{| align=right |
− | + | |__ToC__ | |
+ | |}</noinclude> | ||
+ | {| style="width:310px; 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=" | + | | style="border:1px solid dimgrey; text-align:center; background:black"| [[image:<includeonly>{{{imageFile}}}</includeonly><noinclude>ExampleAvvy.png</noinclude>|300px]] |
+ | {{#if:{{{caption|}}}|{{{caption}}}}}<noinclude>Image Caption</noinclude> | ||
|- | |- | ||
− | | <includeonly>{{{</includeonly> | + | | |
− | + | <includeonly>{{#if:{{{name|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Name'''</TD> <TD style="width:67%"> <includeonly> {{{name}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- | |
− | <noinclude> | + | |
− | This is a template for character | + | This first section is for in universe data |
− | * | + | |
− | * | + | Physical |
− | *caption | + | |
− | * | + | --><includeonly>{{#if:{{{height|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Height'''</TD> <TD style="width:67%"> <includeonly> {{{height}}} </includeonly> <noinclude>#</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- |
− | * | + | |
− | The code | + | --><includeonly>{{#if:{{{weight|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Weight'''</TD> <TD style="width:67%"> <includeonly> {{{weight}}} </includeonly> <noinclude>#</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- |
− | <pre>{{ | + | |
− | | | + | --><includeonly>{{#if:{{{measurements|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Measurements'''</TD> <TD style="width:67%"> <includeonly> {{{measurements}}} </includeonly> <noinclude># # #</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- |
− | | | + | |
− | |caption= | + | --><includeonly>{{#if:{{{eyes|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Eye Color'''</TD> <TD style="width:67%"> <includeonly> {{{eyes}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- |
− | | | + | |
+ | --><includeonly>{{#if:{{{hair|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Hair Color'''</TD> <TD style="width:67%"> <includeonly> {{{hair}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- | ||
+ | |||
+ | --><includeonly>{{#if:{{{realHair|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Real Hair Color'''</TD> <TD style="width:67%"> <includeonly> {{{realHair}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- | ||
+ | |||
+ | Background | ||
+ | |||
+ | --><includeonly>{{#if:{{{age|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Age'''</TD> <TD style="width:67%"> <includeonly> {{{age}}} </includeonly> <noinclude>#</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly><!-- | ||
+ | |||
+ | --><includeonly>{{#if:{{{birthdate|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:33%; text-align:center">'''Date of Birth'''</TD> <TD style="width:67%"> <includeonly> {{{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:33%; text-align:center">'''Place of Origin'''</TD> <TD style="width:67%"> <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:33%; text-align:center">'''Father'''</TD> <TD style="width:67%"> <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:33%; text-align:center">'''Mother'''</TD> <TD style="width:67%"> <includeonly> {{{mother}}} </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:33%; text-align:center">'''Series'''</TD> <TD style="width:67%"> <includeonly> {{{series}}} </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:33%; text-align:center">'''Created by'''</TD> <TD style="width:67%"> <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:33%; text-align:center">'''Related Charactres'''</TD> <TD style="width:67%"> <includeonly> {{{relatedCharacters}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly> | ||
+ | |||
+ | |- | ||
+ | |style="text-align:center; font-size:75%"|[[Template:DoujinPage|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. | ||
+ | |||
+ | {{TwoColumnList|width=100% | ||
+ | |Col1= | ||
+ | * '''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 | ||
+ | * '''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 | ||
+ | |Col2= | ||
+ | * '''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 | ||
+ | * '''origin''' - the character's place of origin | ||
+ | * '''mother''' - the name of the character's mother | ||
+ | * '''father''' - the name of the character's fother | ||
+ | * '''series''' - the series in which the character appears | ||
+ | * '''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 | ||
+ | }} | ||
+ | {{ATTN|'''Unfortunately, the template does not currently support bulleted or numbered lists.'''}} | ||
+ | |||
+ | ==Code== | ||
+ | The code to use, omitting any fields not used, is: | ||
+ | <pre> | ||
+ | {{PageInfobox|align= | ||
+ | | header= | ||
+ | | imageFile= | ||
+ | | caption= | ||
+ | | name= | ||
+ | | height= | ||
+ | | weight= | ||
+ | | measurements= | ||
+ | | eyes= | ||
+ | | hair= | ||
+ | | realhair= | ||
+ | | age= | ||
+ | | birthdate= | ||
+ | | origin= | ||
+ | | father= | ||
+ | | mother= | ||
+ | | series= | ||
+ | | relatedCharacters= | ||
+ | | creator= | ||
}} | }} | ||
</pre> | </pre> | ||
+ | [[Category:Formatting templates]] | ||
+ | [[Category:Infoboxes]] | ||
</noinclude> | </noinclude> |