Template:Career: Difference between revisions
From Archaelund Wiki
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
|Content4 = <table style="text-align:left; width:100%;"> | |Content4 = <table style="text-align:left; width:100%;"> | ||
<tr><th style="vertical-align:top; width:50%;">Introduced in</th><td style="vertical-align:top;">{{#if:{{{Version|}}}|{{{Version}}}|{{Missing}}}}</td></tr> | <tr><th style="vertical-align:top; width:50%;">Introduced in</th><td style="vertical-align:top;">{{#if:{{{Version|}}}|{{{Version}}}|{{Missing}}}}</td></tr> | ||
<tr><th style="vertical-align:top;">Last update</th><td style="vertical-align:top;">{{#if:{{{VersionUpdate|}}}| | <tr><th style="vertical-align:top;">Last update</th><td style="vertical-align:top;">{{#if:{{{VersionUpdate|}}}|{{{VersionUpdate}}}|−}}</td></tr> | ||
</table> | </table> | ||
}} | }} | ||
Latest revision as of 13:31, 30 July 2025
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
| Name | Prerequired | 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 career as used in the game. Will be displayed in the infobox of the page. | arbitrary text |
| Pagename | Yes | The 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 |
| Translation | No | If the career is named differently in other languages, those names can be listed here. | internationalization string according to the format described in Template:Translation |
| 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 career. Will be displayed in the infobox of the page. | one of the values defined in Template:CareerType (other values are ignored): Basic • Advanced |
| Version | Yes | The 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 |
| VersionUpdate | No | The 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 |
| Category | Yes | The category to which this career belongs to. | one of the values defined in Template:CareerCategory (other values are ignored): Warrior • Wanderer • Scoundrel • Sage |
| Levels | Yes | The total number of levels in this career. | positive number |
| Prerequisites | No | If 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 |
| Related | No | If 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 | |||
| 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 career tables, lists, etc. If nothing is specified, a small version of Image is used instead. | image name (including file extension) |
| Info | |||
| Description | Yes | A 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 |
| 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 *) |
| Stats | |||
| Skills | Yes | The available skills in this career. | a semicolon-separated list of [[Skill]]s |
| Disciplines | No | The available disciplines in this career (relevant for spellcasters only). | a semicolon-separated list of Disciplines |
| CareerBonus | Yes | The 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") |
| BonusTalent | Yes | The 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) |
| BonusDP | Yes | The 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) |
| BonusArmor | Yes | The 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) |
| BonusOther | Yes | The 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
| Mode | Description | Parameter 1 | Parameter 2 |
|---|---|---|---|
| Page | Outputs the full career page. This is the default mode. | none | none |
| TableHead | Outputs the header of a career table (intended for constructing overview tables). | none | none |
| TableEntry | Outputs 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 • Category | one of the possible values of the specified selector |
View/Edit documentation page