Difference between revisions of "Template:Collapsible sections option/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(sandbox handling)
imported>Sardanaphalus
(Generic template demo, hlist, \sandbox)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
+
<!----Categories where indicated at the bottom of this page, please; interwikis to Wikidata---->
 +
{{Generic template demo |list |example |default}}
 +
 
 
===Usage===
 
===Usage===
 
<pre>
 
<pre>
Line 14: Line 16:
 
<pre>
 
<pre>
 
{{Collapsible sections option
 
{{Collapsible sections option
| list = overview, "two-word groupname", concepts, details, related
+
| list = {{hlist |overview |"two-word groupname" |concepts |details |related}}
 
| example = two-word groupname
 
| example = two-word groupname
 
| default = overview
 
| default = overview
Line 21: Line 23:
 
produces:
 
produces:
 
<div style="clear:both;background:whitesmoke;">
 
<div style="clear:both;background:whitesmoke;">
{{Collapsible sections option{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
+
{{Collapsible sections option{{\sandbox}}}}
| list = overview, "two-word groupname", concepts, details, related
+
| list = {{hlist |overview |"two-word groupname" |concepts |details |related}}
 
| example = two-word groupname
 
| example = two-word groupname
 
| default = overview
 
| default = overview
Line 33: Line 35:
 
* [[Help:Collapsing]]
 
* [[Help:Collapsing]]
  
<includeonly>
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
| <!----Categories below this line, please:---->
 
[[Category:Wikipedia metatemplates]]
 
[[Category:Wikipedia metatemplates]]
  
Line 41: Line 43:
 
[[ja:Template:Collapsible sections option]]
 
[[ja:Template:Collapsible sections option]]
 
[[pt:Predefinição:Collapsible sections option]]
 
[[pt:Predefinição:Collapsible sections option]]
}}
+
}}</includeonly>
</includeonly>
 

Revision as of 12:45, 26 October 2014

  1. redirect Template:Parameter names example

Usage

{{Collapsible sections option
| list = 
| example = 
| default = 
}}

Parameters example and default are optional.

Example

{{Collapsible sections option
| list = {{hlist |overview |"two-word groupname" |concepts |details |related}}
| example = two-word groupname
| default = overview
}}

produces:

{{Collapsible sections optionTemplate:\sandbox}}

| list =
  • overview
  • "two-word groupname"
  • concepts
  • details
  • related

| example = two-word groupname | default = overview }}

See also