Difference between revisions of "User:Jon/Expandbox"

From Nottinghack Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div {{#switch: lc:{{{expanded}}}|yes=class="mw-collapsible"|#default=class="mw-collapsible mw-collapsed"> }}
 
{{{nohide}}}
 
<div class="mw-collapsible-content">{{{1|{{{hide}}} }}}</div>
 
</div><noinclude>
 
  
==Documentation==
 
Makes part of page hidden and expandable.
 
  
===Examples===
+
{{expand|This is hidden sometimes.}}
Simple no parameters.
+
<br />
 
+
{{expand|hide=This is hidden sometimes.|nohide='''Bold'''|expanded=Yes}}
:<code><nowiki>{{expand|This is hidden.}}</nowiki></code>
 
 
 
:{{expand|This is hidden.}}
 
 
 
Expanded with parameters.
 
 
 
:<code><nowiki>{{expand|This is hidden.|nohide=This can be.|expanded=yes}}</nowiki></code>
 
 
 
:{{expand|This is hidden.|nohide=This can be.|expanded=yes}}
 
 
 
===Parameters===
 
;hide
 
:Part of page to hide. Also works as first parameter unnamed.
 
;nohide
 
:Part of page not hidden (goes first, good for titles).
 
;expanded
 
:Defaults to hidden, to default to expanded use 'expanded=yes'
 
 
 
[[Category:Utility Templates]]
 
</noinclude>
 

Latest revision as of 12:20, 27 February 2019


This is hidden sometimes.


Bold
This is hidden sometimes.