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)))
 
(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> - Change the "show" label.
* <code>show</code> - Used to change the "show" label.
* <code>hide</code> - Change the "hide" label.
* <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:Formatting templates]]</noinclude>
[[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