Template:Character/doc
From Archaelund Wiki
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}}}
|Select = {{{2|}}}
<!-- Quick Facts -->
|Name =
|Pagename =
|Status =
|Type =
|Attributes =
|Locations =
|Factions =
|Quests =
|Level =
<!-- Media -->
|Image =
|Icon =
<!-- Personal Data -->
|Race =
|Gender =
|Age =
|Aliases =
<!-- Interaction -->
|Dialogue =
|Actions =
|Quotes =
<!-- Info -->
|Description =
|Backstory =
|Notes =
}}
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) |
| Select | 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) |
| 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 |
| 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 |
| Level | Yes | The level of the character. Will be displayed in the infobox of the page. | positive number |
| 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) |
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>|<select>}}
Here, <pagename> is the character's full page name (in main namespace), <mode> determines the type of information to be transcluded, and <select> represents a selector required by certain modes.
Modes and selectors
| Mode | Description | Selector |
|---|---|---|
| Page | Outputs the full character page. This is the default mode. | none |
| TableHead | Outputs the header of a character table (intended for constructing overview tables). | none |
| TableEntryType | Outputs a table row containing specific character information (intended for constructing overview tables). If a character type is specified in the selector, output is only generated if the character matches this type. If no selector is specified, output is always generated. | <select> = one of the following character types: Main • Side • Generic • Mentioned |
| TableEntryAttr | Outputs a table row containing specific character information (intended for constructing overview tables). If a character attribute is specified in the selector, output is only generated if the character carries this attribute. If no selector is specified, no output is generated. | <select> = one of the following character attributes: Merchant • Healer • Trainer • Transport • Companion |