Difference between revisions of "Template: Character box"

From Saratta
Jump to: navigation, search
(Created page with '<includeonly>{{DEFAULTSORT:{{{sortname|{{PAGENAME}}}}}}}{{#ifeq: {{{spoiler|}}} | true | Category:Spoilers | {{#ifeq:{{NAMESPACE}} | User | [[Category:Heroes Wiki Contributor…')
 
Line 1: Line 1:
<includeonly>{{DEFAULTSORT:{{{sortname|{{PAGENAME}}}}}}}{{#ifeq: {{{spoiler|}}} | true | [[Category:Spoilers]] | {{#ifeq:{{NAMESPACE}} | User | [[Category:Heroes Wiki Contributor]] | [[Category:Characters]] }} }} {{#if: {{{image|}}}| | {{#ifeq:{{NAMESPACE}} | User | | {{noimage}} }} }}{{#ifeq:{{{spoiler|}}}|true|{{unairedspoiler}}|}}<!--
+
<div><table>
-->{{#if: {{{known powers|{{{power(s)|}}}}}} | {{#ifeq: {{ucfirst:{{{known powers|{{{power(s)|}}}}}}}} | None | {{#if: {{{animal|}}} | | {{#ifeq:{{NAMESPACE}}|Spoiler||{{nousercat|Humans}}}}}} | {{nousercat|Evolved Humans}}}}|{{#ifeq:{{NAMESPACE}}|Spoiler||{{nousercat|Humans}}}}}}</includeonly>
+
<tr>Name<td></td>{{name}}</tr>
{| class="infobox" style="width: 250px; text-align: left; font-size: 70%; background-color: #{{#ifeq:{{{spoiler|}}}|true|F4D5CC|CCD5F4}}; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
+
<tr><td></td></tr>
|-
+
<tr><td></td></tr>
! style="background: #{{#ifeq:{{{spoiler|}}}|true|8B0000|cedff2}}; font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | {{#ifeq:{{{spoiler|}}}|true|<font color=white>{{{name}}}</font>|{{{name}}}}}
+
<tr><td></td></tr>
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">{{#if: {{#pos:{{lc:{{{image}}}}}|image:}} |{{{image}}}|[[Image:{{{image}}}]]}} | <tr> <td align="center" colspan="2">{{Imagelink|image=blankperson.jpg|height=250|width=200|link=Special:Upload|text=Click to Upload Picture}} }}<!--
+
<tr><td></td></tr>
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}
+
</table>
|-
+
</div>
{{#if: {{{portrayer|}}} | {{#ifeq: {{{portrayer}}}|Unknown|{{#ifeq:{{NAMESPACE}} | User | |[[Category:Unknown Portrayer]]|}}}} <tr> <th>Portrayed&nbsp;by</th> <td>{{#ifexist: {{{portrayer}}} | [[{{{portrayer}}}]] | {{{portrayer}}}}}</td> </tr> | }}<!--
+
 
-->{{#if: {{{debut|}}} | <tr> <th>First&nbsp;appearance</th> <td>''{{#if: {{#pos:{{{debut}}}|pisode:}} |{{{debut}}}|{{#ifexist: {{{debut}}} | [[{{{debut}}}]] | {{{debut}}} }}}}''</td> </tr> | {{#if: {{{mention|}}} | <tr> <th>First&nbsp;mentioned</th> <td>''{{#if: {{#pos:{{{mention}}}|pisode:}} |{{{mention}}}|{{#ifexist: {{{mention}}} | [[{{{mention}}}]] | {{{mention}}} }}}}''</td> </tr> {{#ifeq:{{NAMESPACE}} | User | | [[Category:Unseen Characters]] }} }} }}
+
<noinclude>
|-
 
! style="background: #{{#ifeq:{{{spoiler|}}}|true|f2dfce|cedff2}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | In-story stats
 
{{#if: {{{known powers|}}} | <tr> <th>{{#if: {{#pos:{{{known powers}}}|,}} | Known abilities | Known ability}}</th> <td>{{#ifeq:{{{known powers|}}} | Unknown | None [[Category:Characters with Unknown Abilities]]| {{{known powers}}}}}</td> </tr>}}<!--
 
-->{{#if: {{{known powers|}}} | |{{#if: {{{power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{power(s)}}}|,}} | Known abilities | Known ability}}</th> <td>{{#ifeq:{{{power(s)|}}} | Unknown | None [[Category:Characters with Unknown Abilities]]| {{{power(s)}}}}}</td> </tr>}}}}<!--
 
-->{{#if: {{{known powers|}}} | |{{#if: {{{power(s)|}}} | | {{#if: {{{potential_power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{potential_power(s)}}}|,}} | Potential abilities | Potential ability}}</th> <td>{{{potential_power(s)}}}</td> </tr>}}}}}}<!--
 
-->{{#if: {{{formal name|}}} | {{#ifeq: {{{formal name}}}|Unknown|{{#ifeq:{{NAMESPACE}} | User | |[[Category: Unnamed Characters]]}}|}}<tr> <th>Formal&nbsp;name</th> <td>{{{formal name}}}</td> </tr>}}<!--
 
-->{{#if: {{{alias|}}} | <tr> <th>{{#if: {{#pos:{{{alias}}}|,}} | Aliases | Alias }}</th> <td>{{{alias}}}</td> </tr>}}<!--
 
-->{{#if: {{{nick|}}} | <tr> <th>{{#if: {{#pos:{{{nick}}}|,}} | Nicknames | Nickname }}</th> <td>{{{nick}}}</td> </tr>}}<!--
 
-->{{#if: {{{gender|}}} | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch:{{lc:{{{gender|}}}}} | f | female={{Imagelink | image= Venus_symbol_red.png | height= 20 | width= 20 | link= :Category:Female Characters | text= Female }} {{#ifeq:{{NAMESPACE}} | User | |{{#ifeq: {{{spoiler|}}} | true | |[[Category:Female Characters]] }} }}| m | male={{Imagelink | image= Mars_symbol_blue.png | height= 20 | width= 20 | link= :Category:Male Characters | text= Male }} {{#ifeq:{{NAMESPACE}} | User | |{{#ifeq: {{{spoiler|}}} | true | |[[Category:Male Characters]] }} }}| ? | unknown=[[Image:Question symbol green.PNG]] | {{{gender}}} }}</td> </tr>}}<!--
 
-->{{#if: {{{age|}}} | <tr> <th>Age</th> <td>{{{age}}}</td> </tr>}}<!--
 
-->{{#if: {{{born|}}} | <tr> <th>Date&nbsp;of&nbsp;birth</th> <td>{{#ifexist: {{{born}}} | [[{{{born}}}]] | {{{born}}}}}</td> </tr>}}<!--
 
-->{{#if: {{{pob|}}} | <tr> <th>Place&nbsp;of&nbsp;birth</th> <td>{{#ifexist: {{{pob}}} | [[{{{pob}}}]] | {{{pob}}}}}</td> </tr>}}<!--
 
-->{{#if: {{{marriage|}}} | <tr> <th>{{#if: {{#pos:{{{marriage}}}|<br}} | Dates&nbsp;of&nbsp;marriage | Date&nbsp;of&nbsp;marriage}}</th> <td>{{#ifexist: {{{marriage}}} | [[{{{marriage}}}]] | {{{marriage}}}}}</td> </tr>}}<!--
 
-->{{#if: {{{died|}}} | {{#ifeq: {{{died|}}} | Unknown | | <tr> <th>Date&nbsp;of&nbsp;death</th> <td>{{#ifexist: {{{died}}} | [[{{{died}}}]] | {{{died}}}}}</td> </tr> }} {{#ifeq:{{NAMESPACE}} | User | | [[Category:Deceased Characters]]}} }}<!--
 
-->{{#if: {{{home|}}} | <tr> <th>Home</th> <td>{{#ifexist: {{{home}}} | [[{{{home}}}]] | {{{home}}} }}</td> </tr>}}<!--
 
-->{{#if: {{{residence|}}} | <tr> <th>Residence</th> <td>{{#ifexist: {{{residence}}} | [[{{{residence}}}]] | {{{residence}}} }}</td> </tr> | {{#ifexist: {{PAGENAMEE}}'s home | <tr> <th>Residence</th> <td>[[{{PAGENAME}}'s home]]</td> </tr> | {{#ifexist: {{PAGENAMEE}}'s apartment | <tr> <th>Residence</th> <td>[[{{PAGENAME}}'s apartment]]</td> </tr> | }} }} }}<!--
 
-->{{#if: {{{occupation|}}} | <tr> <th>{{#if: {{#pos:{{{occupation}}}|,}} | Occupations | Occupation}}</th> <td>{{{occupation}}}</td> </tr>}}<!--
 
-->{{#if: {{{significant other|}}} | <tr> <th>{{#if: {{#pos:{{{significant other}}}|,}} | Significant&nbsp;others | Significant&nbsp;other}}</th> <td>{{{significant other}}}</td> </tr>}}<!--
 
-->{{#if: {{{parent(s)/guardian(s)|}}} | <tr> <th>{{#if: {{#pos:{{{parent(s)/guardian(s)}}}|,}} | Parents | Parent }}</th> <td>{{{parent(s)/guardian(s)}}}</td> </tr>}}<!--
 
-->{{#if: {{{parent|}}} | <tr> <th>{{#if: {{#pos:{{{parent}}}|,}} | Parents | Parent}}</th> <td>{{{parent}}}</td> </tr>}}<!--
 
-->{{#if: {{{grandparent(s)|}}} | <tr> <th>{{#if: {{#pos:{{{grandparent(s)}}}|,}} | Grandparents | Grandparent}}</th> <td>{{{grandparent(s)}}}</td> </tr>}}<!--
 
-->{{#if: {{{guardian|}}} | <tr> <th>{{#if: {{#pos:{{{guardian}}}|,}} | Guardians | Guardian}}</th>
 
<td>{{{guardian}}}</td> </tr>}}<!--
 
-->{{#if: {{{child(ren)|}}} | <tr> <th>{{#if: {{#pos:{{{child(ren)}}}|,}} | Children | Child}}</th> <td>{{{child(ren)}}}</td> </tr>}}<!--
 
-->{{#if: {{{grandchild(ren)|}}} | <tr> <th>{{#if: {{#pos:{{{grandchild(ren)}}}|,}} | Grandchildren | Grandchild}}</th> <td>{{{grandchild(ren)}}}</td> </tr>}}<!--
 
-->{{#if: {{{ward(s)|}}} | <tr> <th>{{#if: {{#pos:{{{ward(s)}}}|,}} | Wards| Ward}}</th> <td>{{{ward(s)}}}</td> </tr>}}<!--
 
-->{{#if: {{{sibling(s)|}}} | <tr> <th>{{#if: {{#pos:{{{sibling(s)}}}|,}} | Siblings | Sibling }}</th> <td>{{{sibling(s)}}}</td> </tr>}}<!--
 
-->{{#if: {{{other relatives|}}} | <tr> <th>Other relatives</th> <td>{{{other relatives}}}</td> </tr>}}<!--
 
-->{{#ifeq: {{{spoiler|}}} | true | <tr><td colspan="2"><center>''[[Heroes spoilers]]''</center></td></tr>}}
 
|}<noinclude>
 
 
<br clear=all>
 
<br clear=all>
 
==Usage==
 
==Usage==

Revision as of 16:39, 17 August 2009



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 -->
}}