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

From Basin Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 350: Line 350:
 
| 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}}} | {{User:Trang Oul/Sandbox/Template:Class only}} }}
+
| #default                        = {{{1}}}{{#ifexpr: {{{classonly|0}}} | {{User:Trang Oul/Sandbox/Template:Class only|{{{classonly|}}}}} }}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 18:15, 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))

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


{{Skill name|Other Skill|classonly=1}}
Other Skill