17,230
edits
(added "default" argument) |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch:{{{1|}}} | |||
| ~button = <span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible" style="{{{style|{{{showstyle|}}}}}}">{{{show|[show]}}}</span><span class="_toggle_inithide _toggle _toggler toggle-hidden" style="display:none; {{{style|{{{hidestyle|}}}}}}">{{{hide|[hide]}}}</span> | |||
| ~content = <div class="_toggle_inithide _toggle toggle-hidden" style="{{{style|{{{3|}}}}}}">{{{content|{{{2|}}}}}}</div> | |||
| ~button = <span class="_togglegroup | |||
| ~content = <div class=" | |||
| ~all = <span class="_toggler_show-toggle-hidden _toggler_hide-toggle-visible _toggler-hideall _toggler-showall showall" style="{{{showstyle|}}}">{{{showtext|[show all]}}}</span><span class="_toggler_hide-toggle-hidden _toggler_show-toggle-visible _toggler-showall _toggler-hideall hideall" style="display:none; {{{hidestyle|}}}">{{{hidetext|[hide all]}}}</span> | | ~all = <span class="_toggler_show-toggle-hidden _toggler_hide-toggle-visible _toggler-hideall _toggler-showall showall" style="{{{showstyle|}}}">{{{showtext|[show all]}}}</span><span class="_toggler_hide-toggle-hidden _toggler_show-toggle-visible _toggler-showall _toggler-hideall hideall" style="display:none; {{{hidestyle|}}}">{{{hidetext|[hide all]}}}</span> | ||
| #default = <span class="_togglegroup | | #default = <span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible">{{{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> | }}<noinclude> | ||
==Purpose== | ==Purpose== | ||
This template allows easy hiding of text and other content. | This template allows easy hiding of text and other content. | ||
Line 20: | Line 17: | ||
|show= | |show= | ||
|hide= | |hide= | ||
|content= | |content= | ||
}} | }} | ||
Line 26: | Line 22: | ||
{{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 being hidden.|Optional|[hide]}} | {{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 hide|Optional}} | {{Parameter|content|This specifies the content you want to be able to hide|Optional}} | ||
{{clear}} | {{clear}} | ||
Line 80: | Line 75: | ||
This results in: | This results in: | ||
{{Hide|show=[Unearth hidden secrets]|hide=[I'm done looking]|content=This is hidden text.}} | {{Hide|show=[Unearth hidden secrets]|hide=[I'm done looking]|content=This is hidden text.}} | ||
{{clear}} | {{clear}} | ||