Difference between revisions of "User:Trang Oul/Sandbox/Template:Skill tab bonus"
< User:Trang Oul | Sandbox
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#switch: {{{1|}}} | 1 = {{{2|}}} to Javelin and Spear Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Amazon}} }} |...") |
|||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#switch: {{{1|}}} | + | <noinclude> |
| + | === Sources === | ||
| + | Built automatically from: | ||
| + | * <code>charstats.txt</code> (cols: <code>StrSkillTab1</code>, <code>StrSkillTab2</code>, <code>StrSkillTab3</code> - keys for string labels (whole) and keys for skill tabs (trailing numbers)) | ||
| + | * <code>data\local\lng\strings</code> (string label values, <code>Key</code> used as key (matched with <code>StrSkillTab1</code>, <code>StrSkillTab2</code>, <code>StrSkillTab3</code> from <code>charstats.txt</code>)) | ||
| + | To be done manually: | ||
| + | * Add links to skill tabs | ||
| + | |||
| + | === Usage === | ||
| + | <code><nowiki>{{Skill tab bonus|<skill tab ID>|<bonus value>|[classonly=0]}}</nowiki></code> | ||
| + | |||
| + | ==== Parameters ==== | ||
| + | ; <code>1</code> (required) | ||
| + | : Skill tab ID. | ||
| + | ; <code>2</code> (required) | ||
| + | : Bonus value. Should be with plus sign. Can be passed as a range. | ||
| + | ; <code>classonly</code> (optional) | ||
| + | : Flag to display class restriction text. Must be strictly <code>0</code> or <code>1</code>. | ||
| + | :* <code>0</code> – Disabled (default). | ||
| + | :* <code>1</code> – Enabled. | ||
| + | |||
| + | ==== Examples ==== | ||
| + | ; Fixed bonus | ||
| + | : <code><nowiki>{{Skill tab bonus|6|+3}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Skill tab bonus|6|+3}} | ||
| + | ; Bonus as a range | ||
| + | : <code><nowiki>{{Skill tab bonus|13|{{Range||2|4|signed=1}}}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Skill tab bonus|13|{{User:Trang Oul/Sandbox/Template:Range||2|4|signed=1}}}} | ||
| + | ; With class restriction | ||
| + | : <code><nowiki>{{Skill tab bonus|24|+3|classonly=1}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Skill tab bonus|24|+3|classonly=1}} | ||
| + | ; Unknown skill tab | ||
| + | : <code><nowiki>{{Skill tab bonus|99|+3|classonly=1}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Skill tab bonus|99|+3|classonly=1}} | ||
| + | |||
| + | </noinclude><includeonly>{{#switch: {{{1|}}} | ||
| 1 = {{{2|}}} to Javelin and Spear Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Amazon}} }} | | 1 = {{{2|}}} to Javelin and Spear Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Amazon}} }} | ||
| 2 = {{{2|}}} to Passive and Magic Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Amazon}} }} | | 2 = {{{2|}}} to Passive and Magic Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Amazon}} }} | ||
| Line 24: | Line 59: | ||
| 23 = {{{2|}}} to Chaos Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Warlock}} }} | | 23 = {{{2|}}} to Chaos Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Warlock}} }} | ||
| 24 = {{{2|}}} to Demon Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Warlock}} }} | | 24 = {{{2|}}} to Demon Skills{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|Warlock}} }} | ||
| − | | #default = {{{2|}}} to {{{1|}}}{{#ifexpr: {{{classonly|0}}} |  | + | | #default = {{{2|}}} to {{{1|}}}{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only}} }} |
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 21:45, 4 November 2026
Sources
Built automatically from:
charstats.txt(cols:StrSkillTab1,StrSkillTab2,StrSkillTab3- keys for string labels (whole) and keys for skill tabs (trailing numbers))data\local\lng\strings(string label values,Keyused as key (matched withStrSkillTab1,StrSkillTab2,StrSkillTab3fromcharstats.txt))
To be done manually:
- Add links to skill tabs
Usage
{{Skill tab bonus|<skill tab ID>|<bonus value>|[classonly=0]}}
Parameters
1(required)- Skill tab ID.
2(required)- Bonus value. Should be with plus sign. Can be passed as a range.
classonly(optional)- Flag to display class restriction text. Must be strictly
0or1.0– Disabled (default).1– Enabled.
Examples
- Fixed bonus
{{Skill tab bonus|6|+3}}- +3 to Combat Skills
- Bonus as a range
{{Skill tab bonus|13|{{Range||2|4|signed=1}}}}- +(2-4) to Cold Skills
- With class restriction
{{Skill tab bonus|24|+3|classonly=1}}- +3 to Demon Skills (Warlock Only)
- Unknown skill tab
{{Skill tab bonus|99|+3|classonly=1}}- +3 to 99 (Class Only)