Difference between revisions of "Template:Collapsible section/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(framestyle)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page, please; interwikis at Wikidata -->
 
<!-- Categories go at the bottom of this page, please; interwikis at Wikidata -->
 +
{{Collapse Templates}}
  
 
===Syntax===
 
===Syntax===
Line 14: Line 15:
 
</pre>
 
</pre>
  
To omit the "View by clicking [show]" message below the title, set {{nowrap|{{plaincode|{{thinsp|{{!}}}}note{{thinsp|&#61;}}omit}}}} or {{plaincode|off}} or {{plaincode|exclude}} etc.
+
To omit the "View by clicking [show]" message below the title, set {{para|note|omit}} or <code>off</code> or <code>exclude</code> etc.
  
 
===Example===
 
===Example===
Line 24: Line 25:
 
</pre>
 
</pre>
 
produces:
 
produces:
 +
{{Clear}}
 
{{Collapsible section
 
{{Collapsible section
 
  | title = Example
 
  | title = Example
Line 34: Line 36:
 
* {{tl|Collapse bottom}}
 
* {{tl|Collapse bottom}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
+
<includeonly>{{Sandbox other|
 
| <!-- Categories below this line, please; interwikis at Wikidata -->
 
| <!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Collapse templates]]
 
[[Category:Collapse templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 15:36, 24 April 2020

Syntax

{{Collapsible section
 | framestyle =    <!-- CSS styling applied to section -->
 | titlealign =    <!-- center (default), left or right -->
 | titlestyle =    <!-- CSS styling applied to title -->
 | title = 
 | content = 
 | note =          <!-- set to "omit", "off", "exclude", etc to omit "View by" note, otherwise delete or leave unused -->
}}

To omit the "View by clicking [show]" message below the title, set |note=omit or off or exclude etc.

Example

{{Collapsible section
 | title = Example
 | content = ''{{Lorem ipsum}}''
}}

produces:

See also