Indic-TechCom/Tools/FloatableEditingButton

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Button in Normal

FloatableEditingButton script gives you the option of editing a page without scrolling to top. This script will reduce the scrolling time while editing and sometimes which may lead to carpal tunnel syndrome. An extra button on the right side of the page will be added if you click on that it will take you to editing mode and in editing mode, you will have two more buttons which will help you to save or view the preview without scrolling up. The feature will save a lot of time while editing any Wikipedia page.

Installation[edit]

Add the following code in your wiki's common.js page:

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Tools/FloatableEditingButton.js&action=raw&ctype=text/javascript');

If you want to this in your language, then add the following code in your wiki's common.js page. and translate right side words like 'Edit Button' should be 'Edit Button in your language'

var i18nForFloatableButton = {
    editi18n: 'Edit Button',
    savei18n: 'Save Button',
    previewi18n: 'Preview Button',
    goTopi18n: 'Goto the Top'
}
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Tools/FloatableEditingButton.js&action=raw&ctype=text/javascript');