FANDOM


  • Hey Conan. On Japanese H!P Wiki I recently put up a clock that shows JST time, at the upper-right corner of the content section, above the Contribute button. Now it's being copied over to some of the other languages too, though as I type this the change isn't live anywhere else yet. If you think this would be a good addition here, I can tell you how to add it; it's a pretty simple thing.

      Cargando editor...
    • It looks good. Yes, you can add it if you want :)

        Cargando editor...
    • Unfortunately, on a closer look it seems like it won't be possible right now. You need to enable it by adding some lines to MediaWiki:Common.js, but when visiting there now it says "Custom JavaScript is disabled on this wikia." I ran across the same thing on the French wiki earlier. I'm not sure why this seems to be the case with some languages and not others. I sent a message to Wikia support earlier asking about that, but I haven't heard back. I'll let you know if they say anything useful.

        Cargando editor...
    • Oh, what a pity. Let's hope it can be fixed.

        Cargando editor...
    • OK, I got a reply from them. They mentioned disabling editing of JavaScript pages for security reasons last year, and that now they will enable it on request. I knew they'd temporarily blocked them from being edited, but I'm pretty sure I never requested it be reenabled on the other languages so I'm not sure why some are done automatically and others not. They also reminded that due to those security problems last year they now have a JavaScript review process which I was going to tell you about later. Basically it just means once you make the change on the Common.js page you hit a button to request it be reviewed, and they check to make sure nothing dastardly is going on before they let it go live.

      At any rate, you just need to request that JavaScript be enabled here and they should take care of it pretty quickly.

        Cargando editor...
    • Wow, when I requested it be enabled on the French wiki it took fewer than 10 minutes, haha. So I'll go ahead and tell you the rest so you won't have to wait more on me later.

      At MediaWiki:Common.js copy in the following lines.

       importArticles({
      	type: 'script',
      	articles: [
      		// ...
      		"u:ja.helloproject:MediaWiki:DisplayClockJST/code.js",
      		// ...
      	]
      });

      Once that's saved, at the right side of the page there should be a few buttons, "Submit for review" and "Enter test mode". Test mode lets you test the changes just for yourself, to make sure it's working properly. Submit for review will send it off to be okayed by whoever they have checking such things, and once they're done it will go live for anyone viewing the wiki.

        Cargando editor...
    • I sent the request! I'm waiting for it to be enabled.

        Cargando editor...
    • lol It took fewer than 3 minutes xD

      It's done!

        Cargando editor...
    • Un usuario de FANDOM
        Cargando editor...
Apoyar este mensaje
¡Estás a favor este mensaje!
Ver quién está a favor de este mensaje
El contenido de la comunidad está disponible bajo CC-BY-SA a menos que se indique lo contrario.