Extension:Spoilers
![]() Release status: stableCategory:Stable extensions |
|
---|---|
Implementation | Parser functionCategory:Parser function extensions |
Description | Allows to hide text using the {{#spoiler}} variable |
Author(s) | Tim "Telshin" Aldridge, Kris "Developaws" Blair |
Latest version | 2.0 (2017-10-13) |
MediaWiki | 1.26+Category:Extensions with manual MediaWiki version |
Database changes | No |
License | MIT License |
Download | GitHub: Note: |
The Spoilers extension adds a spoiler tag that will hide a block of text. If you are searching for a more simple way to hide content on pages, you can be interested by Manual:Collapsible elements . The spoiler button's show/hide message can be customized for each set.
Spoilers will be hidden on page load.
Installation
- Download and place the file(s) in a directory called
Spoilers
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'Spoilers' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage examples
{{#spoiler:hide=hide_message|spoiler_text}} {{#spoiler:show=show_message|spoiler_text}} {{#spoiler:show=show_message|hide=hide_message|spoiler_text}} {{#spoiler:spoiler_text}}
![]() | This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
Category:All extensions
Category:Extensions in GitHub version control
Category:Extensions included in Miraheze
Category:Extensions included in MyWikis
Category:Extensions included in WikiForge
Category:Extensions not in ExtensionJson
Category:Extensions with manual MediaWiki version
Category:Extensions without a compatibility policy
Category:Extensions without an image
Category:MIT licensed extensions
Category:ParserFirstCallInit extensions
Category:Parser function extensions
Category:Stable extensions