Difference between revisions of "StatListBody"
Stratonian (talk | contribs) m (unlink template) |
Stratonian (talk | contribs) m (hotfix to ensure Armor (stat) works as intended) |
||
Line 1: | Line 1: | ||
− | <includeonly>:{{stat|{{unlink|{{{1}}}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> | + | <includeonly><!-- |
+ | -->{{#vardefine:string<!-- define variable | ||
+ | -->|{{#explode:{{{1}}}|(|0}}}}<!-- remove characters before open bracket | ||
+ | -->:{{stat<!-- create stat | ||
+ | -->|{{unlink<!-- remove links from query | ||
+ | -->|{{#if:{{#var:string}}|{{#var:string}}}}<!-- trick to strip any whitespace from the string | ||
+ | -->|link={{{1}}}<!-- still link to the original page | ||
+ | -->}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> |
Revision as of 11:58, 15 August 2023
Description
Creates a body for a Stat list using the parameters provided in the original inline query.
Usage
{{#ask: [[Category:Primary Basket Stats]] |format=template |template=StatListBody }}