Difference between revisions of "Template:Infobox/List Skillvals/query template/doc"
From Salem Wiki
m (→Description: adding link to mw:Manual:Collapsible elements) |
m (Protected "Template:Infobox/List Skillvals/query template/doc": Documentation of key-feature ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
:*[http://semantic-mediawiki.org/wiki/Help:Template_format Help:Template format]. | :*[http://semantic-mediawiki.org/wiki/Help:Template_format Help:Template format]. | ||
:*[http://semantic-mediawiki.org/wiki/Help:Inline_queries Help:Inline queries] to see how an inline query can use this to format the display of query results. | :*[http://semantic-mediawiki.org/wiki/Help:Inline_queries Help:Inline queries] to see how an inline query can use this to format the display of query results. | ||
+ | :*[[mw:Extension:FormatNum|Extension:FormatNum]] | ||
+ | ==Syntax== | ||
+ | It accepts 2 named parameters to control the collapsed state. | ||
+ | *'''userparam''' | ||
+ | *:If assigned anything other than 'no', it will be collapsed by default. | ||
+ | *'''collapsed''' | ||
+ | *:This parameter will only be checked if '''userparam''' has an empty value. | ||
+ | *:If assigned anything other than 'no', it will be collapsed by default. | ||
+ | *:It defaults to 'no' | ||
<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:22, 25 July 2012
Description
- This template is used to format the output-results of the SMW-Query used in {{Infobox/List Skillvals}}.
- See these pages for more documentation:
- Manual:Collapsible elements
- Help:Selecting pages
- Help:Displaying information
- Help:Template format.
- Help:Inline queries to see how an inline query can use this to format the display of query results.
- Extension:FormatNum
Syntax
It accepts 2 named parameters to control the collapsed state.
- userparam
- If assigned anything other than 'no', it will be collapsed by default.
- collapsed
- This parameter will only be checked if userparam has an empty value.
- If assigned anything other than 'no', it will be collapsed by default.
- It defaults to 'no'