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…')
 
 
(32 intermediate revisions by 3 users not shown)
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}}|}}<!--
+
<includeonly><div style="width: 250px;float:right;margin-left: 10px;"><div class="sideitem"><div class="boxhead"><div id="p-navigation" class="portlet"><div class="headfill" style='padding: 0; margin:0;height: 20px;'><div class="firstHeading" style="padding: 30px; ">{{{name}}}</div></div><div class="boxbody"><div class="pBody"><table style="background: transparent;padding:10px;">
-->{{#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><td></td></tr><tr><td></td></tr><tr><td></td></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><tr><td></td></tr>
|-
+
<tr><td colspan='2'>[[File:{{{image}}}|200px]]</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>'''Age'''</td><td>{{{age}}}</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>'''Born'''</td><td>{{{born}}}</td></tr>
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}
+
<tr><td>'''Died'''</td><td>{{{died}}}</td></tr>
|-
+
<tr><td>'''Gender'''</td><td>{{{gender}}}</td></tr>
{{#if: {{{portrayer|}}} | {{#ifeq: {{{portrayer}}}|Unknown|{{#ifeq:{{NAMESPACE}} | User | |[[Category:Unknown Portrayer]]|}}}} <tr> <th>Portrayed&nbsp;by</th> <td>{{#ifexist: {{{portrayer}}} | [[{{{portrayer}}}]] | {{{portrayer}}}}}</td> </tr> | }}<!--
+
<tr><td>'''Residence'''</td><td>{{{residence}}}</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]] }} }} }}
+
<tr><td>'''Home'''</td><td>{{{home}}}</td></tr>
|-
+
<tr><td>'''Nickname'''</td><td>{{{nick}}}</td></tr>
! 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
+
<tr><td>'''Diety'''</td><td>{{{diety}}}</td></tr>
{{#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>}}<!--
+
<tr><td>'''Race'''</td><td>{{{race}}}</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>}}}}<!--
+
<tr><td colspan=2>'''&nbsp;'''</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>}}}}}}<!--
+
<tr><td colspan=2>'''Meta Data:'''</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>}}<!--
+
<tr><td>'''Class'''</td><td>{{{class}}}</td></tr>
-->{{#if: {{{alias|}}} | <tr> <th>{{#if: {{#pos:{{{alias}}}|,}} | Aliases | Alias }}</th> <td>{{{alias}}}</td> </tr>}}<!--
+
<tr><td>'''Alignment'''</td><td>{{{align}}}</td></tr>
-->{{#if: {{{nick|}}} | <tr> <th>{{#if: {{#pos:{{{nick}}}|,}} | Nicknames | Nickname }}</th> <td>{{{nick}}}</td> </tr>}}<!--
+
<tr><td>'''Level'''</td><td>{{{level}}}</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>}}<!--
+
<tr><td>'''Player'''</td><td>{{{player}}}</td></tr>
-->{{#if: {{{age|}}} | <tr> <th>Age</th> <td>{{{age}}}</td> </tr>}}<!--
+
<tr><td>'''Campaign'''</td><td>{{{campaign}}}</td></tr>
-->{{#if: {{{born|}}} | <tr> <th>Date&nbsp;of&nbsp;birth</th> <td>{{#ifexist: {{{born}}} | [[{{{born}}}]] | {{{born}}}}}</td> </tr>}}<!--
+
</table>
-->{{#if: {{{pob|}}} | <tr> <th>Place&nbsp;of&nbsp;birth</th> <td>{{#ifexist: {{{pob}}} | [[{{{pob}}}]] | {{{pob}}}}}</td> </tr>}}<!--
+
</div><!--//pBody -->
-->{{#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>}}<!--
+
</div><!--//boxbody -->
-->{{#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]]}} }}<!--
+
</div><!--//p-navigation -->  
-->{{#if: {{{home|}}} | <tr> <th>Home</th> <td>{{#ifexist: {{{home}}} | [[{{{home}}}]] | {{{home}}} }}</td> </tr>}}<!--
+
</div><!--//boxhead -->
-->{{#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> | }} }} }}<!--
+
</div>
-->{{#if: {{{occupation|}}} | <tr> <th>{{#if: {{#pos:{{{occupation}}}|,}} | Occupations | Occupation}}</th> <td>{{{occupation}}}</td> </tr>}}<!--
+
</div>
-->{{#if: {{{significant other|}}} | <tr> <th>{{#if: {{#pos:{{{significant other}}}|,}} | Significant&nbsp;others | Significant&nbsp;other}}</th> <td>{{{significant other}}}</td> </tr>}}<!--
+
</includeonly>
-->{{#if: {{{parent(s)/guardian(s)|}}} | <tr> <th>{{#if: {{#pos:{{{parent(s)/guardian(s)}}}|,}} | Parents | Parent }}</th> <td>{{{parent(s)/guardian(s)}}}</td> </tr>}}<!--
+
<noinclude>
-->{{#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==
 
Produces a formatted sidebar for character pages.  See the formatted box below for a blank template for use in articles.
 
Produces a formatted sidebar for character pages.  See the formatted box below for a blank template for use in articles.
  
==Special==
 
* Will add the <nowiki>{{</nowiki>[[Template:noimage|noimage]]<nowiki>}}</nowiki> template to the top of the page and display a default image if the <tt>image</tt> variable is left blank.
 
* Will add the article to [[:Category:Unknown Portrayer]] if the <tt>portrayer</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: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=Milo Feebe
| sortname = <!-- Name to be sorted by in categories and in portals-->
+
| image = cat.jpg
| image = <!-- Image of the character. -->
+
| nick = Flaming Kitty
| portrayer = <!-- Unknown if not known, else name of actor/actress.  -->
+
| alias =  
| nick =  
+
| home = nowhere
| debut = <!-- Episode or GN character first appeared -->
+
| residence = formerly a hobbit village
| mention = <!-- Episode or GN character was first mentioned.  Use for characters who have not debuted. -->
+
| gender = Male
| known powers = <!-- For confirmed evolved humans, type the name of the power; for all others, type "None"-->
+
| age = 28
| potential_power(s) = <!-- For characters who have an identified but not displayed power -->
+
| level = 14
| formal name = <!-- Full formal name of the character if different from PAGENAME; use "Unknown" if PAGENAME is a descriptive name. -->
+
| race = hobbit
| alias = <!-- Pseudonyms and special monikers, not nicknames. -->
+
| class = Sorcerer
| gender = <!-- 'Male' or 'Female' will be replaced by the corresponding icon -->
+
| diety = [[Demáen]]
| 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 -->
 
 
}}</pre>
 
}}</pre>
 
|}
 
|}

Latest revision as of 16:55, 18 July 2011



Usage

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

{{Character box
| name=Milo Feebe
| image = cat.jpg
| nick = Flaming Kitty
| alias = 
| home = nowhere
| residence = formerly a hobbit village
| gender = Male
| age = 28
| level = 14
| race = hobbit
| class = Sorcerer
| diety = [[Demáen]]
}}