Template:Character
Description
This is the main template for all character pages. It determines the layout of the individual page and provides functionality for extracting specific character information for use in other pages.
Usage
{{Character
|Mode = {{{1|Page}}}
|Param1 = {{{2|}}}
|Param2 = {{{3|}}}
<!-- Quick Facts -->
|Name =
|Pagename =
|Status =
|Type =
|Version =
|VersionUpdate =
|Attributes =
|Locations =
|Factions =
|Quests =
<!-- Media -->
|Image =
|Icon =
<!-- Personal Data -->
|Level =
|XP =
|Race =
|Gender =
|Aliases =
<!-- Info -->
|Description =
|Backstory =
|Notes =
<!-- Interaction -->
|Attitude =
|Actions =
|Dialogue =
|Quotes =
<!-- Stats -->
|Combatant =
|DamageType =
|Range =
|APcost =
|Traits =
|Stats =
|Offense =
|Defense =
|Resist =
|Effects =
|Skills =
|Specials =
<!-- Loot -->
|LootFixed =
|LootRandom =
}}
Parameters
| Name | Required | Description | Values |
|---|---|---|---|
| Mode | Yes | Determines the mode of execution of the template (see below). Changing the predefined value may lead to unexpected behavior. | {{{1|Page}}} (should not be changed) |
| Param1 | Yes | Used for routing a selection parameter to the template in certain modes (see below). Changing the predefined value may lead to unexpected behavior. | {{{2|}}} (should not be changed) |
| Param2 | Yes | Used for routing a selection parameter to the template in certain modes (see below). Changing the predefined value may lead to unexpected behavior. | {{{3|}}} (should not be changed) |
| Quick Facts | |||
| Name | Yes | The name of the character as used in the game. Will be displayed in the infobox of the page. If alternative names exist, they can be provided under Aliases. | arbitrary text |
| Pagename | Yes | The title of the character page, needed for linking purposes. Note: Do not use magic words such as {{PAGENAME}} here, as this prevents proper linking when transcluding information from this page on other pages. | arbitrary text |
| Status | No | If the page has a special status, it can be set here. A corresponding box will be displayed at the top of the page. | one of the values defined in Template:PageStatus |
| Type | Yes | The specific type of the character. Will be displayed in the infobox of the page. | one of the values defined in Template:CharacterType (other values are ignored): Main • Side • Generic • Mentioned |
| Version | Yes | The game version in which the character was first introduced. Will be displayed in the infobox of the page. | version number in the form X.Y.Z |
| VersionUpdate | No | The game version in which the character was last updated. Will be displayed in the infobox of the page. | version number in the form X.Y.Z |
| Attributes | No | One or more attributes which describe certain aspects of the character. Will be displayed in the infobox of the page. | a semicolon-separated list of the values defined in Template:CharacterAttributes (other values are ignored): Merchant • Healer • Trainer • Transport • Companion |
| Locations | Yes | The location(s) in which the character can be encountered during the course of the game. The first entry is assumed to be the initial location and will be displayed in the infobox of the page. | a semicolon-separated list of [[Location]]s |
| Factions | No | If the character is affiliated to one or more factions, they can be listed here and will be displayed in the infobox of the page. | a semicolon-separated list of [[Faction]]s |
| Quests | No | If the character is involved in certain quests, they can be listed here and will be displayed in the infobox of the page. | a semicolon-separated list of [[Quests]]s |
| Media | |||
| Image | Yes | The image (PNG or JPG) to be displayed in the infobox of the page. | image name (including file extension) |
| Icon | No | The image (PNG or JPG) to be displayed as an icon in character tables, lists, etc. If nothing is specified, a small version of Image is used instead. | image name (including file extension) |
| Personal Data | |||
| Level | Yes | The level of the character. Will be displayed in the infobox of the page. | positive number |
| XP | No | The experience points granted when defeating this character. Will only be displayed in the infobox of the page if Combatant is set (see below). Defaults to "Unkown". | non-negative number |
| Race | Yes | The race of the character. Will be displayed in the infobox of the page. | one of the in-game [[Race]]s |
| Gender | No | The gender of the character (if known). Will be displayed in the infobox of the page. If nothing is specified, the gender is set to "Unkown". | "Male", "Female", "Neutral" or any other appropriate term |
| Aliases | No | If the character is known by more than one name, its aliases can be listed here and will be displayed in the infobox of the page. | a semicolon-separated list of aliases |
| Info | |||
| Description | Yes | A concise description of the character itself. Is used as an introductory paragraph and should not be too excessive (2−3 sentences are usually enough). More detailed information can be provided under Backstory. | arbitrary text |
| Backstory | No | Here you can put any substancial background information on this character (its past, current intentions and entanglements, etc.), as long as it is derived from in-game sources (no speculations please). | arbitrary text |
| Notes | No | Any kind of ancillary information (which does not seem appropriate anywhere else) can be provided here. | arbitrary text, ideally formatted as a bullet list (using *) |
| Interaction | |||
| Attitude | Yes | The attitude of the character towards the player. | pre-formatted {{Attitude|...}} text (using Template:Attitude) plus additional descriptive text (if needed) |
| Actions | No | If the character offers any notable services (e.g. trading, crafting, transportation, training, etc.) or performs other actions, those services and actions can briefly be described here. | a semicolon-separated list of brief descriptions |
| Dialogue | No | If the character has any notable dialogue options (e.g. revealing important information, advancing a quest, etc.), those options and their implications can briefly be described here. | a semicolon-separated list of brief descriptions |
| Quotes | No | Any memorable quote from this character may be put here. | a semicolon-separated list of {{Quote|...}}s (using Template:Quote) |
| Stats | |||
| Combatant | No | Toggles whether this character is categorized as a combatant. If not, display of stats is suppressed. | "True" (or any other text) to activate stats, empty otherwise |
| DamageType | Yes | The specific damage type of the character. | one of the values defined in Template:DamageType (other values are ignored): Blunt • Piercing • Slashing |
| Range | Yes | The attack range of the character, given in grid tiles. Defaults to 0 (= melee). | non-negative number |
| APcost | Yes | The amount of Action Points (AP) this character needs for attacking. | non-negative number |
| Traits | Yes | The trait values of the character. See Template:Traits for further information. | a vector of 7 comma-separated numbers, representing trait values (e.g. "4,8,8,5,6,3,6") |
| Stats | Yes | The base stats of the character. See Template:Stats for further information. | a vector of 6 comma-separated numbers, representing stat values (e.g. "52,11,10,18,3,0") |
| Offense | Yes | The offensive properties of the character. See Template:Offense for further information. | a vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10") |
| Defense | Yes | The defensive properties of the character. See Template:Defense for further information. | a vector of 2 comma-separated numbers, representing defense values (e.g. "2,15") |
| Resist | Yes | The resistances of the character. See Template:Resistances for further information. | a vector of 6 comma-separated numbers, representing resistance values (e.g. "10,0,50,-10,0,0") |
| Effects | No | If special proc effects are triggered during combat, they can be listed here. See Template:Effect for further information. | a semicolon-separated list of {{Effect|...}}s (using Template:Effect) |
| Skills | No | If the character has special combat skills, they can be listed here. | a semicolon-separated list of [[Skill]]s |
| Specials | No | If the character has special combat properties, they can be listed here. | a semicolon-separated list of [[Special]]s |
| Loot | |||
| LootFixed | No | If the character drops fixed loot (i.e. loot with 100% drop chance), it can be listed here. | a semicolon-separated list of [[Item]]s |
| LootRandom | No | If the character drops random loot, it can be listed here (ideally with information about drop rates). | a semicolon-separated list of [[Item]]s |
Including multiple character stats
Within the main page of a character, only one set of stats can be specified (which will also be transcluded to the various overview tables). If multiple sets of stats need to be presented (e.g. due to different difficulty levels or different conditions of the character during the game), a separate subpage <PAGENAME>/stats can be created which holds all relevant information. If such a subpage exists, it will automatically be transcluded into the character page, thereby replacing the original set of stats.
To ensure a consistent format, the information on the subpage should be provided as multiple instances of Template:StatsTable (see the corresponding documentation there), one instance for each set of stats. Additional descriptive text may be included between template calls if needed.
Note that the stats on the main page of the character should always be provided (even if they are overwritten by the subpage), because those stats are used to fill the overview tables. Otherwise those table entries will be empty.
Including merchant shops
If the character is a merchant, you may want to include the inventory of his/her shop on the page. This can be done by creating a subpage <PAGENAME>/shop in which the list of wares is defined and properly formatted. If such a subpage exists, it will automatically be transcluded into the character page.
To prepare the shop information in an easy and consistent manner, it is advised to make use of Template:Table and Template:Inventory (see also the corresponding documentation there). The following example can be used as a guideline (only parts indicated by <...> may be edited).
{{#titleparts:{{FULLPAGENAME}}|1}} offers wares at <XX>% of the regular prices.
{{Table
|Class = "wikitable sortable"
|Head = {{Item|Mode=ShopHead}}
|Content = {{Inventory|Table
|Stock = <Item 1>; <Item 2>; <Item 3>; ...
|Markup = <X.X>
|Markup2 = <X.X>
}}
|Default = ''There are no items in this shop.''
}}
Including spell training
If the character is a spell trainer, you may want to include the offered spells on the page. This can be done by creating a subpage <PAGENAME>/training in which the list of spells is defined and properly formatted. If such a subpage exists, it will automatically be transcluded into the character page.
To prepare the training information in an easy and consistent manner, it is advised to make use of Template:Table and Template:Training (see also the corresponding documentation there). The following example can be used as a guideline (only parts indicated by <...> may be edited).
{{#titleparts:{{FULLPAGENAME}}|1}} teaches spells at <XX>% of the regular prices.
{{Table
|Class = "wikitable sortable"
|Head = {{Spell|Mode=ShopHead}}
|Content = {{Training|Table
|Spells = <Spell 1>; <Spell 2>; <Spell 3>; ...
|Markup = <X.X>
|Markup2 = <X.X>
}}
|Default = ''There are no items in this shop.''
}}
Extracting specific character information for use in other pages
Syntax
You can transclude information from a character page in any other page by using the following syntax:
{{:<pagename>|<mode>|<param1>|<param2>}}
Here, <pagename> is the character's full page name (in main namespace), <mode> determines the type of information to be transcluded, and <param1> & <param2> represent selection parameters required by certain modes.
Modes and parameters
| Mode | Description | Parameter 1 | Parameter 2 |
|---|---|---|---|
| Page | Outputs the full character page. This is the default mode. | none | none |
| TableHead | Outputs the header of a character table (intended for constructing overview tables). | none | none |
| TableEntry | Outputs a table row containing specific character information (intended for constructing overview tables). If a selector is specified in <param1>, output is only generated if the selector of a specific character matches the value of <param2>. If no selector is specified, output is always generated. | one of the following selectors: Type • Attribute | one of the possible values of the specified selector |
View/Edit documentation page