Template:Hide: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Protected "Template:Hide" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m (Text replacement - "Category:Formatting templates" to "Category:Structural templates") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="contentbox mw-collapsible {{#if:{{{shown|}}}||mw-collapsed}}" data-expandtext="{{{show|show}}}" data-collapsetext="{{{hide|hide}}}"> | <includeonly><div class="contentbox mw-collapsible {{#if:{{{shown|}}}||mw-collapsed}}" data-expandtext="{{{show|show}}}" data-collapsetext="{{{hide|hide}}}"> | ||
{{{content}}}</div></includeonly><noinclude> | {{{content|{{{1|}}}}}}</div></includeonly><noinclude> | ||
This template creates a show/hide toggle for content. | This template creates a show/hide toggle for content. | ||
Line 7: | Line 7: | ||
=== Optional parameters === | === Optional parameters === | ||
* <code>show</code> - | * <code>show</code> - Used to change the "show" label. | ||
* <code>hide</code> - | * <code>hide</code> - Used to change the "hide" label. | ||
* <code>shown</code> - Set this to show the content by default | * <code>shown</code> - Set this to "1" to show the content by default | ||
[[Category: | [[Category:Structural templates]]</noinclude> |
Latest revision as of 10:07, May 31, 2024
This template creates a show/hide toggle for content.
Parameters
content
- The content to hide (required).
Optional parameters
show
- Used to change the "show" label.hide
- Used to change the "hide" label.shown
- Set this to "1" to show the content by default