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

NameRequiredDescriptionValues
ModeYesDetermines the mode of execution of the template (see below). Changing the predefined value may lead to unexpected behavior.{{{1|Page}}} (should not be changed)
SelectYesUsed 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
NameYesThe 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
PagenameYesThe 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
StatusNoIf 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
TypeYesThe 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
AttributesNoOne 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
LocationsYesThe 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
FactionsNoIf 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
QuestsNoIf 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
LevelYesThe level of the character. Will be displayed in the infobox of the page.positive number
Media
ImageYesThe image (PNG or JPG) to be displayed in the infobox of the page.image name (including file extension)
IconNoThe 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

ModeDescriptionSelector
PageOutputs the full character page. This is the default mode.none
TableHeadOutputs the header of a character table (intended for constructing overview tables).none
TableEntryTypeOutputs 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
TableEntryAttrOutputs 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