Difference between revisions of "Template:Character/doc"

From Pokemon Dungeon Explorers
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''Character''' infobox template is used to display vital stats of characters.
+
[[Category:Template documentation]]The '''Character''' infobox template is used to display vital stats of characters.
 +
 
 +
Current version derived from [[Template:Locations]], [[Template:Groupevents]] and [http://papayakitty.com/w/index.php?title=Template:Character&oldid=981 the old version of this template].
 +
 
 +
New content suggested by [[User:MissFluffyKitty]]. Layout improved by [[User:Eevee]].
  
 
== Usage ==
 
== Usage ==
To implement the infobox, you simply add <code><nowiki>{{Character}}</nowiki></code> to the top of a page - however there are numerous attributes that display by default and should be set.
+
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.
  
To set attributes, you simply add a few lines before closing the template call (before the closing squiggly brackets - <code><nowiki>}}</nowiki></code>), and add each attribute and it's values with <code><nowiki>| attribute = value</nowiki></code>.
+
Entries marked with * are fully optional and will not show as a line on the infobox if left empty or removed from this code.
  
Here's the code you should copy and fill in for each Character page:
+
Check [[Template:Guildheader]] for further information regarding affiliations.
(entries marked with * are optional and will not show as a line on the infobox if removed from this code.)
+
<pre style="overflow:auto">
 +
{{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)
 +
}}
 +
</pre>
  
Check [[Template:Guildheader]] for further information regarding affiliations.
+
== Example ==
<pre>
+
{{CharacterTest
 +
| 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]]
 +
}}
 +
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:
 +
<pre style="overflow:auto">
 +
{{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]]
 +
}}
 +
</pre>
 +
 
 +
==Empty Template Form==
 +
<pre style="overflow:auto">
 
{{Character
 
{{Character
  | Shortname = * (if unset, defaults to pagename)
+
  | Shortname =  
  | Noimage = * (if set, no image will show in the infobox)
+
| Title =
  | Image = * (if unset, uses basepagename) (is overridden by Noimage)
+
  | Noimage =  
  | fullname = *
+
  | Image =  
  | Affiliation = *
+
  | fullname =  
 +
  | Affiliation =  
 +
| AffiliationLink =
 
  | Role =  
 
  | Role =  
 
  | Location =  
 
  | Location =  
  | Species =
+
| LocationNoLink =
  | Gender =
+
| LocationSpecific =
  | Age =
+
  | Species =  
  | Alias = *
+
  | Gender =  
 +
  | Age =  
 +
  | Alias =  
 +
| NoMoveset =
 
  | Move1 =  
 
  | Move1 =  
 
  | Move2 =  
 
  | Move2 =  
Line 29: Line 120:
 
  | Trait =  
 
  | Trait =  
 
  | Nature =  
 
  | Nature =  
 +
| Stories =
 +
| Links =
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 00:07, 9 July 2013

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