FANDOM

Welcome

Hi, welcome to FANDOM Open Source Library! Thanks for your edit to the Template:Sophiedp-Clean Up JS Inports page.

Please leave a message on my talk page if I can help with anything! Cqm (talk) 10:18, November 7, 2015 (UTC)

Capital C

Why did you change it? With this users would add unnecesary capital letters...
~[Quəntumiið the Wise] 07:28, March 20, 2017 (UTC)

I made it capital so that it matches the rest of the menu. --Sophie 07:31, March 20, 2017 (UTC)

Regarding moving CSS to MW namespace

Hi there, I've noticed you've started copy-pasting some CSS pages over to the MW namespace. I'm not so sure that's a good idea, however, as using @import ... will not work for anyone who's currently importing these pages using load.php with multiple articles since the import may not end up at the top of the concatenated CSS. Another issue is that it removes the edit history, technically making it a license violation as the CC BY-SA license requires attribution. It might be best to discuss this in the forum more before continuing. Thanks! - OneTwoThreeFall talk 14:06, January 4, 2018 (UTC)

I wanted to bring this to forum a while ago since these pages are polluting Special:UncategorizedPages (and will be polluting Special:LonelyPages after the move). Only discussion about the move was done on the Discord server. -- Cube-shaped garbage can 14:18, January 4, 2018 (UTC)
> polluting Special:UncategorizedPages
Easily fixed!
> Only discussion about the move was done on the Discord server.
A little sad… Wiki discussion is best done on the wiki so no one misses it.
-
I see now that a link to the old history is being added to these pages, which is good, but better still would be to move them properly (if they must be moved). I know this requires staff help (I made such a request for ExtendedNavigation's CSS page move) but keeping the contributor history is important. - OneTwoThreeFall talk 14:43, January 4, 2018 (UTC)
Thread:16168 --Sophie 15:36, January 4, 2018 (UTC)

GlobalChatJS on CC?

Hi again! Just wondering, what is the use of the LoadChatJSinCC setting you've added to GlobalChatJS? The point of that check is to prevent the chat JS from being loaded twice, since it's first loaded as usual on CC chat (GlobalChatJS shouldn't affect the usual Special:MyPage/chat.js loading) and then (with that check off) the same page would be loaded a second time by GlobalChatJS, possibly causing script issues. - OneTwoThreeFall talk 07:52, January 7, 2018 (UTC)

Its kinda explained via the edit summary ("add override so that people using this script can also load chat in cc if needed"), but I'm not sure if it's worded right since you're the second person to ask me about this... Anyhow it's for people who want to override GlobalChatJS's import function (chatHook) since the js will need to load on Community Central, since they don't put the JS in their chat.js on CC, but instead have it in a separate file (like global.js for example). --Sophie 08:26, January 7, 2018 (UTC)
Oh, alright! Though now I'm interested in how you're overriding the chatHook function, since the script doesn't really offer a way to do that… - OneTwoThreeFall talk 09:01, January 7, 2018 (UTC)
like this --Sophie 09:03, January 7, 2018 (UTC)
And that's actually working for you? Such a method should only work on functions that are reachable from the global scope, whereas all of GlobalChatJS's functions are within a closure. I'd be happy to add a proper override to the script, though, if that's something you think would be useful. - OneTwoThreeFall talk 10:22, January 7, 2018 (UTC)
That probably explains why it didn't work for me, and sure. --Sophie 22:45, January 7, 2018 (UTC)
Completed Thanks for the idea! Check out the docs for info on how to set up the custom hook. Also, I've changed the check so that if a custom hook is set, it will be loaded on CC chat too, so the LoadChatJSinCC setting shouldn't be needed any more. - OneTwoThreeFall talk 07:52, January 8, 2018 (UTC)
Ah, thanks~ --Sophie 09:06, January 8, 2018 (UTC)

RCM talk page

Responded (thanks for messing me on my talk page obtw!). Sadly the request is not possible due to technical reasons. Fewfre 🔎 K🧀01:13 Thu, 01 Feb 2018

Ah, thanks for leaving me a message (and np~) --Sophie 02:10, February 1, 2018 (UTC)

"MediaWiki" in Imports

http://dev.wikia.com/index.php?title=Template%3AScript_Install%2FPlain%2Fbase&diff=71713&oldid=70445

Imports work well without adding the extra MediaWiki namespace, so I was wondering why you added it.—|| Grudgeholderr ||— 04:11, February 28, 2018 (UTC)

Because the script is actually in the "extra" MediaWiki namespace, not using it works because wikia made it a redirect for dev only. --Sophie 04:16, February 28, 2018 (UTC)
But since this is only used on this wiki, why is it needed?—|| Grudgeholderr ||— 04:34, February 28, 2018 (UTC)
Because if a user copies it for another script from another wiki, it will work for them, and also it would make it so it doesn't use a redirect? --Sophie 04:43, February 28, 2018 (UTC)
Pretty sure the redirect isn't Dev only and you can exclude it from the import from any wiki (example) but I usually include it just in case Wikia removes the redirect either intentionally or unintentionally. -- Cube-shaped garbage can 05:49, February 28, 2018 (UTC)
Huh, so importArticles doesn't need it, but importScriptPage does? I'm guessing that importScript also needs it, and it's probably going to be the same for the CSS imports, but we should keep it (imo) because that way we can keep everything the same, which would make it less confusing. --Sophie 06:02, February 28, 2018 (UTC)

Correction

Good day.

Thank you for correcting my an error.

З повагою, Тору Хасеґава. --180px-Toru_Hasegawa_%28%D0%BF%D1%96%D0%B4%D0%BF%D0%B8%D1%81%29.png (talk)  08:46, March 3, 2018 (UTC)

np --Sophie 08:51, March 3, 2018 (UTC)

Possible bug?

I can't see last digit of year and time in last edited status. For example, in this page I see "Last edited by KockaAdmiralac (talk | contribs) Sun, 18 Mar 201, 07:51:3 [m]". Is this a bug? Frostvalor (talk) 18:13, June 11, 2018 (UTC)

Yep, it was a bug with the LastEdited script, which should be fixed as soon as Wikia reviews the JS. --Sophie 22:41, June 11, 2018 (UTC)

Revert to MediaWiki:RecentChangesMultiple/core.js

Hello, what was the reason for reverting my change to MediaWiki:RecentChangesMultiple/core.js? Is it something I can fix, or was there something just wrong with the change? Sorry if you already explained why somewhere, but I couldn't find it. Fewfre 🔎 K🧀14:14 Tue, 19 Jun 2018

It was an issue with the change. Somehow there ended up being two edits, and your second edit did this, so I undid it. (I didn't undo your first edit tho) --Sophie 19:44, June 19, 2018 (UTC)
Oh, didn't notice the wierd double commit; thanks for fixing it! Fewfre 🔎 K🧀20:14 Tue, 19 Jun 2018
np~ --Sophie 20:14, June 19, 2018 (UTC)

Possible bug? (2)

I can't see last digit of year in last edited status. For example, in this page I see "Last edited by Sophiedp (talk | contribs) Tue, 19 Jun 201, 20:14:46 [m]". Is this a bug? Frostvalor (talk) 10:23, July 19, 2018 (UTC)

Should be fixed when wikia reviews the JS. --Sophie 11:27, July 19, 2018 (UTC)
It's fixed! -- Frostvalor (talk) 08:10, July 20, 2018 (UTC)

Issue with DiscordModule

Hi, can you read my message on Talk:DiscordModule when possible. I am asking you because you are the most recent editor to the script's code.js Aerozoan (talk) 01:19, July 21, 2018 (UTC)

Looks like my edit was already undone, so I'm going to ask help since apparently it was done incorrectly (according to the edit summary). --Sophie 02:02, July 21, 2018 (UTC)

Help request

Please see this, I'm confused.{{SUBST:KrytenKoroSig}} 21:14, August 3, 2018 (UTC)

RE: RCM and YQL

Thanks for the heads up! I was unaware. Fewfre 🔎 K🧀22:50 Sat, 02 Feb 2019

FandomizedButtons

Hello, the update look nice excluding the background. It takes over the color chosen through ThemeDesigner. Why did you put it black ? UtauSteam (talk) 00:58, February 10, 2019 (UTC)

Its a quick fix to make the buttons show up, as none, inherit, initial, currentColor, unset, and transparent all make the button disappear. --Sharkie 01:04, February 10, 2019 (UTC)
Yeah I couldn't get it work, so I removed that css that changes the button color; it should be back to normal (excluding cache) --Sharkie 01:27, February 10, 2019 (UTC)
Alright, so after talking with Kocka and Unai, and playing around with it for a bit, I think I got it to work. --Sharkie 05:48, February 10, 2019 (UTC)

Discord.js & Discord.css

Per DEV:P, it's best to delete the Discord.css and Discord.js pages - this will be done by 12PM UTC. Please post code when it's understood and is ready for global use.

You're welcome to move the code to your test wiki and seek help in the Discord, unless testing requires the code to be on Dev Wiki. speedy🔔︎🚀︎ 08:17, February 20, 2019 (UTC)

Per private conversation, the Discord.js script has had the following changes:
  • a fully configurable ID
  • group IDs that are customisable
This will allow it to be usable on other wikis, and covers DEV:P. But it doesn't work so well (needs JSRT, which isn't very convenient), so it should be improved pretty soon. speedy🔔︎🚀︎ 11:59, February 20, 2019 (UTC)

RE: RecentChangesMultiple (HTTPS)

It is needed, though it should be rewritten; It's still needed for external wikis, and currently having something like "fr.transformice.wikia.com" in the list would still break, since even though what it redirects to is https, it itself is not. Now that no wikia.com wikis exist though, I can probably secretly change them to fandom now (in code). For now I'll just rewrite it, might change the code in a bit. Fewfre 🔎 K🧀15:36 Sat, 04 Jan 2020

RE: LastEdited and mainpages

Yes, my issue with LastEdited being on the main page was primarily due to it being sitewide (which technically isn't allowed anymore I guess). Doesn't show up for me on main pages currently, so I think the change was made; but if your wanting it back I don't mind it that much now that's it's a personal script. Fewfre 🔎 K🧀04:27 Mon, 30 Mar 2020

Ah, yah, that's fine; I don't mind what the default is. As mentioned though, LastEdited cannot be a sitewide script (so can't be in MediaWiki:ImportJS). Fandom decided it breaks their ToS or something. I actually had a staff member remove it from one of my wikis when they saw it in passing once (found it) (that was over a year ago I think though, so maybe they've come around). Do what you want of course, just as a heads up. Fewfre 🔎 K🧀20:14 Mon, 30 Mar 2020

Question to determinate finally which code to use

As we speaked here about a script of ReferencePopups, in order to be sure, if İ add exactly the following code to a wiki’s MediaWiki:Common.js page, will this set ReferencesPopups as by default being activated by click? The exact code İ’m asking for is:

((window.dev = window.dev || {}).ReferencePopups = dev.ReferencePopups || {}).settings = { react: 'click' };
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:ReferencePopups/code.js',
        'u:dev:MediaWiki:ReferencePopups/custom.js',
    ]
});

Were you telling me this? --Josep Maria 24. (discussiócontribucions) 22:0, May 4, 2020 (UTC)

You don't need the second import, just import the script like normal. --Little Red 03:34, May 5, 2020 (UTC)
So will exactly this code work?
((window.dev = window.dev || {}).ReferencePopups = dev.ReferencePopups || {}).settings = { react: 'click' };
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:ReferencePopups/code.js',
    ]
});
--Josep Maria 24. (discussiócontribucions) 3:36, May 5, 2020 (UTC)
Yes, but if you already have the script imported (eg, in MediaWiki:ImportJS) then you don't need to import it again. --Little Red 03:39, May 5, 2020 (UTC)
At the beginning İ imported it in MediaWiki:ImportJS and wasn’t working, thaťs why İ asked. --Josep Maria 24. (discussiócontribucions) 3:42, May 5, 2020 (UTC)
MediaWiki:ImportJS only does importing from dev and that wiki, if you need to do other JS (eg, config) you'll need to use MediaWiki:Common.js and etc. --Little Red 03:44, May 5, 2020 (UTC)
Yes, İ meant İ imported “dev:ReferencePopups/code.js” on MediaWiki:ImportJS and added your code to activate by click on MediaWiki:Common.js. Both this way and adding the full code on MediaWiki:Common.js weren’t working, İ don’t know why. İn theory adding “dev:ReferencePopups/code.js” on MediaWiki:ImportJS and ((window.dev = window.dev || {}).ReferencePopups = dev.ReferencePopups || {}).settings = { react: 'click' }; on MediaWiki:Common.js would work… --Josep Maria 24. (discussiócontribucions) 3:48, May 5, 2020 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── It could be because of cache or etc, could you link the wiki? --Little Red 04:01, May 5, 2020 (UTC)

https://planetesfanon.fandom.com/ru/wiki/MediaWiki:Common.js
https://planetesfanon.fandom.com/ru/wiki/MediaWiki:ImportJS
İťs used also for tests (İ mean, both for content and personal sandbox). But if it works here, it could work in other wikis.
--Josep Maria 24. (discussiócontribucions) 4:4, May 5, 2020 (UTC)
Hm it should work since I don't see any issues with it, I'll ask someone about it and see if they can see why its not working. --Little Red 04:20, May 5, 2020 (UTC)
After talking for a bit with BryghtShadow, we've come up with this JS that should work:
if (!localStorage.getItem('RefPopupsJS')) {
    window.dev = $.extend(true, window.dev, {
        ReferencePopups: {
            settings: {
                react: 'click'
            }
        }
    });
    localStorage.setItem('RefPopupsJS', JSON.stringify(window.dev.ReferencePopups.settings));
}
--Little Red 10:20, May 5, 2020 (UTC)
Yes, it works, thanks! Only one more question: how can İ transform this code:
((window.dev = window.dev || {}).ReferencePopups = dev.ReferencePopups || {}).lockdown = true;
((window.dev = window.dev || {}).ReferencePopups = dev.ReferencePopups || {}).defaults = { animate: false };
to merge it in your last and working code? These two lines are the indicated on the page ReferencePopups to both enable lockdown and disable the animation by default. --Josep Maria 24. (discussiócontribucions) 12:12, May 5, 2020 (UTC)
Those should work as is, but if they don't work then let me know and I'll see if I can merge them into the above code. --Little Red 21:12, May 5, 2020 (UTC)
Yes, it works, but there’s one more problem: it works in normal references, but the template:Popup stopped working… --Josep Maria 24. (discussiócontribucions) 22:42, May 5, 2020 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Do you have an example of it not working? The template on your wiki isn't used by any pages. --Little Red 23:47, May 5, 2020 (UTC)

As İ said, iťs a wiki for testing. İ try it without saving (previewing) and there’s this. The normal references do work in both previews of edits and the deleted page, but the template doesn’t. --Josep Maria 24. (discussiócontribucions) 0:6, May 6, 2020 (UTC)
Hm, looking at ReferencePopups, it seems you also need to import the custom.js for it to work. --Little Red 00:10, May 6, 2020 (UTC)
Now iťs all working, thanks a lot for your help! Now only leťs see if Staff approves the script on MediaWiki:Common.js… --Josep Maria 24. (discussiócontribucions) 0:24, May 6, 2020 (UTC)
İ saw it only works in a basic browser with a very low JS compatibility (where for example AjaxRC doesn’t run); in a normal browser with full JS compatibility the three extra settings İ want to add don’t work… --Josep Maria 24. (discussiócontribucions) 0:52, May 6, 2020 (UTC)
It works fine for me, so its probably due to cache and/or the JS isn't reviewed yet + possibly settings already stored in localSettings. --Little Red 05:27, May 6, 2020 (UTC)
Ok, İʼll wait. İn the browser where İ was making the tests it was working, but when İ wanted to see it by chance in another computer and browser iťs when İ saw that there it wasnʼt working. But as you said, it can be due to the cache or that the code hasnʼt been reviewed, so İʼll wait to see what happens. --Josep Maria 24. (discussiócontribucions) 12:12, May 6, 2020 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+