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

From Salem Wiki
Jump to: navigation, search
m (testdata page has moved)
m (Protected "Template:Infobox/List Skillvals/doc": Documentation of key-feature ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
:This template is used to automatically list the [[:Category:Skill Values|Skill Values]] of a page using an SMW-Query.
+
:This template is used to automatically list the [[Proficiencies|Skill Values]] of a page using an SMW-Query.
 
:It uses {{t|Infobox/List Skillvals/query template}} for output formating.
 
:It uses {{t|Infobox/List Skillvals/query template}} for output formating.
 
:This template is used by {{t|Infobox}}.
 
:This template is used by {{t|Infobox}}.
Line 14: Line 14:
 
|page=
 
|page=
 
}}</pre>
 
}}</pre>
:It can accept one parameter, '''''page''''', to select the page to fetch [[:Category:Skill Values|Skill Values]] from.
+
:It can accept 2 named parameters:
:This parameter defaults to the [[Help:Infobox/testdata|test-data]] page.
+
:*'''''page'''''
 +
:*:Selects the page to fetch [[Proficiencies|Skill Values]] from.
 +
:*:This parameter defaults to the [[Help:Infobox/testdata|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==
 
==Examples==
 
<ol>
 
<ol>
 
<li>{{t|Infobox/List Skillvals}} gives:<br/>{{Infobox/List Skillvals}}</li>
 
<li>{{t|Infobox/List Skillvals}} gives:<br/>{{Infobox/List Skillvals}}</li>
<li>{{t|Infobox/List Skillvals|page<nowiki>=</nowiki>Help:Infobox/testdata}} gives:<br/>{{Infobox/List Skillvals|page=Help:Infobox/testdata}}</li>
+
<li>{{t|Infobox/List Skillvals|page<nowiki>=</nowiki>Help:Infobox/testdata|collapsed<nowiki>=</nowiki>y}} gives:<br/>{{Infobox/List Skillvals|page=Help:Infobox/testdata|collapsed=y}}</li>
 
</ol>
 
</ol>
 
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself -->
 
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself -->
 
[[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]]
 
[[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]]
 
</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 18:21, 25 July 2012

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