Template:Hide: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
No edit summary
mNo edit summary
Line 2: Line 2:
|#default=<span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible" style="display:none;">{{{show|[show]}}}</span><span class="_toggle_inithide _toggle _toggler toggle-hidden" style="display:none;">{{{hide|[hide]}}}</span><div class="_toggle_inithide _toggle toggle-hidden">{{{content|{{{1}}}}}}</div>
|#default=<span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible" style="display:none;">{{{show|[show]}}}</span><span class="_toggle_inithide _toggle _toggler toggle-hidden" style="display:none;">{{{hide|[hide]}}}</span><div class="_toggle_inithide _toggle toggle-hidden">{{{content|{{{1}}}}}}</div>
|~button=<span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible" style="display:none;">{{{show|[show]}}}</span><span class="_toggle_inithide _toggle _toggler toggle-hidden" style="display:none;">{{{hide|[hide]}}}</span>
|~button=<span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible" style="display:none;">{{{show|[show]}}}</span><span class="_toggle_inithide _toggle _toggler toggle-hidden" style="display:none;">{{{hide|[hide]}}}</span>
|~begin=<div class="_toggle_inithide _toggle toggle-hidden">
|~content=<div class="_toggle_inithide _toggle toggle-hidden" style="{{{style|{{{3|}}}}}}">{{{content|{{{2|}}}}}}</div>
|~end=</div>
}}<noinclude>
}}<noinclude>
==Purpose==
==Purpose==
Line 27: Line 26:
For advanced usage, use this code:
For advanced usage, use this code:
<div style="float:left; margin-right:20px"><pre>
<div style="float:left; margin-right:20px"><pre>
{{hide|~button|show=|hide=}}
{{hide|~button|show=[show]|hide=[hide]}}
{{hide|~begin}}
{{hide|~content|content=|style=}}
Content
{{hide|~end}}
</pre></div>
</pre></div>
The button can be placed anywhere before <nowiki>{{hide|~begin}}</nowiki>. It will only affect the next instance of <nowiki>{{hide|~begin}}</nowiki>. Future instances require another button.
The button can be placed anywhere before <nowiki>{{hide|~begin}}</nowiki>. It will only affect the next instance of <nowiki>{{hide|~begin}}</nowiki>. Future instances require another button. The ''style'' parameter is to enter any styling directly in to the div for the content, in addition to any other styling you use outside of it. You can delete the ''show'' and ''hide'' parameters if you do not wish to change them from their defaults.


{{clear}}
{{clear}}