Open main menu

Yugipedia β

MediaWiki talk:Common.js

This is the talk page for discussing the page, MediaWiki:Common.js.

Please try to

  • Be polite
  • Assume good faith
  • Be welcoming

Redirect suppression for certain namespacesEdit

Should we add JS to have the "suppress redirect" ticked by default for the File, Card Gallery, Card Rulings, Card Errata, Card Tips, Card Appearances, Card Trivia, Card Lores, Card Artworks and Card Names namespaces? The majority of the time there's no need to leave a redirect for any of these. The odd time it is needed, anyone with mover or admin access should know that the box needs to be unticked. -- Deltaneos (talk) 22:57, August 13, 2012 (UTC)

Might as well, I think. ディノ千?!? · ☎ Dinoguy1000 01:53, August 14, 2012 (UTC)
Yes.
Also, the thing that deletes the "content was..." doesn't seem to work if there is no deletion notice. There has already recently been a couple of times where the page was deleted and someone didn't delete the spam off it. EDIT: Has been fixed. -Falzar FZ- (talk page|useful stuff) 02:24, August 14, 2012 (UTC)
I suppose so, though I still don't understand what the harm is in leaving subpage redirects (images I get though). Cheesedude (talkcontribs) 05:07, August 14, 2012 (UTC)
It hasn't been added yet has it? -Falzar FZ- (talk page|useful stuff) 03:03, November 11, 2012 (UTC)
Nope, I forgot all about it. =/ ディノ千?!? · ☎ Dinoguy1000 04:14, November 11, 2012 (UTC)

Variable namesEdit

Could you explain the prefix system for the variable names in your page format checking script, Falzar? When I added mNamespace, I just pulled the "m" from mCardGalleryTemplate, since I couldn't come up with a good variable name that wasn't as generic as namespace. ディノ千?!? · ☎ Dinoguy1000 23:05, November 13, 2012 (UTC)

Purge button and last editedEdit

Scripts for a refresh button and last edited details were recently imported here.

Purge button

  • Admins already have a refresh tab in the Monobook skin. This results in double up. Would this not be better off in the MediaWiki:Wikia.js? I don't think we have very many non-admin Monobook users.

Last edited details

  • After a page has loaded, the JavaScript then adds a few more lines of text beneath the header. Effectively this pushes the content down a small bit, causing the content to move from its initial position. This can be annoying, especially if the content jumps just as you're about to click a link or button. Although this could be fixed with CSS.
  • I can see how editors might find it useful. But is it any use to visitors, people who just come here to read content?
    • Page size and last edit summary are probably of no interest to them.
    • Last edited by and diff might have some merit in making them aware that is a site anyone can sign up to and contribute.
  • Could we make it blend in a bit better. I think three lines of text below the heading is a bit protruding.

-- Deltaneos (talk) 22:32, December 9, 2015 (UTC)

The purge button script is actually labeled for personal use on its Dev Wiki documentation page, though I'm guessing staff are fine with it considering they approved the edit adding it.
The last edited details look to be fairly flexible in terms of what information is displayed. At the very least, we should probably configure it to work in all "article" namespaces; by default, it doesn't run in custom namespaces (I would also be fine with it not displaying edit summaries or page sizes). That being said, I'm not particularly attached to it myself; personally, I prefer to just look at a page's history (though others may disagree). ディノ千?!? · ☎ Dinoguy1000 01:28, December 10, 2015 (UTC)
Yeah, I configured it at user level shortly after posting my last comment and styled it to stop it causing the page to jump.
Even so, in the week that this has been there, I haven't had any use for it. Was there any demand for it that it was added in the first place? -- Deltaneos (talk) 23:29, December 16, 2015 (UTC)
Contrary to my expectations, I have found it useful a few times, usually in relation to talk page discussions where the page's recent history is relevant to the discussion. But these are fairly rare, and I would just be using the actual history if the script weren't in place. ディノ千?!? · ☎ Dinoguy1000 23:59, December 16, 2015 (UTC)

Imported scriptsEdit

I would like to point that the LastEdited script is not working for me (I don't know if it's just for me, though, I suspect not). Well, I received the notification saying the Wikia will be off for editing in a few hours, I don't know if it has to do with it, but I thought I might as well point it out, because there appears to have been no changes on this Common.js page. It also seems there wasn't any changes in other MediaWiki pages. The LastEdited script wasn't changed as well at the dev.wikia, so I don't know if this comes directly from the Wikia, or if it's some sort of problem/bug here on the Yu-Gi-Oh! Wikia. Pointing it nevertheless.
Same goes for the Refresh Button that was imported with the js script.
However, the part that adds {{Navigation}} and {{Talk header}} in case they are not there is still working.
But the Ajax button is also missing. So I guess this is a problem with the import? Becasita Pendulum (talkcontribs) 10:00, May 25, 2016 (UTC)

Well, everything seems to be working fine now, again. Which is weird, since it seems nothing changed.
I have imported scripts at my Common.js page and they were being imported at the time (I forgot to mention that). Anyway, probably something on Wikia's side. Becasita Pendulum (talkcontribs) 15:54, May 25, 2016 (UTC)
I cannot reproduce this problem in Monobook or the default skin, logged in or logged out, Chrome or Firefox. Are you on a desktop or tablet? Which browser are you using and do you know how to open its console window? -- Deltaneos (talk) 16:24, July 22, 2016 (UTC)
It's working on Monobook, but not on the default skin. I took some screenshots: no queue; no refresh; no ajax (also note the lack of the LastEdited script).
Last time, everything got back to normal some hours later. But now, it has been more than 24 hours. Blackwings0605 also seems to have a similar problem, since they copied part of the code too.
I'm using a laptop, Chrome. I know how to open the console window, but I don't know how to check for problems about this there. I mean, the source code for the scripts is lacking there, only that. Becasita Pendulum (talkcontribs) 17:02, July 22, 2016 (UTC)
Return to "Common.js" page.