Extension:Spoilers/de-formal
From Linux Web Expert
Spoilers Release status: stable |
|
---|---|
Implementation | Parser function |
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+ |
Database changes | No |
License | MIT License |
Download | GitHub:
<translate> Note:</translate> |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
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
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
Spoilers/de-formal
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'Spoilers/de-formal' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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}}
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions/de-formal
- Parser function extensions/de-formal
- Extensions with manual MediaWiki version
- MIT licensed extensions/de-formal
- Extensions in GitHub version control/de-formal
- ParserFirstCallInit extensions/de-formal
- All extensions/de-formal
- Extensions not in ExtensionJson