telshin / spoilers Goto Github PK
View Code? Open in Web Editor NEWMediawiki extension that allows for spoiler tags.
License: MIT License
Mediawiki extension that allows for spoiler tags.
License: MIT License
Typo in js/spoilers.js at 11 and 13 lines:
$parent.children('.spolers-body:visible').length
instead of
$parent.children('.spoilers-body:visible').length
.
Version 2.2.2 still has 2.2.0 as it's version in extension.json.
Hello! Am i right that this extension will not work for mobile version, with mobile frontend installed?
Example:
This spoiler created as:
<spoiler show="цитата (показать)" hide="цитата (скрыть)">
A lot of text
</spoiler>
but works as Показать спойлер
/ цитата (скрыть)
This should include the new extension.json file and the ability to use wfLoadExtension(). See maintenance/convertToExtensionRegistration.php.
May need to hook it into a pre-render call, so mediawiki jumps in and sees it IS used.
If spoiler is used with indentation (for example :<spoiler>blabla</spoiler>
) page markup is messed up and sidebar is not usable.
It looks like this.
I've installed this extension on MW 1.30 and, when used on a page, one message line "Array ( [show] => see details [hide] => hide details [text] => 'UNIQ--DPL-00000001-QINU' )" is displayed on upper side.
Could it be fixed ?
Just realized we are seeing these errors on our Mediawiki Virtual Server.
[Tue Oct 18 08:31:29.153596 2022] [proxy_fcgi:error] [pid 2115157:tid 140118157399808] [client 162.158.62.216:56338] AH01071: Got error 'PHP message: PHP Deprecated: Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. [Called from Spoilers\SpoilersHooks::spoilerMagicTag in /home/wiki/public_html/extensions/Spoilers/SpoilersHooks.php at line 62] in /home/wiki/public_html/includes/debug/MWDebug.php on line 377'
[Tue Oct 18 08:31:56.194557 2022] [proxy_fcgi:error] [pid 2115079:tid 140118476191488] [client 162.158.62.18:23382] AH01071: Got error 'PHP message: PHP Deprecated: Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. [Called from Spoilers\SpoilersHooks::spoilerMagicTag in /home/wiki/public_html/extensions/Spoilers/SpoilersHooks.php at line 62] in /home/wiki/public_html/includes/debug/MWDebug.php on line 377'
We are running the below versions with version 2.2.0 of the extension.
MediaWiki 1.38.2
MariaDB 10.3.34-MariaDB-0ubuntu0.20.04.1
I have tested and the extension works as expected however it does log the log error.
When button appears on the load of the page it has no text. When I pressed it - spoler text is shown and "show" text appears on the button. Tried to switch off every extension I have but no luck, I couldn't find any conflict.
See for yourself it here: http://ifwiki.ru/%D0%96%D1%83%D1%87%D0%BA%D0%BE%D0%B2,_%D0%90%D0%BD%D1%82%D0%BE%D0%BD
[Thu Oct 19 09:01:24.209822 2023] [proxy_fcgi:error] [pid 412528:tid 139637366925056] [client 172.70.115.32:41262] AH01071: Got error 'PHP message: PHP Deprecated: Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. [Called from Spoilers\SpoilersHooks::spoilerMagicTag in /home/wiki/public_html/extensions/Spoilers/SpoilersHooks.php at line 62] in /home/wiki/public_html/includes/debug/MWDebug.php on line 382', referer: https://wiki.pcsx2.net/Category:Turn-based_strategy
Change is tabled for Mediawiki 1.42.as per https://phabricator.wikimedia.org/T305161.
Signatures (--~~~~
) are not parsed inside spoilers. (Mediawiki 1.24-1.26)
This means you cannot make spoilers that start with lists or intended lines:
*
:
Was the extension never meant to be used for more than one line?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.