This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:Character box: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Alexwill
changed to allow both "mention" and "debut" without Category: Unseen Characters
imported>Alexwill
added sortname parameter so articles will be put in categories correctly
Line 6: Line 6:
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}
|-
|-
{{#if: {{{portrayer|}}} | {{#ifeq: {{{portrayer}}}|Unknown|[[Category: Unknown Portrayer]]|}} <tr> <th>Portrayed&nbsp;by</th> <td>{{#ifexist: {{{portrayer}}} | [[{{{portrayer}}}]] | {{{portrayer}}}}}</td> </tr> | }}<!--
{{#if: {{{portrayer|}}} | {{#ifeq: {{{portrayer}}}|Unknown|{{#if: {{{sortname|}}} | [[Category:Unknown Portrayer|{{{sortname}}}]] | [[Category:Unknown Portrayer]]}}|}} <tr> <th>Portrayed&nbsp;by</th> <td>{{#ifexist: {{{portrayer}}} | [[{{{portrayer}}}]] | {{{portrayer}}}}}</td> </tr> | }}<!--
-->{{#if: {{{nick|}}} | <tr> <th>{{#if: {{#pos:{{{nick}}}|,}} | Nicknames | Nickname }}</th> <td>{{{nick}}}</td> </tr>}}<!--
-->{{#if: {{{nick|}}} | <tr> <th>{{#if: {{#pos:{{{nick}}}|,}} | Nicknames | Nickname }}</th> <td>{{{nick}}}</td> </tr>}}<!--
-->{{#if: {{{debut|}}} | <tr> <th>First&nbsp;appearance</th> <td>''{{#if: {{#pos:{{{debut}}}|pisode:}} |{{{debut}}}|{{#ifexist: {{{debut}}} | [[Episode:{{{debut}}}|{{{debut}}}]] | {{{debut}}} }}}}''</td> </tr>}}<!--
-->{{#if: {{{debut|}}} | <tr> <th>First&nbsp;appearance</th> <td>''{{#if: {{#pos:{{{debut}}}|pisode:}} |{{{debut}}}|{{#ifexist: {{{debut}}} | [[Episode:{{{debut}}}|{{{debut}}}]] | {{{debut}}} }}}}''</td> </tr>}}<!--
Line 14: Line 14:
{{#if: {{{power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{power(s)}}}|,}} | Known powers | Known power}}</th> <td>{{#ifeq:{{{power(s)|}}} | Unknown | None | {{{power(s)}}}}}</td> </tr>}}<!--
{{#if: {{{power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{power(s)}}}|,}} | Known powers | Known power}}</th> <td>{{#ifeq:{{{power(s)|}}} | Unknown | None | {{{power(s)}}}}}</td> </tr>}}<!--
-->{{#if: {{{potential_power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{potential_power(s)}}}|,}} | Potential powers | Potential power}}</th> <td>{{{potential_power(s)}}}</td> </tr>}}<!--
-->{{#if: {{{potential_power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{potential_power(s)}}}|,}} | Potential powers | Potential power}}</th> <td>{{{potential_power(s)}}}</td> </tr>}}<!--
-->{{#if: {{{formal name|}}} | {{#ifeq: {{{formal name}}}|Unknown|[[Category: Characters]][[Category: Unnamed Characters]]|}}<tr> <th>Formal&nbsp;name</th> <td>{{{formal name}}}</td> </tr>}}<!--
-->{{#if: {{{formal name|}}} | {{#ifeq: {{{formal name}}}|Unknown|[[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: {{{alias|}}} | <tr> <th>{{#if: {{#pos:{{{alias}}}|,}} | Aliases | Alias }}</th> <td>{{{alias}}}</td> </tr>}}<!--
-->{{#if: {{{gender|}}} | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch:{{lc:{{{gender|}}}}} | f | female=[[Image:Venus_symbol_red.png|Female]] | m | male=[[Image:Mars_symbol_blue.png|Male]] | {{{gender}}} }}</td> </tr>}}<!--
-->{{#if: {{{gender|}}} | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch:{{lc:{{{gender|}}}}} | f | female=[[Image:Venus_symbol_red.png|Female]] | m | male=[[Image:Mars_symbol_blue.png|Male]] | {{{gender}}} }}</td> </tr>}}<!--
Line 30: Line 30:
-->{{#if: {{{child(ren)|}}} | <tr> <th>{{#if: {{#pos:{{{child(ren)}}}|,}} | Children | Child}}</th> <td>{{{child(ren)}}}</td> </tr>}}<!--
-->{{#if: {{{child(ren)|}}} | <tr> <th>{{#if: {{#pos:{{{child(ren)}}}|,}} | Children | Child}}</th> <td>{{{child(ren)}}}</td> </tr>}}<!--
-->{{#if: {{{sibling(s)|}}} | <tr> <th>{{#if: {{#pos:{{{sibling(s)}}}|,}} | Siblings | Sibling }}</th> <td>{{{sibling(s)}}}</td> </tr>}}
-->{{#if: {{{sibling(s)|}}} | <tr> <th>{{#if: {{#pos:{{{sibling(s)}}}|,}} | Siblings | Sibling }}</th> <td>{{{sibling(s)}}}</td> </tr>}}
|}
|}<!--
{{#if: {{{mention|}}} | {{#if: {{{debut|}}} | | [[Category: Unseen Characters]]}} }}<noinclude>
-->{{#if: {{{mention|}}} | {{#if: {{{debut|}}} | | {{#if: {{{sortname|}}} | [[Category:Unseen Characters|{{{sortname}}}]] | [[Category:Unseen Characters]] }} }} }}<!--
-->{{#if: {{{died|}}} | {{#if: {{{sortname|}}} | [[Category:Deceased Characters|{{{sortname}}}]] | [[Category:Deceased Characters]]}} }}<!--
-->{{#if: {{{sortname|}}} | [[Category:Characters|{{{sortname}}}]] | [[Category:Characters]]}}
<noinclude>


==Usage==
==Usage==
Line 41: Line 44:
* Will add the article to [[:Category:Unnamed Characters]] if the <tt>formal name</tt> variable equals the text "Unknown".
* Will add the article to [[:Category:Unnamed Characters]] if the <tt>formal name</tt> variable equals the text "Unknown".
* Will add the article to [[:Category:Unseen Characters]] if the <tt>mention</tt> variable is filled in, but <tt>debut</tt> is not.
* Will add the article to [[:Category:Unseen Characters]] if the <tt>mention</tt> variable is filled in, but <tt>debut</tt> is not.
* Will add the article to [[:Category:Deceased Characters]] if the <tt>died</tt> variable is filled in.
{| style="background: transparent;"
{| style="background: transparent;"
|<pre>{{Character box
|<pre>{{Character box
| name =
| name =
| sortname = <!-- Name to be sorted by in categories -->
| image = <!-- Image of the character. -->
| image = <!-- Image of the character. -->
| caption = <!-- Caption for the image. -->
| caption = <!-- Caption for the image. -->

Revision as of 16:14, 23 May 2007

{{{name}}}
In-story stats


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 -->
| image = <!-- Image of the character. -->
| caption = <!-- Caption for the image. -->
| portrayer = <!-- Unknown if not known, else name of actor/actress.  -->
| nick = 
| debut = <!-- Episode character first appeared -->
| mention = <!-- Episode character was first mentioned.  Use for characters who have not debuted. -->
| power(s) = <!-- For evolved humans, type the name of the power or "Unknown"; for all others, type "None"-->
| potential_power(s) =
| formal name = <!-- Full formal name of the character. -->
| alias = <!-- Pseudonyms and special monikers, not nicknames. -->
| gender = <!-- 'Male' or 'Female' will be replaced by the corresponding icon -->
| age = 
| born = 
| died =
| home = <!-- Character's home or place of origin.  Will link to existing articles. -->
| residence = <!--will automatically link if article/redirect exists, but can be manually overridden -->
| occupation = 
| significant other = 
| parent = 
| guardian = <!--Non-parent legal guardian(s)-->
| child(ren) = 
| sibling(s) = 
| spoiler = <!-- "true" for spoiler warning and colors -->
}}