विकिपिडिया:ट्विङ्कल/स्थानीयकरण
यो विकिपिडिया पृष्ठलाई उद्यतन गर्नु आवश्यक छ। यो विकिपिडिया पृष्ठलाई अद्यावधिक गरि नयाँ जानकारीहरू प्रविष्टि गर्नुहोस्। |
This page is intended as a basic guide for porting Twinkle to other language wikipedias. If you wish to port it to any other wiki, you can ask for help at WT:TW, or the IRC channel #wikipedia-userscripts (be prepared to wait for an answer).
Twinkle is a tool used to perform multiple tasks at wikipedia. Most of these involve the use of specific templates and pages on the English wikipedia; besides the javascript codes.
Installation
सम्पादन गर्नुहोस्- Find a javascript-savvy user
- Set up a Github account and fork the Twinkle github repository (This will come in handy if you wish to keep your local version updated.)
- On your local wikipedia, set up the following pages from content on the respective English Wikipedia pages (preferably get an admin to import these pages, see Help:Import):
Mediawiki:Gadget-morebits.js
Mediawiki:Gadget-morebits.css
Mediawiki:Gadget-Twinkle.js
Mediawiki:Gadget-twinkleprod.js
Mediawiki:Gadget-twinkleimage.js
Mediawiki:Gadget-twinklebatchundelete.js
Mediawiki:Gadget-twinklewarn.js
Mediawiki:Gadget-twinkleblock.js
Mediawiki:Gadget-twinklespeedy.js
Mediawiki:Gadget-friendlyshared.js
Mediawiki:Gadget-twinklediff.js
Mediawiki:Gadget-twinkleunlink.js
Mediawiki:Gadget-friendlytag.js
Mediawiki:Gadget-twinkledeprod.js
Mediawiki:Gadget-friendlywelcome.js
Mediawiki:Gadget-twinklexfd.js
Mediawiki:Gadget-twinklebatchdelete.js
Mediawiki:Gadget-twinklebatchprotect.js
Mediawiki:Gadget-twinkleconfig.js
Mediawiki:Gadget-twinklefluff.js
Mediawiki:Gadget-twinkleprotect.js
Mediawiki:Gadget-twinklearv.js
Mediawiki:Gadget-friendlytalkback.js
Wikipedia:Twinkle/Preferences
- In
MediaWiki:Gadgets-definition
, add the lineTwinkle[ResourceLoader|dependencies=mediawiki.user,mediawiki.util,jquery.ui.dialog,jquery.tipsy,moment|rights=autoconfirmed]|morebits.js|morebits.css|Twinkle.js|twinkleprod.js|twinkleimage.js|twinklebatchundelete.js|twinklewarn.js|twinkleblock.js|twinklespeedy.js|friendlyshared.js|twinklediff.js|twinkleunlink.js|friendlytag.js|twinkledeprod.js|friendlywelcome.js|twinklexfd.js|twinklebatchdelete.js|twinklebatchprotect.js|twinkleconfig.js|twinklefluff.js|twinkleprotect.js|twinklearv.js|friendlytalkback.js
Following upto this step should add a Twinkle option in the Gadgets tab of your preferences panel. Enabling Twinkle should create a TW tab as can be seen on the english wikipedia. To edit the gadget description visible in the preferences panel, edit the page MediaWiki:Gadget-Twinkle
on your wiki.
The procedure after this varies depending on your choice. If you have a highly javascript-savvy user, you can modify Twinkle's code per your needs and add the required pages and templates per your choice.
If you wish to completely set up Twinkle to work exactly as on the english wikipedia (and localise it later), follow the following steps:
- Find someone with Import rights on your local wiki
- Import all templates in Category:Templates used by Twinkle
- Depending on which TW tabs you want to use, set up the pages
Wikipedia:Requests for page protection
,Wikipedia:Articles for deletion
,Wikipedia:Templates for discussion
,Wikipedia:Categories for discussion
etc. with content from their english wikipedia counterparts.
Disabling Modules
सम्पादन गर्नुहोस्If you wish to disable particular TW modules on your local wikipedia, at the end of Mediawiki:Gadget-Twinkle.js
, find the list of modules in the function Twinkle.load
, and comment out the un-needed modules (in the way that Twinkle.closer is commented out in MediaWiki:Gadget-Twinkle.js). Note that some modules are interdependent. Be sure to check if TW is working after disabling a module.