Template:Career: Difference between revisions

From Archaelund Wiki
No edit summary
No edit summary
Line 67: Line 67:
<th style="width:5em;">Discipline Points</th>
<th style="width:5em;">Discipline Points</th>
<th style="width:5em;">Armor Training</th>
<th style="width:5em;">Armor Training</th>
<th style="width:5em;">Other</th>
<th style="width:10em;">Other</th>
</tr>
</tr>
<tr>
<tr>

Revision as of 13:17, 24 February 2024

Description

This is the main template for all career pages. It determines the layout of the individual page and provides functionality for extracting specific career information for use in other pages.

Usage

{{Career
|Mode = {{{1|Page}}}
|Param1 = {{{2|}}}
|Param2 = {{{3|}}}

<!-- Quick Facts -->
|Name = 
|Pagename = 
|Translation = 
|Status = 
|Type = 
|Version = 
|VersionUpdate = 
|Category = 
|Levels = 
|Prerequisites = 
|Related = 

<!-- Media -->
|Image = 
|Icon = 

<!-- Info -->
|Description = 
|Notes = 

<!-- Stats -->
|Skills = 
|Disciplines = 
|CareerBonus = 
|BonusTalent = 
|BonusDP = 
|BonusArmor = 
|BonusOther = 
}}

Parameters

NamePrerequiredDescriptionValues
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)
Param1YesUsed 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)
Param2YesUsed 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
NameYesThe name of the career as used in the game. Will be displayed in the infobox of the page.arbitrary text
PagenameYesThe title of the career 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
TranslationNoIf the career is named differently in other languages, those names can be listed here.internationalization string according to the format described in Template:Translation
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 career. Will be displayed in the infobox of the page.one of the values defined in Template:CareerType (other values are ignored): Basic • Advanced
VersionYesThe game version in which the career was first introduced. Will be displayed in the infobox of the page.version number in the form X.Y.Z
VersionUpdateNoThe game version in which the career was last updated. Will be displayed in the infobox of the page.version number in the form X.Y.Z
CategoryYesThe category to which this career belongs to.one of the values defined in Template:CareerCategory (other values are ignored): Warrior • Wanderer • Scoundrel • Sage
LevelsYesThe total number of levels in this career.positive number
PrerequisitesNoIf specific prerequisites have to be fulfilled to choose this career, they can be listed here. Will be displayed in the infobox of the page.a semicolon-separated list of prerequisites
RelatedNoIf other careers are in some way related to this one, they can be listed here. Will be displayed in the infobox of the page.a semicolon-separated list of [[Career]]s
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 career tables, lists, etc. If nothing is specified, a small version of Image is used instead.image name (including file extension)
Info
DescriptionYesA concise description of the career itself. Is used as an introductory paragraph and should not be too excessive (2−3 sentences are usually enough).arbitrary text
NotesNoAny kind of ancillary information (which does not seem appropriate anywhere else) can be provided here.arbitrary text, ideally formatted as a bullet list (using *)
Stats
SkillsYesThe available skills in this career.a semicolon-separated list of [[Skill]]s
DisciplinesNoThe available disciplines in this career (relevant for spellcasters only).a semicolon-separated list of Disciplines
CareerBonusYesThe stats bonus granted at each level of the career. See Template:CareerBonus for further information.a vector of 9 comma-separated numbers (e.g. "2,5,5,3,3,0,1,2,4")
BonusTalentYesThe sequence (in ascending level order) of Talents granted at specific levels of the career.a semicolon-separated list of [[Talents]]s (if there's no bonus at a specific level, leave the corresponding entry in the list blank)
BonusDPYesThe sequence (in ascending level order) of Discipline Points granted at specific levels of the career.a semicolon-separated list of numbers (if there's no bonus at a specific level, set the corresponding entry in the list to zero)
BonusArmorYesThe sequence (in ascending level order) of additional points in Armor Training granted at specific levels of the career.a semicolon-separated list of numbers (if there's no bonus at a specific level, set the corresponding entry in the list to zero)
BonusOtherYesThe sequence (in ascending level order) of other bonuses granted at specific levels of the career.a semicolon-separated list of arbitrary entries (if there's no bonus at a specific level, leave the corresponding entry in the list blank)

Extracting specific career information for use in other pages

Syntax

You can transclude information from a career page in any other page by using the following syntax:

{{:<pagename>|<mode>|<param1>|<param2>}}

Here, <pagename> is the career'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

ModeDescriptionParameter 1Parameter 2
PageOutputs the full career page. This is the default mode.nonenone
TableHeadOutputs the header of a career table (intended for constructing overview tables).nonenone
TableEntryOutputs a table row containing specific career information (intended for constructing overview tables). If a selector is specified in <param1>, output is only generated if the selector of a specific career matches the value of <param2>. If no selector is specified, output is always generated.one of the following selectors: Type • Categoryone of the possible values of the specified selector

View/Edit documentation page