Difference between revisions of "User:Trang Oul/Sandbox/Template:Skill name"
< User:Trang Oul | Sandbox
Jump to navigation
Jump to search
m |
|||
| (8 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 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}}} | {{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 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 withskillfromskills.txtafter casefolding),str name- key for string label)data\local\lng\strings(string label values,Keyused as key (matched withstr namefromskilldesc.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
0or1.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)