Template:Infobox/List Skillvals
From Salem Wiki
{{<query template> |#querycondition=User:©TriMoon™/PropVals testdata |#querylimit=50 |#resultoffset=0 |#rowcount=1 |1=Help:Infobox/testdata |Arts= |Cloak= |Faith= |Frontier= |Hammer= |Hunting= |Law= |Mines= |Pots= |Sparks= |Stocks= |Sugar= |Thread= |Natural= |Perennial= |#=0
|#rownumber=1}}
Template documentation (for the template shown above, sometimes hidden or invisible)
Description
- This template is used to automatically list the Skill Values of a page using an SMW-Query.
- It uses {{Infobox/List Skillvals/query template}} for output formating.
- This template is used by {{Infobox}}.
- See these pages for more SMW-documentation:
Syntax
- Type the below code somewhere on a page:
{{Infobox/List Skillvals |page= }}
- It can accept 2 named parameters:
- page
- Selects the page to fetch Skill Values from.
- This parameter defaults to the test-data page.
- collapsed
- If assigned anything other than 'no', it will be collapsed by default.
- It defaults to 'no'
- This parameter will be propagated as userparam to the result formater template.
- page
Examples
- {{Infobox/List Skillvals}} gives:
{{<query template> |#querycondition=User:©TriMoon™/PropVals testdata |#querylimit=50 |#resultoffset=0 |#rowcount=1 |1=Help:Infobox/testdata |Arts= |Cloak= |Faith= |Frontier= |Hammer= |Hunting= |Law= |Mines= |Pots= |Sparks= |Stocks= |Sugar= |Thread= |Natural= |Perennial= |#=0 |#rownumber=1}} - {{Infobox/List Skillvals|page=Help:Infobox/testdata|collapsed=y}} gives:
{{<query template> |#querycondition=Help:Infobox/testdata |#querylimit=50 |#resultoffset=0 |#rowcount=1 |1=Help:Infobox/testdata |Arts= |Cloak= |Faith= |Frontier= |Hammer= |Hunting= |Law= |Mines= |Pots= |Sparks= |Stocks= |Sugar= |Thread= |Natural= |Perennial= |#=0 |#rownumber=1}}
Visit Template:Infobox/List Skillvals/doc to edit this text! (How does this work?)