Manual talk:$wgResourceModules

I think "module" needs to be defined, it is used as if self-explanatory. Am I correct that a "module" with respect to the ResourceLoader is defined as a resource file embedded in a mediawiki-generated html page, such as css, javascript, messages, dependencies, localBasePath, remoteExtPath, but that an extension is not a "module"? Or is the extension the module?

Perhaps also include the case of on-wiki css and javascript, such as in common.css/js or in widgets. It remains unclear whether they need registration as well.

--G.Hagedorn (talk) 22:34, 23 July 2012 (UTC)Reply

Why was the documentation for the dropped "target" option removed?

edit

I had a problem with my special page ArchiRecentChanges. My js wasn't loading on mobile. I searched the documentation for long and I even asked on stackOverflow and on the support desk. I had to go look into other, older special pages' code to find that I needed to add target in ResourceModules. On older revision of this page, there was documentation for that in the "details" section but now it is on this page : MainConfigSchema::ResourceModules And there is not mention of "target" in this page.

Here's the detail of the issue I had : Topic:Y8u0ddsdlq1s1q5p Aphfug (talk) 07:59, 22 July 2024 (UTC)Reply

The 'target' option has been deprecated for a while and was finally dropped last year. You should upgrade your version of MediaWiki. Jdforrester (WMF) (talk) 13:03, 22 July 2024 (UTC)Reply
I know that, but even so, it should be documented somewhere. There is documentation for older versions elsewhere. Upgrading is always complicated Aphfug (talk) 13:07, 22 July 2024 (UTC)Reply
Did you look at previous revisions of the documentation page? I am pretty sure there must be something in there. [[kgh]] (talk) 13:11, 22 July 2024 (UTC)Reply
yes, it was there before. I mentionned it Aphfug (talk) 13:13, 22 July 2024 (UTC)Reply
@Aphfug: Sorry, I was confused by your title asking "why" when it appears that you know why. Jdforrester (WMF) (talk) 16:25, 22 July 2024 (UTC)Reply
Return to "$wgResourceModules" page.