Template:Hide
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
{{{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 )
Advanced Usage
If this isn't enough, the template can be used in parts instead, for more flexible use within tables and div boxes.
For advanced usage, use this code:
{{hide|~button|show=|hide=}} {{hide|~begin}} Content {{hide|~end}}
The button can be placed anywhere before {{hide|~begin}}. It will only affect the next instance of {{hide|~begin}}. Future instances require another button.
Example
To hide some text, use the following:
{{Hide|This is hidden text.}}
This results in:
This is hidden text.
Alternatively:
{{Hide|content=This is hidden text.}}
This results in:
This is hidden text.
To change what the buttons say:
{{Hide|show=[Unearth hidden secrets]|hide=[I'm done looking]|content=This is hidden text.}}
This results in:
This is hidden text.