Template:CareerBonus

From Archaelund Wiki
Revision as of 19:46, 29 December 2023 by MikeB (talk | contribs) (Created page with "<onlyinclude><includeonly>{{#if:{{{1|}}}|{{#switch:{{{2|}}} |1 = {{#explode:{{{1}}}|,|0}} |2 = {{#explode:{{{1}}}|,|1}} |3 = {{#explode:{{{1}}}|,|2}} |4 = {{#explode:{{{1}}}|,|3}} |5 = {{#explode:{{{1}}}|,|4}} |6 = {{#explode:{{{1}}}|,|5}} |7 = {{#explode:{{{1}}}|,|6}} |8 = {{#explode:{{{1}}}|,|7}} |9 = {{#explode:{{{1}}}|,|8}} |d1 = {{Difference|{{#explode:{{{1}}}|,|0}}}} |d2 = {{Difference|{{#explode:{{{1}}}|,|1}}}} |d3 = {{Difference|{{#explode:{{{1}}}|,|2}}}} |d4 =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This template generates various output formats from raw career bonus input.

Usage

{{CareerBonus|<career bonus input>|<format>}}

Make sure that <career bonus input> is formatted correctly according to the rules given below, otherwise error messages may be generated.

Format options

FormatDescriptionInputExample output
1...9Extracts the value of the ith entry (i = 1...9) in the career bonus input.vector of 9 comma-separated numbers, representing career bonus values (e.g. "2,5,5,3,3,0,1,2,4")2
d1...d9Extracts the value of the ith entry (i = 1...9) in the career bonus input and formats it as a bonus/malus using Template:Difference.vector of 9 comma-separated numbers, representing career bonus values (e.g. "2,5,5,3,3,0,1,2,4")+2

In the above-mentioned vector of 9 comma-separated numbers, each position/index corresponds to a career bonus. See the subsequent list for details.

Career bonus names

IndexName
1Light Weapons
2Hand Weapons
32-Handed Weapons
4Unarmed Fighting
5Ranged Weapons
6Critical Strike
7Dodge
8Skill Points
9Health Points

To extract the individual career bonus names use the following syntax:

{{CareerBonus/names|<career bonus index>}}

Abbreviated names can be produced for each career bonus by using specific double indices:

IndexName
11Light
22Hand
332-Hand
44Unarmed
55Ranged
66Critical
77Dodge
88SkP
99HP

View/Edit documentation page