|
|
Line 1: |
Line 1: |
− | {{#vardefine:category|Skills}}<!-- define category variable
| + | |
− | -->{{#vardefine:related|<!-- define related pages
| |
− | -->{{#switch:{{#var:category}}
| |
− | |Skills=<!-- Category:Skills
| |
− | -->{{#ask: [[Category:{{#var:category}}]]<!-- get pages in corresponding category
| |
− | -->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists
| |
− | -->|[[Has stat::{{{2}}}]]}}<!-- only get pages with corresponding stat -->
| |
− | | ?Has icon
| |
− | | ?Has skill name
| |
− | | ?Has cast time
| |
− | | ?Has range
| |
− | | ?Has cost
| |
− | | ?Has cost type
| |
− | | ?Has cooldown
| |
− | | ?Is for hero
| |
− | | ?Has mastery
| |
− | | ?Has skill order
| |
− | | sort=Has skill order
| |
− | | order=asc
| |
− | | format=template
| |
− | | template=SkillListTableBody
| |
− | | introtemplate=SkillListTableHeader
| |
− | | outrotemplate=SkillListTableFooter
| |
− | }}}}}}
| |
− | {{#if:{{#var:related}}<!-- if related pages exist
| |
− | -->|{{#var:related}}<!-- print related pages
| |
− | -->|'''No related {{{1}}}.'''}}<!-- else print no related pages
| |
− | -->
| |