Well, the struggle has been really long going but finally got it to work! Finally I did manage to pull the 'Cite' option (the one which exists in English Wikipedia and was missing from Bengali Wikipedia) into Bengali Wikipedia. Unfortunately, I do not have admin rights to bn.wikipedia.org, so I couldn't get it get in on the Edit toolbar for all users, but could obviously manage to get it for my own Edit toolbar and am surely in a state where I can help other users get it on their respective Edit toolbars by just adding one single line in their common.js files.
Well, what I did to get it up and running is as follows:
Well, what I did to get it up and running is as follows:
- Created a common.js page under my username...so something like, User: Priyanka Nag/common.js
- In my common.js file, I imported a few other js files like:
- RefToolbar.js
- RefToolbarMessages-en.js
- RefToolbarBase.js
- RefToolbarLegacy.js
- I created all these js pages under my user-name like User:Priyanka Nag/Reftoolbar.js, User:Priyanka Nag/RefToolbarMessages-en.js, User:Priyanka Nag/RefToolbarBase.js and User:Priyanka Nag/RefToolbarLegacy.js.
These pages are already present in most wikipedias and if that is so, we may not need to create them under our user-page separately. But, in either case, making sure that these files, which are dependent on each other, are being called properly i.e. if RefToolbar.js is calling RefToolbarBase.js, making sure that its calling User:Username/RefToolbarBase.js or MediaWiki:RefToolbar.js (as the case may be) is vital. - Once all the pages are in place and called properly, we just need to do a hard refresh. If all works properly, we are expected to see the 'cite' option on our Edit toolbar.
- Now, initially if all these JavaScript files are copied from English Wikipedia, the citation template is also expected to be in English. How to change these options to your own language can be found here.
- Under your common.js page (i.e. User:YourUserName/common.js), simply put the following line of code:
- importScript('User:Priyanka Nag/common.js');
Could you please link directly to User:Priyanka Nag/common.js ? Thanks.
ReplyDeleteThis is one of the most important blogs that I have seen, keep it up!local citation service
ReplyDelete