Skip to main content

Successfully getting the 'citation' option on Bengali Wikipedia

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:

  • 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.
If anyone wants to use the same option in Bengali Wikipedia, you need to simply do the following:
  • Under your common.js page (i.e. User:YourUserName/common.js), simply put the following line of code:
Once saved, this code will simply import my common.js file which in-turn will import all files necessary to get the citation template working. Now, since my common.js file already has all the other js files in place (in case of bn.wikipedia.org), one doesn't need to create them again separately. For all other Wikipedias but all the above steps will be required.

Comments

  1. Could you please link directly to User:Priyanka Nag/common.js ? Thanks.

    ReplyDelete
  2. This is one of the most important blogs that I have seen, keep it up!local citation service

    ReplyDelete

Post a Comment

Popular posts from this blog

A lot can happen over coffee....only if you are allowed to sit at a CCD outlet!

Cafe Coffee Day is no more a new name for the youngsters in India. For a warm cup of coffee at an affordable price, thats where we generally go to! But more than the cup of coffee, its the atmosphere of Café Coffee Days which attracts all of us. An informal setup...good beverage and snacks...soothing music (most of the time)...complimentary wi-fi (at many outlets)...well, CCD always had a lot to offer its customers. Photo source - https://www.zomato.com/pune/cafe-coffee-day-2-koregaon-park For Siddhartha, coffee always used to be an experience to be offered...not just beans to be grown. I have had my job interview conducted at a CCD outlet. I have hosted and attended several community meetups at different CCD outlets across the country. I have even had my coffee dates at CCDs. Well, truely, a lot has happened in my life over coffee...at different CCD outlets. Once, Siddhartha himself had spent his new year's eve, serving customers at a Café Coffee Day (CCD) outlet near C...

Quarantining Alone - A Once in a Lifetime Opportunity

This Covid-19 virus has turned the entire world upside down. It has broken a lot of older habits and set a lot of new normals. Towards the early days of this lockdown, I had written a blog - An Extrovert in Isolation . The early lockdown days were extremely difficult for me. That was the phase of breaking old habits. An extrovert by nature, couldn't accept the sudden change of being locked alone inside my house. I am writing this blog again after being locked at home for more than 100 days now. Most of the older habits are broken by now. A few new habits have become a part of my new normal. What seemed to have been painful 100 days back has now turned to be blissful. Here, I am sharing my story of how quarantining alone has ended up being the greatest opportunity and a huge transformation in my life.  I have been struggling for years to fix my sleep patterns. Going to bed late and waking up late had been a habit for a really long time. My struggles to change this habit had...

Equality and Equity: A Journey That Starts at Home, Beyond the Workplace!

In 2023, during the celebration of International Women's Day, I encountered the notion of " Equity " for the first time. Initially, its significance in a woman's daily life didn't strike me profoundly. However, over the past year, I've been continually reminded of its relevance on numerous occasions. Discussions around workplace Diversity and the concerted effort to elevate the presence of women in organizations, especially in leadership roles, have gained traction globally. While commendable, there's a touch of irony in this commendable endeavor. The very men who wield decision-making power in organizations, shaping policies to foster inclusivity and gender balance, often seem to leave the concept of equality at their home doorstep. As they enter their domestic realm, they discard the notion of equality as if shedding a coat, anticipating their wives to effortlessly shift from their professional roles into the responsibilities of a homemaker. It's imp...