Template:Collapsible lists option: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
(Created page with "* This template includes {{tl|collapsible list}}s. <!-- ----------Different texts depending on template's default state:---------- -->By default, all lists are <!-- -->...")
 
No edit summary
 
Line 16: Line 16:
   -->{{#if:{{{example<includeonly>|</includeonly>}}}
   -->{{#if:{{{example<includeonly>|</includeonly>}}}
     | <br/><noinclude>[</noinclude> For example, <code style="font-size:95%; white-space:nowrap;"><nowiki>{{</nowiki><noinclude>[Template name]</noinclude><includeonly>{{PAGENAME}}</includeonly> <nowiki>|</nowiki>expanded={{{example}}}<nowiki>}}</nowiki></code> or <code style="font-size:95%; white-space:nowrap;"><nowiki>{{</nowiki><noinclude>[Template name]</noinclude><includeonly>{{PAGENAME}}</includeonly> <nowiki>|</nowiki>{{{example}}}<nowiki>}}</nowiki></code>}}
     | <br/><noinclude>[</noinclude> For example, <code style="font-size:95%; white-space:nowrap;"><nowiki>{{</nowiki><noinclude>[Template name]</noinclude><includeonly>{{PAGENAME}}</includeonly> <nowiki>|</nowiki>expanded={{{example}}}<nowiki>}}</nowiki></code> or <code style="font-size:95%; white-space:nowrap;"><nowiki>{{</nowiki><noinclude>[Template name]</noinclude><includeonly>{{PAGENAME}}</includeonly> <nowiki>|</nowiki>{{{example}}}<nowiki>}}</nowiki></code>}}
<noinclude>[[Category:List templates]]</noinclude>

Latest revision as of 14:50, 30 May 2014

s. By default, all lists are collapsed.
To show all lists expanded, use {{Template name |expanded=all}} or {{Template name |all}}
To show one particular list expanded while the others remain collapsed, use {{[Template name] |expanded=listname}} ...or... {{[Template name] |listname}} ...where listname is one of {{{listnames}}}. (Omit any speech or quotemarks.)
[ For example, {{[Template name] |expanded={{{example}}}}} or {{[Template name] |{{{example}}}}}