Template: Character box

From Saratta
Revision as of 16:15, 17 August 2009 by Bob (talk | contribs) (Created page with '<includeonly>{{DEFAULTSORT:{{{sortname|{{PAGENAME}}}}}}}{{#ifeq: {{{spoiler|}}} | true | Category:Spoilers | {{#ifeq:{{NAMESPACE}} | User | [[Category:Heroes Wiki Contributor…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
{{#if: | {{#ifeq: {{{portrayer}}}|Unknown|{{#ifeq:Template | User | ||}}}} <tr> <th>Portrayed by</th> <td>{{#ifexist: {{{portrayer}}} | [[{{{portrayer}}}]] | {{{portrayer}}}}}</td> </tr> | }}{{#if: | <tr> <th>First appearance</th> <td>{{#if: {{#pos:{{{debut}}}|pisode:}} |{{{debut}}}|{{#ifexist: {{{debut}}} | [[{{{debut}}}]] | {{{debut}}} }}}}</td> </tr> | {{#if: | <tr> <th>First mentioned</th> <td>{{#if: {{#pos:{{{mention}}}|pisode:}} |{{{mention}}}|{{#ifexist: {{{mention}}} | [[{{{mention}}}]] | {{{mention}}} }}}}</td> </tr> {{#ifeq:Template | User | | }} }} }}
true|8B0000|cedff2}}; font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq:|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | {{#ifeq:|true|{{{name}}}|{{{name}}}}}

{{#if: | <tr> <td align="center" colspan="2">{{#if: {{#pos:{{{image}}}|image:}} |{{{image}}}|[[Image:{{{image}}}]]}} | <tr> <td align="center" colspan="2">Template:Imagelink }}{{#if: |
{{{caption}}}</td> </tr>}}

true|f2dfce|cedff2}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#ifeq:|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | In-story stats

{{#if: | <tr> <th>{{#if: {{#pos:{{{known powers}}}|,}} | Known abilities | Known ability}}</th> <td>{{#ifeq: | Unknown | None| {{{known powers}}}}}</td> </tr>}}{{#if: | |{{#if: | <tr> <th>{{#if: {{#pos:{{{power(s)}}}|,}} | Known abilities | Known ability}}</th> <td>{{#ifeq: | Unknown | None| {{{power(s)}}}}}</td> </tr>}}}}{{#if: | |{{#if: | | {{#if: | <tr> <th>{{#if: {{#pos:{{{potential_power(s)}}}|,}} | Potential abilities | Potential ability}}</th> <td>{{{potential_power(s)}}}</td> </tr>}}}}}}{{#if: | {{#ifeq: {{{formal name}}}|Unknown|{{#ifeq:Template | User | |}}|}}<tr> <th>Formal name</th> <td>{{{formal name}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{alias}}}|,}} | Aliases | Alias }}</th> <td>{{{alias}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{nick}}}|,}} | Nicknames | Nickname }}</th> <td>{{{nick}}}</td> </tr>}}{{#if: | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch: | f | female=Template:Imagelink {{#ifeq:Template | User | |{{#ifeq: | true | | }} }}| m | male=Template:Imagelink {{#ifeq:Template | User | |{{#ifeq: | true | | }} }}| ? | unknown=File:Question symbol green.PNG | {{{gender}}} }}</td> </tr>}}{{#if: | <tr> <th>Age</th> <td>{{{age}}}</td> </tr>}}{{#if: | <tr> <th>Date of birth</th> <td>{{#ifexist: {{{born}}} | [[{{{born}}}]] | {{{born}}}}}</td> </tr>}}{{#if: | <tr> <th>Place of birth</th> <td>{{#ifexist: {{{pob}}} | [[{{{pob}}}]] | {{{pob}}}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{marriage}}}|<br}} | Dates of marriage | Date of marriage}}</th> <td>{{#ifexist: {{{marriage}}} | [[{{{marriage}}}]] | {{{marriage}}}}}</td> </tr>}}{{#if: | {{#ifeq: | Unknown | | <tr> <th>Date of death</th> <td>{{#ifexist: {{{died}}} | [[{{{died}}}]] | {{{died}}}}}</td> </tr> }} {{#ifeq:Template | User | |}} }}{{#if: | <tr> <th>Home</th> <td>{{#ifexist: {{{home}}} | [[{{{home}}}]] | {{{home}}} }}</td> </tr>}}{{#if: | <tr> <th>Residence</th> <td>{{#ifexist: {{{residence}}} | [[{{{residence}}}]] | {{{residence}}} }}</td> </tr> | {{#ifexist: Character_box's home | <tr> <th>Residence</th> <td>Character box's home</td> </tr> | {{#ifexist: Character_box's apartment | <tr> <th>Residence</th> <td>Character box's apartment</td> </tr> | }} }} }}{{#if: | <tr> <th>{{#if: {{#pos:{{{occupation}}}|,}} | Occupations | Occupation}}</th> <td>{{{occupation}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{significant other}}}|,}} | Significant others | Significant other}}</th> <td>{{{significant other}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{parent(s)/guardian(s)}}}|,}} | Parents | Parent }}</th> <td>{{{parent(s)/guardian(s)}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{parent}}}|,}} | Parents | Parent}}</th> <td>{{{parent}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{grandparent(s)}}}|,}} | Grandparents | Grandparent}}</th> <td>{{{grandparent(s)}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{guardian}}}|,}} | Guardians | Guardian}}</th>

<td>{{{guardian}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{child(ren)}}}|,}} | Children | Child}}</th> <td>{{{child(ren)}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{grandchild(ren)}}}|,}} | Grandchildren | Grandchild}}</th> <td>{{{grandchild(ren)}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{ward(s)}}}|,}} | Wards| Ward}}</th> <td>{{{ward(s)}}}</td> </tr>}}{{#if: | <tr> <th>{{#if: {{#pos:{{{sibling(s)}}}|,}} | Siblings | Sibling }}</th> <td>{{{sibling(s)}}}</td> </tr>}}{{#if: | <tr> <th>Other relatives</th> <td>{{{other relatives}}}</td> </tr>}}{{#ifeq: | true | <tr><td colspan="2">
Heroes spoilers
</td></tr>}}


Usage

Produces a formatted sidebar for character pages. See the formatted box below for a blank template for use in articles.

Special

{{Character box
| name = 
| sortname = <!-- Name to be sorted by in categories and in portals-->
| image = <!-- Image of the character. -->
| portrayer = <!-- Unknown if not known, else name of actor/actress.  -->
| nick = 
| debut = <!-- Episode or GN character first appeared -->
| mention = <!-- Episode or GN character was first mentioned.  Use for characters who have not debuted. -->
| known powers = <!-- For confirmed evolved humans, type the name of the power; for all others, type "None"-->
| potential_power(s) = <!-- For characters who have an identified but not displayed power -->
| formal name = <!-- Full formal name of the character if different from PAGENAME; use "Unknown" if PAGENAME is a descriptive name. -->
| alias = <!-- Pseudonyms and special monikers, not nicknames. -->
| gender = <!-- 'Male' or 'Female' will be replaced by the corresponding icon -->
| age = 
| born = 
| pob =
| died = <!-- set to "Unknown" if date is unknown, but the person is dead -->
| home = <!-- Character's home or place of origin (city); Will link to existing articles. -->
| residence = <!--Physical building where character lives; will link to existing articles. -->
| occupation = 
| significant other = 
| marriage = 
| parent = 
| grandparent(s) = 
| guardian = <!--Non-parent guardian(s)-->
| child(ren) = 
| grandchild(ren) = 
| ward(s) = 
| sibling(s) = 
| other relatives =
| spoiler = <!-- "true" for spoiler warning and colors -->
}}