Wikibooks:Reading room/Technical Assistance
Discussions | Assistance | Requests | Announcements |
---|---|---|---|
General | Proposals | Projects | Featured books | General | Technical | Administrative | Deletion | Undeletion | Import | Upload | Permissions | Bulletin Board |
Welcome to the Technical Assistance reading room. Get assistance on questions related to MediaWiki markup, CSS, JavaScript, and such as they relate to Wikibooks. This is not a general-purpose technical support room.
To submit a bug notice or feature request for the MediaWiki software, visit Phabricator.
To get more information about the MediaWiki software, or to download your own copy, visit MediaWiki
There are also two IRC channels for technical help: #mediawikiconnect for issues about the software, and #mediawiki-coreconnect for WMF server or configuration issues.
Category:Reading roomNotice of change to MediaWiki:Common.js
I have added a snippet to MediaWiki:Common.js that allows users to load a script or stylesheet in the MediaWiki namespace by appending the withJS
or withCSS
parameter to a URL. See User:JJPMaster/sandbox for an example. JJPMaster (she/they) 10:33, 2 April 2025 (UTC)
Edit requests on MediaWiki:Sp-contributions-footer pages and some message box pages
On MediaWiki:Sp-contributions-footer-anon and MediaWiki:Sp-contributions-footer, please change | type = system
to | type = editnotice
so that it can adapt to dark mode, thank you.
In addition to the above, we should also modify some of the message box subpages in which they should adapt to dark mode. For instance, the fmbox part when used on MediaWiki:Abusefilter-disallowed does not adapt to dark mode, and makes the currently white text hard to read in dark mode. Codename Noreste (discuss • contribs) 21:50, 13 April 2025 (UTC)
- @Codename Noreste Just took care of the first part of the request. If you want to workshop specific changes to some of these templates, please feel free! I think an admin/IA can then implement. Cheers —Kittycataclysm (discuss • contribs) 14:32, 26 April 2025 (UTC)
- Thank you for implementing my edit to the fmbox template! Could you also replace
| type = system
to| type = editnotice
on MediaWiki:Noarticletext and MediaWiki:Noarticletext-nopermission to adapt to dark mode as well? Much appreciated. Codename Noreste (discuss • contribs) 15:18, 1 May 2025 (UTC)Done! Cheers —Kittycataclysm (discuss • contribs) 18:10, 1 May 2025 (UTC)
- @Codename Noreste: When should
type=editnotice
be used as opposed totype=system
? JJPMaster (she/they) 16:17, 2 May 2025 (UTC)- The thing is,
| type = system
uses a gray system color, which can interfere with the dark mode. Codename Noreste (discuss • contribs) 17:39, 2 May 2025 (UTC)- @Codename Noreste: In that case, should I just use AWB to replace all instances of
type=system
in system messages withtype=editnotice
? JJPMaster (she/they) 18:04, 2 May 2025 (UTC)- Yes, but you should probably enable AWB's bot mode so that you don't flood the recent changes feed. Codename Noreste (discuss • contribs) 18:08, 2 May 2025 (UTC)
- @Codename Noreste: In that case, should I just use AWB to replace all instances of
- The thing is,
- Thank you for implementing my edit to the fmbox template! Could you also replace
Background color in an unbulleted list.
Hi,
For the first three names in Oberon/hall#Additional_Contributors I've attempted to apply a background color. Can my Wikitext be adjusted to make the background color appear? Thanks, ... PeterEasthope (discuss • contribs) 19:13, 22 April 2025 (UTC)
- Done using HTML and CSS rather than MediaWiki. —Justin (koavf)❤T☮C☺M☯ 22:10, 22 April 2025 (UTC)
- Thanks, ... PeterEasthope (discuss • contribs) 16:15, 25 April 2025 (UTC)
You have a JavaScript error at MediaWiki:Common.js/Toolbox.js#L-183
Was just passing by, saw an error, wanna report.
Steps to reproduce:
- Go to https://en.wikibooks.org/w/index.php?title=Template:Book_title&action=edit (Vector 2022 skin)
- Open JS console
- Witness an error
jQuery.Deferred exception: $.eachAsync is not a function
that points to MediaWiki:Common.js/Toolbox.js#L-183.
JWBTH (discuss • contribs) 08:16, 25 April 2025 (UTC)
- @Leaderboard @JJPMaster could you investigate? Thank you!! —Kittycataclysm (discuss • contribs) 14:26, 26 April 2025 (UTC)
- I'm not that familiar with JavaScript, so will leave this for JJPMaster. Leaderboard (discuss • contribs) 16:07, 26 April 2025 (UTC)
Working JJPMaster (she/they) 16:34, 26 April 2025 (UTC)
- @JWBTH, @Kittycataclysm, @Leaderboard: This should be fixed now. It looks like both this toolbox script and the special characters gadget are attempting to use a nonexistent jQuery method. After some investigation, it looks like they were trying to use a method defined in an unofficial script (this one). I have copied it over to MediaWiki:Common.js/jQueryAsync.js and imported it. JJPMaster (she/they) 17:17, 26 April 2025 (UTC)
- Hi @JJPMaster and thank you. Unfortunately, while this error was fixed, a new was introduced:
mw.hook(...).add(...) is not a function
when editing any page, e.g. . You are trying to passjQuery, mediaWiki
to the return value ofwhich is not a function. I suggest to removemw.hook('eachAsync.ready').add(function() { // ... })
(jQuery, mediaWiki)
at all since it's not used. JWBTH (discuss • contribs) 05:50, 27 April 2025 (UTC)
- Hi @JJPMaster and thank you. Unfortunately, while this error was fixed, a new was introduced:
- @JWBTH, @Kittycataclysm, @Leaderboard: This should be fixed now. It looks like both this toolbox script and the special characters gadget are attempting to use a nonexistent jQuery method. After some investigation, it looks like they were trying to use a method defined in an unofficial script (this one). I have copied it over to MediaWiki:Common.js/jQueryAsync.js and imported it. JJPMaster (she/they) 17:17, 26 April 2025 (UTC)
Banner not adjusted for dark mode
Another bug report: I was visiting Wikibooks:Community Portal, and in dark mode I saw this:

Oh, look, @Xeverything11 already suggested an edit at MediaWiki talk:Sitenotice#Dark mode support. Their request has not been addressed in 4 months. JWBTH (discuss • contribs) 08:35, 25 April 2025 (UTC)
Done —Kittycataclysm (discuss • contribs) 14:34, 26 April 2025 (UTC)
Help:Contents cut-off on Mobile view on phone
Just a quick note that when viewing Help:Contents on a phone with minerva (the mobile skin), the page is only partially shown; text is cut-off and pinch/zoom doesn't help. Commander Keane (discuss • contribs) 11:28, 26 April 2025 (UTC)
- Thanks for the note! Which part is cut off? The right side? —Kittycataclysm (discuss • contribs) 14:25, 26 April 2025 (UTC)
We will be enabling the new Charts extension on your wiki soon!
(Apologies for posting in English)
Hi all! We have good news to share regarding the ongoing problem with graphs and charts affecting all wikis that use them.
As you probably know, the old Graph extension was disabled in 2023 due to security reasons. We’ve worked in these two years to find a solution that could replace the old extension, and provide a safer and better solution to users who wanted to showcase graphs and charts in their articles. We therefore developed the Charts extension, which will be replacing the old Graph extension and potentially also the EasyTimeline extension.
After successfully deploying the extension on Italian, Swedish, and Hebrew Wikipedia, as well as on MediaWiki.org, as part of a pilot phase, we are now happy to announce that we are moving forward with the next phase of deployment, which will also include your wiki.
The deployment will happen in batches, and will start from May 6. Please, consult our page on MediaWiki.org to discover when the new Charts extension will be deployed on your wiki. You can also consult the documentation about the extension on MediaWiki.org.
If you have questions, need clarifications, or just want to express your opinion about it, please refer to the project’s talk page on Mediawiki.org, or ping me directly under this thread. If you encounter issues using Charts once it gets enabled on your wiki, please report it on the talk page or at Phabricator.
Thank you in advance! -- User:Sannita (WMF) (talk) 15:07, 6 May 2025 (UTC)
Edit request to add to MediaWiki:Common.css
Please add the following CSS code (imported from enwiki). I have tested this on my custom CSS page and it does fully work on making the block entry adapt to dark mode.
/* System messages styled similarly to fmbox */
/* for .mw-warning-with-logexcerpt, behavior of this line differs between
* the edit-protected notice and the special:Contribs for blocked users
* The latter has specificity of 3 classes so we have to triple up here.
*/
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: var(--background-color-error-subtle, #ffdbdb);
padding: 0.25em 0.9em;
box-sizing: border-box;
}
/* default colors for partial block message */
/* gotta get over the hump introduced by the triple class above */
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
border-color: #fc3;
background-color: var(--background-color-warning-subtle, #fef6e7);
}
Thanks. Codename Noreste (discuss • contribs) 22:57, 9 May 2025 (UTC)