ShowHide is a script for collapsible tables and divs.
Attributes | Values |
---|
rdf:type
| |
rdfs:label
| |
rdfs:comment
| - ShowHide is a script for collapsible tables and divs.
- To use ShowHide please include ShowHide/code.js in your site's MediaWiki:Common.js using:
* importScriptPage('ShowHide/code.js', 'dev'); You can change the configuration of ShowHide by creating a ShowHideConfig object inside either:
|
dcterms:subject
| |
dbkwik:dev/property/wikiPageUsesTemplate
| |
dbkwik:thebleachfa...iPageUsesTemplate
| |
Languages
| - Any
- en
- es
- fr
- bg
- ja
- de
- ru
- hu
- nl
- pl
- pt
- pt-br
- zh
- it
- ko
|
Skins
| - Monaco
- Oasis
- Monobook
- Any
|
Author
| |
Scope
| |
Description
| - Script for collapsible tables/divs using jQuery
|
Code
| |
dbkwik:magick/prop...iPageUsesTemplate
| |
Updated
| - 2011-02-22(xsd:date)
- 2012-04-13(xsd:date)
|
abstract
| - To use ShowHide please include ShowHide/code.js in your site's MediaWiki:Common.js using:
* importScriptPage('ShowHide/code.js', 'dev'); You can change the configuration of ShowHide by creating a ShowHideConfig object inside either:
* your site's MediaWiki:Common.js or
* your personal User:USERNAME/monaco.js or User:USERNAME/monobook.js depending on what skin you are using. autoCollapse ShowHideConfig.autoCollapse sets the threshold for default collapse of all collapsible content on a page. When the number of NavFrames or collapsible tables with the autocollapse on the page is equal to or greater than specified number then auto-collapse is triggered. By default this is set to 2 meaning for example "If there are two or more NavFrames on the page, then hide them all by default", and likewise for collapsible tables with autocollapse on them. You can change this to any number.
* Setting it to 0 will make it so things are always collapsed by default.
* setting it to Infinity will make it so things never auto-collapse. (Note: Infinity is case-sensitive)
* NavFrames with the noautocollapse class do count toward the NavFrame threshold and are never auto-collapsed but can always be manually collapsed.
* NavFrames with the collapsed class do count toward the NavFrame threshold and are always initially collapsed but can always be manually expanded. userLang (true|false) ShowHide is smart about what language to use to display show/hide messages. Currently by default it will prefer the user's language, but use the content language otherwise, and fall back to English if there are no messages in a desired language. You can disable this by setting the ShowHideConfig.userLang option to false. langCode Messages for localization of the language used in button labels can be added using the two-character language code as a key (e.g. ShowHideConfig.en or ShowHideConfig.ja) and then creating an object for four messages. The four messages used are "show", "hide", "showAll", and "hideAll". See example below for how to override the default labels used for the English language.
- ShowHide is a script for collapsible tables and divs.
|