Difference between revisions of "StatListBody"

m (hotfix to ensure Armor (stat) works as intended)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
+
<includeonly>:{{stat<!-- create stat
-->{{#vardefine:string<!-- define variable
+
-->|{{ambiguate|{{{1}}}}}<!-- removes any disambiguation from the page title
-->|{{#explode:{{{1}}}|(|0}}}}<!-- remove characters before open bracket
+
-->|link={{{1}}}<!-- link to original page
-->:{{stat<!-- create stat
+
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
-->|{{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>
 

Latest revision as of 21:52, 19 August 2023

Description[edit]

Creates a body for a Stat list using the parameters provided in the original inline query.

Usage[edit]

{{#ask: [[Category:Primary Basket Stats]]
|format=template
|template=StatListBody
}}