Difference between revisions of "Template:Infobox/List Skillvals"

From Salem Wiki
Jump to: navigation, search
m (toggle for collapsed)
m
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#ask: [[{{{page|User:©TriMoon™/PropVals testdata}}}]]
+
<includeonly>{{#ask: [[{{{page|Help:Infobox/testdata}}}]]
 
|?arts
 
|?arts
 
|?cloak
 
|?cloak
 
|?faith
 
|?faith
|?frontier
+
|?flora
 
|?hammer
 
|?hammer
 
|?hunting
 
|?hunting
Line 17: Line 17:
 
|format=template
 
|format=template
 
|named args=yes
 
|named args=yes
|userparam=={{{collapsed|}}}
+
|userparam={{{collapsed|no}}}
 
|template=Infobox/List Skillvals/query template
 
|template=Infobox/List Skillvals/query template
 
|link=none
 
|link=none
 
}}</includeonly><noinclude>{{documentation}}</noinclude>
 
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 02:15, 19 February 2016


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.

Examples

  1. {{Infobox/List Skillvals}} gives:
    Provided skill proficiency:
    Nameval
  2. {{Infobox/List Skillvals|page=Help:Infobox/testdata|collapsed=y}} gives:
    Provided skill proficiency:
    Nameval