Thread:Mazdafreak/@comment-31090299-20190208123527/@comment-27095448-20190208133448

Okay so this clock module can be found here: https://dokkanbattlefr.fandom.com/fr/wiki/MediaWiki:ClocksModule.js

You can either create a javascript page like me and import them after in the MediaWiki:ImportJS like this: https://dokkanbattlefr.fandom.com/fr/wiki/MediaWiki:ImportJS Or add it to the "common.js"

After this you need to set some configuration in the common.js files, like you can see here at the top: https://dokkanbattlefr.fandom.com/fr/wiki/MediaWiki:Common.js clocksModuleLabels = ["Paris", "PST"]; clocksModuleTimezones = ["Europe/Paris", "Pacific/Pitcairn"]; clocksModuleFormat = [ {local : "fr", format : "%H:%M:%S \n%d/%m/%Y"}, {local : "fr", format : "%H:%M:%S \n%d/%m/%Y"} ];

clocksModuleLabels is a table for adding more clock and change they're name clocksModuleTimezones is the second parameter for the clock, it's work on pair with Labels. And define the timezone of clock. If you only want PST timezone, just get rid of "Paris" and "Europe/Paris"

Lastly: clocksModuleFormat work with the other two for the output format of clock. So if you want" 2019-02-28 11:30:55 am" is possible.

I can write the config if you give me the data and format wanted.

And lastly i've add a small css for matching the current theme of french wikia who can be found here: https://dokkanbattlefr.fandom.com/fr/wiki/MediaWiki:Module.css This css can and surely must be changed for matching theme of english wikia. This one too, you can either add to the wikia.css or create a page and import it after.

Rules needed is: /* Style of clock */ text-align: center; margin: 0 auto; padding: 1px; border: 2px solid #2C75FF; -moz-border-radius: 7px; -webkit-border-radius: 7px; border-radius: 7px; font-size: small; box-shadow:0 0 4px #2C75FF; } .clocksModule span { font-size: 20px; } .clocksModule.Paris { float: left; } .clocksModule.PST { float: right; } /* End Style of clock */
 * 1) wiki-custom .clock,
 * 2) wiki-custom-clockModule .clocksModule {