Difference between revisions of "User:Trang Oul/Sandbox/Template:Skill tab bonus"

From Basin Wiki
Jump to navigation Jump to search
 
Line 8: Line 8:
  
 
=== Usage ===
 
=== Usage ===
−
<code><nowiki>{{Skill tab bonus|<skill tab ID>|<bonus value>|[classonly=0]}}</nowiki></code>
+
<code><nowiki>{{Skill tab bonus|<skill tab ID>|<bonus value>}}</nowiki></code>
  
 
==== Parameters ====
 
==== Parameters ====
Line 15: Line 15:
 
; <code>2</code> (required)
 
; <code>2</code> (required)
 
: Bonus value. Should be with plus sign. Can be passed as a range.
 
: 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 ====
 
==== Examples ====
Line 27: Line 23:
 
: <code><nowiki>{{Skill tab bonus|13|{{Range||2|4|signed=1}}}}</nowiki></code>
 
: <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}}}}
 
: {{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
 
; Unknown skill tab
−
: <code><nowiki>{{Skill tab bonus|99|+3|classonly=1}}</nowiki></code>
+
: <code><nowiki>{{Skill tab bonus|99|+3}}</nowiki></code>
−
: {{User:Trang Oul/Sandbox/Template:Skill tab bonus|99|+3|classonly=1}}
+
: {{User:Trang Oul/Sandbox/Template:Skill tab bonus|99|+3}}
  
 
</noinclude><includeonly>{{#switch: {{{1|}}}
 
</noinclude><includeonly>{{#switch: {{{1|}}}

Latest revision as of 06:46, 5 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, Key used as key (matched with StrSkillTab1, StrSkillTab2, StrSkillTab3 from charstats.txt))

To be done manually:

  • Add links to skill tabs

Usage

{{Skill tab bonus|<skill tab ID>|<bonus value>}}

Parameters

1 (required)
Skill tab ID.
2 (required)
Bonus value. Should be with plus sign. Can be passed as a range.

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
Unknown skill tab
{{Skill tab bonus|99|+3}}
+3 to 99