Difference between revisions of "Template:Character"

From Pokemon Dungeon Explorers
Jump to navigation Jump to search
(Was asked to remove age by PK, hopefully Ardy will forgive my transgression)
 
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="float: right; text-align: left; font-size: 88%; line-height: 1.5em;"
+
<!--Experimental revamp on Template:Character. Inputs are welcomed!-->
|-  
+
<!--Derived from Template:Locations and the old Template:Character-->
| colspan = 2 |
+
<!--Too much redundancy in codes-->
{| width="100%" style="color:white;background-color:#336699;font-size:112%;"
+
<!--TODO: Mission and Event badges from Template:Locations?-->
|-
+
<table style="float:right; clear:right; background:white; margin:0.5em 0px 0.5em 1em; border:1px solid #aaa; font-size:90%; border-spacing:3px" width="315px">
! align="center" | {{BASEPAGENAME}}
+
<tr>
|}
+
<th colspan="2" width="100%" style="background-color:#{{Guildheader|{{{Affiliation}}}}}; color:white; font-size:110%; vertical-align:middle" text-align="center">
|-
+
<p style="margin:0">{{{Shortname|{{PAGENAME}}}}}</p><!--Header bar, BG color defined by corresponding entries in Template:Guildheader-->
| colspan=2 | [[File:{{BASEPAGENAME}}.png|300px]]
+
</th>
|-
+
</tr>
{{#if:{{{fullname|}}}|<!--
+
{{#if:{{{Title|}}}|<!--Title of the character, optional feature for a quick idea of the character's purpose-->
-->{{!}}Full Name{{!!}}{{{fullname}}}|<!--
+
<tr>
-->}}
+
<th colspan="2" width="100%" style="color:black;background-color:#DCDCDC;font-size:110%" vertical-align= "middle" text-align="center">
|-
+
<p style="margin:0">{{{Title|}}}</p>
| Affiliation || [[{{{Affiliation|none}}}]]
+
</th>
|-
+
</tr>
| Role || {{{Role}}}
+
}}
|-
+
{{#if:{{{Noimage|}}}||<!--Official art here-->
| Gender || {{{Gender|???}}}
+
<tr>
|-
+
<td colspan="2" align="center">
| Usual Location || [[{{{Location}}}]]
+
<p style="margin:0">[[File:{{{Image|{{PAGENAME}}}}}.png|300px]]</p>
|-
+
</td>
{{#if:{{{Alias|}}}|<!--
+
</tr>
-->{{!}}Alias(es){{!!}}{{{Alias}}}|<!--
+
<tr>
-->}}
+
<td colspan="2">
|}
+
<hr>
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{fullname|}}}|<!--Full name, nil when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Full Name</b></td>
 +
<td>{{{fullname|}}}
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Alias|}}}|<!--Alias, nil when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Alias(es)</b></td>
 +
<td>{{{Alias|}}}
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Affiliation|}}}|<!--Affiliation, shows None when empty-->
 +
{{#if:{{{AffiliationLink|}}}|
 +
<tr>
 +
<td style="padding-right:1em"><b>Affiliation</b></td>
 +
<td>[[{{{AffiliationLink|}}}|{{{Affiliation|}}}]]
 +
</td>
 +
</tr>|
 +
<tr>
 +
<td style="padding-right:1em"><b>Affiliation</b></td>
 +
<td>{{{Affiliation|}}}
 +
</td>
 +
</tr>
 +
}}|
 +
<tr>
 +
<td style="padding-right:1em"><b>Affiliation</b></td>
 +
<td>None
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Role|}}}|<!--Role, shows Unknown when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Role</b></td>
 +
<td>{{{Role|}}}
 +
</td>
 +
</tr>|
 +
<tr>
 +
<td style="padding-right:1em"><b>Role</b></td>
 +
<td>Unknown
 +
</td>
 +
</tr>
 +
}}
 +
{{#ifeq:{{{Location|}}}|???|<!--Compatibility-->
 +
<tr>
 +
{{#if:{{{LocationSpecific|}}}|
 +
<td style="padding-right:1em"><b>Location</b></td>|
 +
<td style="padding-right:1em"><b>Usual Location</b></td>
 +
}}
 +
<td>{{{Location|}}}
 +
</td>
 +
</tr>|
 +
{{#if:{{{Location|}}}|<!--Location, shows Unknown when empty-->
 +
<tr>
 +
{{#if:{{{LocationSpecific|}}}|
 +
<td style="padding-right:1em"><b>Location</b></td>|
 +
<td style="padding-right:1em"><b>Usual Location</b></td>
 +
}}
 +
<td>{{#if:{{{LocationNoLink|}}}|{{{Location|}}}|[[{{{Location|}}}]]}}
 +
</td>
 +
</tr>|
 +
<tr>
 +
{{#if:{{{LocationSpecific|}}}|
 +
<td style="padding-right:1em"><b>Location</b></td>|
 +
<td style="padding-right:1em"><b>Usual Location</b></td>
 +
}}
 +
<td>Unknown
 +
</td>
 +
</tr>
 +
}}
 +
}}
 +
{{#if:{{{Species|}}}|<!--Species, shows Unknown when empty, uses Template:Species-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Species</b></td>
 +
<td>{{Species|{{{Species|}}}}}
 +
</td>
 +
</tr>|
 +
<tr>
 +
<td style="padding-right:1em"><b>Species</b></td>
 +
<td>Unknown
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Gender|}}}|<!--Gender, shows Unknown when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Gender</b></td>
 +
<td>{{{Gender|}}}
 +
</td>
 +
</tr>|
 +
<tr>
 +
<td style="padding-right:1em"><b>Gender</b></td>
 +
<td>Unknown
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Age|}}}|<!--Age, shows Unknown when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Age</b></td>
 +
<td>{{{Age|}}}
 +
</td>
 +
</tr>|
 +
<tr>
 +
<td style="padding-right:1em"><b>Age</b></td>
 +
<td>Unknown
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Trait|}}}|<!--Trait, shows Unknown when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Trait</b></td>
 +
<td>{{{Trait|}}}
 +
</td>
 +
</tr>|
 +
<tr>
 +
<td style="padding-right:1em"><b>Trait</b></td>
 +
<td>Unknown
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Nature|}}}|<!--Nature, shows Unknown when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Nature</b></td>
 +
<td>{{{Nature|}}}
 +
</td>
 +
</tr>|
 +
<tr>
 +
<td style="padding-right:1em"><b>Nature</b></td>
 +
<td>Unknown
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Stories|}}}|
 +
<tr>
 +
<td colspan="2">
 +
<hr>
 +
</td>
 +
</tr>|
 +
{{#if:{{{Links|}}}|
 +
<tr>
 +
<td colspan="2">
 +
<hr>
 +
</td>
 +
</tr>
 +
}}}}
 +
{{#if:{{{Stories|}}}|<!--Related stories, nil when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Related Stories</b></td>
 +
<td>{{{Stories}}}
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{Links|}}}|<!--Other links, nil when empty-->
 +
<tr>
 +
<td style="padding-right:1em"><b>Links</b></td>
 +
<td>{{{Links}}}
 +
</td>
 +
</tr>
 +
}}
 +
{{#if:{{{NoMoveset|}}}|| <!--Moveset table, uses Template:Move-->
 +
<tr>
 +
<td colspan="2">
 +
<hr>
 +
</td>
 +
</tr>
 +
<tr>
 +
<td align="center" colspan="2">
 +
<table style="border-collapse:collapse">
 +
<tr>
 +
<td style="<!--border-right: 1px solid #aaa;border-bottom: 1px solid #aaa;-->width:150px">
 +
{{#if:{{{Move1|}}}|
 +
<p style="margin:2px">Move 1: {{Move|{{{Move1|}}}}}</p>|
 +
<p style="margin:2px">Move 1: None</p>|
 +
}}
 +
</td>
 +
<td style="<!--border-left: 1px solid #aaa;border-bottom: 1px solid #aaa;-->width:150px">
 +
{{#if:{{{Move1|}}}|
 +
<p style="margin:2px">Move 2: {{Move|{{{Move2|}}}}}</p>|
 +
<p style="margin:2px">Move 2: None</p>|
 +
}}
 +
</td>
 +
</tr>
 +
<tr>
 +
<td style="<!--border-right: 1px solid #aaa;border-top: 1px solid #aaa;-->width:150px">
 +
{{#if:{{{Move1|}}}|
 +
<p style="margin:2px">Move 3: {{Move|{{{Move3|}}}}}</p>|
 +
<p style="margin:2px">Move 3: None</p>|
 +
}}
 +
</td>
 +
<td style="<!--border-left: 1px solid #aaa;border-top: 1px solid #aaa;-->width:150px">
 +
{{#if:{{{Move1|}}}|
 +
<p style="margin:2px">Move 4: {{Move|{{{Move4|}}}}}</p>|
 +
<p style="margin:2px">Move 4: None</p>|
 +
}}
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
}}
 +
</table>
  
 
<noinclude>{{clr}}
 
<noinclude>{{clr}}
 
{{Template doc}}
 
{{Template doc}}
 
</noinclude>
 
</noinclude>
 +
 +
<includeonly>
 +
[[Category:Characters]]
 +
{{#ifeq: {{{Affiliation}}} |Merchants |[[Category:Characters/Merchants]]|}}
 +
{{#ifeq: {{{Affiliation}}} |Rogues |[[Category:Characters/Rogues]]|}}
 +
{{#ifeq: {{{Affiliation}}} |Rescuers|[[Category:Characters/Rescuers]]|}}
 +
{{#if:{{{Species|}}}| |[[Category:Characters/Nospecies]]}}
 +
{{#if:{{{Trait|}}}| |[[Category:Characters/Notraits]]}}
 +
</includeonly>

Latest revision as of 19:30, 8 July 2013

Character

300px


Affiliation None
Role Unknown
Usual Location Unknown
Species Unknown
Gender Unknown
Age Unknown
Trait Unknown
Nature Unknown

Move 1: None

Move 2: None

Move 3: None

Move 4: None

Template:Clr

Documentation for Character

The Character infobox template is used to display vital stats of characters.

Current version derived from Template:Locations, Template:Groupevents and the old version of this template.

New content suggested by User:MissFluffyKitty. Layout improved by User:Eevee.

Usage

Copy the codes from this section, or the empty form below to the page to implement the infobox, and set each attributes as desired. Leave unknown attributes empty.

Entries marked with * are fully optional and will not show as a line on the infobox if left empty or removed from this code.

Check Template:Guildheader for further information regarding affiliations.

{{Character
 | Shortname = (If unset, defaults to pagename)
 | Title = * (Similar to Role, e.g. Head of Tao Merchant's Guild for PK. Use as needed)
 | Noimage = * (If set, no image will show in the infobox)
 | Image =  (If unset, uses basepagename) (is overridden by Noimage)
 | fullname = * (e.g. Payapa Kiwi Periy for PK)
 | Affiliation =  (Shows None if unset, see Template:Guildheader for current ones, determines BG color of the first row, and additional category for Rescuers, Merchants, and Rogues)
 | AffiliationLink = * (Wikiword link of the affiliation of the character, no link if unset)
 | Role =  (Shows Unknown if unset)
 | Location = (Shows Unknown if unset, automatically hotlinked by default)
 | LocationNoLink = * (If set, Location would not be hotlinked)
 | LocationSpecific = * (Shows "Location" instead of "Usual Location" if set)
 | Species =  (Shows Unknown if unset -- Automatic hyperlink to veekun, leave empty if unknown)
 | Gender =  (Shows Unknown if unset)
 | Age =  (Shows Unknown if unset)
 | Alias = * 
 | NoMoveset = * (No moveset section if set)
 | Move1 = (Moves default to None, automatic hyperlink to veekun, set NoMoveset if unavailable)
 | Move2 = 
 | Move3 = 
 | Move4 = 
 | Trait =  (Shows Unknown if unset)
 | Nature =  (Shows Unknown if unset)
 | Stories = * (Stories related to this character)
 | Links = * (Other points of interest)
}}

Example

PK

Head of Tao Merchant's Guild

PK.png


Full Name Payapa Kiwi Periy
Affiliation Merchants
Role Guild Head
Location Tao Village (Past)
Species Template:Species
Gender Female
Age Young Adult
Trait Likes to thrash about
Nature Sassy

Related Stories Complementaries
Resignation
A Deal
The Illusion
The Dates
The Question
Event 6 suckers
Scars and Regrets
Links The Periy Family
PK's Interview

Move 1: Template:Move

Move 2: Template:Move

Move 3: Template:Move

Move 4: Template:Move

This example uses Template:CharacterTest, developmental version of this template without automatic categorization by guild.

The following code would produce the infobox to the right on a normal page:

{{Character
 | Shortname = PK
 | Title = Head of Tao Merchant's Guild
 | Noimage =
 | Image = PK
 | fullname = Payapa Kiwi Periy 
 | Affiliation = Merchants
 | AffiliationLink = Merchants
 | Role = Guild Head
 | Age = Young Adult 
 | Species = Kecleon
 | Location = Tao Village (Past)
 | LocationNoLink = 
 | LocationSpecific = 1
 | Gender = Female
 | Move1 = Shadow Sneak
 | Move2 = Sucker Punch
 | Move3 = Substitute
 | Move4 = Dizzy Punch
 | Trait = Likes to thrash about
 | Nature = Sassy
 | Stories = [[Complementaries]]<br>[[Resignation Chapter 1|Resignation]]<br>[[A Deal]]<br>[[The Illusion]]<br>[[The Dates]]<br>[[The Question]]<br>[[Event 6 suckers]]<br>[[Scars and Regrets]]
 | Links = [[The Periy Family]]<br>[[PK's Interview]]
}}

Empty Template Form

{{Character
 | Shortname = 
 | Title = 
 | Noimage = 
 | Image = 
 | fullname = 
 | Affiliation = 
 | AffiliationLink = 
 | Role = 
 | Location = 
 | LocationNoLink = 
 | LocationSpecific = 
 | Species = 
 | Gender = 
 | Age = 
 | Alias = 
 | NoMoveset = 
 | Move1 = 
 | Move2 = 
 | Move3 = 
 | Move4 = 
 | Trait = 
 | Nature = 
 | Stories = 
 | Links = 
}}
Icon Blaine.png This documentation is transcluded from Template:Character/doc.