Difference between revisions of "Template:Hidden section top/doc"

From blackwiki
Jump to navigation Jump to search
imported>Nate 2169
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 35: Line 35:
 
* [[Template:Hidden]]
 
* [[Template:Hidden]]
 
* [[Template:Hidden begin]] and [[Template:Hidden end]]
 
* [[Template:Hidden begin]] and [[Template:Hidden end]]
−
<includeonly>
+
<includeonly>{{Sandbox other||
  
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Archival templates|Hidden section top]]
 
[[Category:Archival templates|Hidden section top]]
 
[[Category:Collapse templates|Hidden section top]]
 
[[Category:Collapse templates|Hidden section top]]
−
</includeonly>
+
}}</includeonly>

Latest revision as of 16:51, 25 April 2020

This template is a wrapper for {{hidden begin}}, and can be used to hide sections. Use with {{Hidden section bottom}}. The section heading defaults to "Click on show to view the contents of this section" but this can be changed with the reason= parameter.

{{hst}} and {{hsb}} are available as shortcuts.

Usage

Default heading text
{{hst}}
Text you would like to hide
{{hsb}}

This produces the following:

Click on show to view the contents of this section

Text you would like to hide

Custom heading text
{{hst|reason=Custom heading text}}
Text you would like to hide
{{hsb}}

This produces the following:

Custom heading text

Text you would like to hide

See also