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 =
|Quests =
|Factions =
|Level =
<!-- Personal Data -->
|Race =
|Gender =
|Age =
|Aliases =
<!-- Media -->
|Image =
|Icon =
<!-- Info -->
|Description =
|Backstory =
|Notes =
<!-- Interaction -->
|Actions =
|Situational =
|Quotes =
<!-- Stats -->
}}
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) |
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 |