Template:Hide: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(Created page with "<includeonly><div class="contentbox mw-collapsible {{#if:{{{shown|}}}||mw-collapsed}}" data-expandtext="{{{show|show}}}" data-collapsetext="{{{hide|hide}}}"> {{{content}}}</div></includeonly><noinclude> This template creates a show/hide toggle for content. == Parameters == * <code>content</code> - The content to hide (required). === Optional parameters === * <code>show</code> - Change the "show" label. * <code>hide</code> - Change the "hide" label. * <code>shown</code>...") |
m (Text replacement - "Category:Formatting templates" to "Category:Structural templates") |
||
(2 intermediate revisions 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