Template:Hide: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Seperate templates are not used anywhere. If such a degree of customization is wanted, they are much better off writing their own collapse box)
(built-in collapse, the old one is visible as long the JS isn't adapted)
Line 1: Line 1:
<div class="NavFrame" style="{{{framestyle|}}}">
<div class="NavFrame mw-collapsible mw-collapsed" style="{{{framestyle|}}}">
<div class="NavHead gradient" style="{{{headerstyle|}}}">{{{header}}}</div>
<div class="NavHead gradient" style="{{{headerstyle|}}}">{{{header}}}</div>
<div class="NavContent" style="{{#if:{{{visible|}}}||display:none;}} {{{contentstyle|}}}">{{{content}}}</div>
<div class="NavContent mw-collapsible-content" style="{{#if:{{{visible|}}}||display:none;}} {{{contentstyle|}}}">{{{content}}}</div>
</div><noinclude>
</div><noinclude>



Revision as of 09:54, 4 April 2017

Usage

This is intended to create a collapsible selection of text, in most cases to be used on pages with large amounts of similar list-like content, such as the Failed Nominations page. There are two ways to use this template:

One Template

This form is usually used for text without tricky wikicode

{{hide
| header = 
| content = 
| framestyle = 
| headerstyle = 
| contentstyle = 
| visible = 
}}
  • header — The title of the box
  • content — The content to place in the box
  • framestyle — CSS styling for the frame
  • headerstyle — CSS styling for the header
  • contentstyle — CSS styling for the content area
  • visible — Type anything to make the content visible on page load

See Also