Template:Hide: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
m (moved Template:Switch to Template:Hide) |
No edit summary |
||
Line 1: | Line 1: | ||
<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><noinclude> | <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><noinclude> | ||
==Purpose== | ==Purpose== | ||
This template | This template allows easy hiding of text and other content. | ||
==Usage== | ==Usage== | ||
Line 8: | Line 8: | ||
or the named parameter format: | or the named parameter format: | ||
<div style="float:left; margin-right:20px"><pre> | <div style="float:left; margin-right:20px"><pre> | ||
{{ | {{Hide | ||
|show= | |show= | ||
|hide= | |hide= | ||
Line 15: | Line 15: | ||
</pre></div> | </pre></div> | ||
{{Parameter|show|This specifies the text of the link that shows the content that is initially hidden.|Optional|[show]}} | {{Parameter|show|This specifies the text of the link that shows the content that is initially hidden.|Optional|[show]}} | ||
{{Parameter|hide|This specifies the text of the link that switches the content back to | {{Parameter|hide|This specifies the text of the link that switches the content back to being hidden.|Optional|[hide]}} | ||
{{Parameter|content|This specifies the content you want to be able to | {{Parameter|content|This specifies the content you want to be able to hide|Optional}} | ||
{{clear}} | {{clear}} | ||
==Example== | ==Example== | ||
To | To hide some text, use the following: | ||
<pre> | <pre> | ||
{{ | {{Hide|content=This is hidden text.}} | ||
</pre> | </pre> | ||
This results in: | This results in: | ||
{{ | {{Hide|content=This is hidden text.}} | ||
Alternatively: | Alternatively: | ||
<pre> | <pre> | ||
{{ | {{Hide|This is hidden text.}} | ||
</pre> | </pre> | ||
This results in: | This results in: | ||
{{ | {{Hide|This is hidden text.}} | ||
{{Cat|Formatting Templates}}</noinclude> | {{Cat|Formatting Templates}}</noinclude> |
Revision as of 09:02, January 16, 2012
{{{1}}}
Purpose
This template allows easy hiding of text and other content.
Usage
To use this template, use either the standard format {{Hide| content }} or the named parameter format:
{{Hide |show= |hide= |content= }}
- show — This specifies the text of the link that shows the content that is initially hidden. (Optional - [show])
- hide — This specifies the text of the link that switches the content back to being hidden. (Optional - [hide])
- content — This specifies the content you want to be able to hide (Optional )
Example
To hide some text, use the following:
{{Hide|content=This is hidden text.}}
This results in:
This is hidden text.
Alternatively:
{{Hide|This is hidden text.}}
This results in:
This is hidden text.