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

From Salem Wiki
Jump to: navigation, search
m (Protected "Template:Infobox/List Skillvals/query template/doc": Documentation of key-feature ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
:*[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]]
 
:*[[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:

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'