Difference between revisions of "StatListBody"

m (syntax fix + prettier code)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><!--
+
<includeonly>:{{stat<!-- create stat
-->{{#vardefine:string|{{unlink|{{{1}}}}}}}<!-- remove link from parameter
+
-->|{{ambiguate|{{{1}}}}}<!-- removes any disambiguation from the page title
-->:{{stat<!-- create stat
+
-->|link={{{1}}}<!-- link to original page
-->|{{#if:1<!-- trick to strip any whitespace from the string
 
-->|{{#explode:{{#var:string}}|(|0}}}}<!-- get part of string before '('
 
-->|link={{#var:string}}<!-- link to original page
 
 
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
-->}}</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
}}