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

From Basin Wiki
Jump to navigation Jump to search
m
 
(7 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
* <code>skilldesc.txt</code> (cols: <code>skilldesc</code> - name (matched with <code>skill</code> from <code>skills.txt</code> after casefolding), <code>str name</code> - key for string label)
 
* <code>skilldesc.txt</code> (cols: <code>skilldesc</code> - name (matched with <code>skill</code> from <code>skills.txt</code> after casefolding), <code>str name</code> - key for string label)
 
* <code>data\local\lng\strings</code> (string label values, <code>Key</code> used as key (matched with <code>str name</code> from <code>skilldesc.txt</code>))
 
* <code>data\local\lng\strings</code> (string label values, <code>Key</code> used as key (matched with <code>str name</code> from <code>skilldesc.txt</code>))
 +
Only skills with labels are included.
 +
  
 
=== Usage ===
 
=== Usage ===
Line 104: Line 106:
 
|  34 | Lightning Strike          = [[Lightning Strike]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|ama}} }}
 
|  34 | Lightning Strike          = [[Lightning Strike]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|ama}} }}
 
|  35 | Lightning Fury            = [[Lightning Fury]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|ama}} }}
 
|  35 | Lightning Fury            = [[Lightning Fury]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|ama}} }}
−
|  36 | Fire Bolt                = [[Fire Bolt]]{{#if: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|sor}} }}
+
|  36 | Fire Bolt                = [[Fire Bolt]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|sor}} }}
 
|  37 | Warmth                    = [[Warmth]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|sor}} }}
 
|  37 | Warmth                    = [[Warmth]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|sor}} }}
 
|  38 | Charged Bolt              = [[Charged Bolt]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|sor}} }}
 
|  38 | Charged Bolt              = [[Charged Bolt]]{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|sor}} }}
Line 350: Line 352:
 
| 425 | Korlic's Cold Pierce      = Conviction
 
| 425 | Korlic's Cold Pierce      = Conviction
 
| 427 | Korlic's Bash            = Bash
 
| 427 | Korlic's Bash            = Bash
−
| #default                        = {{{1}}}{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only}} }}
+
| #default                        = {{{1}}}{{#ifexpr: {{{classonly|0}}} |&#32;{{User:Trang Oul/Sandbox/Template:Class only|{{{classonly|}}}}} }}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 19:03, 1 November 2026

Sources

Built automatically from:

  • skills.txt (cols: skill - name, Id/*Id - ID, charclass - class)
  • skilldesc.txt (cols: skilldesc - name (matched with skill from skills.txt after casefolding), str name - key for string label)
  • data\local\lng\strings (string label values, Key used as key (matched with str name from skilldesc.txt))

Only skills with labels are included.


Usage

{{Skill name|<skill ID or tech name>|[classonly=0]}}

Parameters

1 (required)
Skill ID or technical name from skills.txt (also used as a skill property value).
classonly (optional)
Flag to display class restriction text. Must be strictly 0 or 1.
  • 0 – Disabled (default).
  • 1 – Enabled.

Examples

Skill name by ID
{{Skill name|6}}
Magic Arrow


{{Skill name|371}}
Mark of the Bear
Skill name by technical name (notice that some differ from the in-game labels)
{{Skill name|Magic Arrow}}
Magic Arrow


{{Skill name|Sigil Death}}
Sigil: Death


{{Skill name|Delerium Change}}
Delirium


{{Skill name|Townportal O Skill}}
Town Portal


{{Skill name|Tainted Fire Bolt}}
Fire Bolt
Skill name with class restriction text
{{Skill name|6|classonly=1}}
Magic Arrow (Amazon Only)


{{Skill name|Sigil Death|classonly=1}}
Fire Ball (Sorceress Only)


{{Skill name|Townportal O Skill|classonly=1}} - non-class skill, so no restriction is displayed
Town Portal
Skill not defined
{{Skill name|9999|classonly=1}}
9999 (Class Only)


{{Skill name|Other Skill|classonly=1}}
Other Skill (Class Only)