Template:Hidden: Difference between revisions

From FrathWiki
Jump to navigationJump to search
(Created page with "<includeonly><div class="NavFrame collapsed" style="border:1px solid black"><div class="NavHead" style="font-weight:bold; background:transparent; text-align:center">{{{header|{{{...")
 
m (cat)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><div class="NavFrame collapsed" style="border:1px solid black"><div class="NavHead" style="font-weight:bold; background:transparent; text-align:center">{{{header|{{{1}}}}}}</div>
<includeonly><div class="toccolours mw-collapsible mw-collapsed" style="border:1px solid black"><div style="font-weight:bold; background:transparent; text-align:center">{{{header|{{{1}}}}}}</div>
<div class="NavContent" style="font-weight:normal; background-color:transparent; text-align:left">{{{content|{{{contents|{{{2}}}}}}}}}</div></div></includeonly><noinclude>
<div class="mw-collapsible-content" style="font-weight:normal; background-color:transparent; text-align:left">{{{content|{{{contents|{{{2}}}}}}}}}</div></div></includeonly><noinclude>


This template makes a box with a header and a ''show/hide'' button, which shows the contents (e.g. a text).
This template makes a box with a header and an ''expand/collapse'' button, which shows the contents (e.g. a text).


==Example==
==Example==
Line 15: Line 15:
{{Hidden|Title|This is the text that appears when the box is opened.}}
{{Hidden|Title|This is the text that appears when the box is opened.}}


[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 01:10, 5 October 2014


This template makes a box with a header and an expand/collapse button, which shows the contents (e.g. a text).

Example

{{Hidden|Title|This is the text that appears when the box is opened.}}
{{Hidden|header=Title|content=This is the text that appears when the box is opened.}}

Both lines generate this:

Title
This is the text that appears when the box is opened.