Gadgets/Reftoolbar
< Gadgets
- Summary: help editors add citation templates to articles
- More details:
- en:Wikipedia:RefToolbar
More general info about Gadgets
Setup
editTo setup the gadget (VisualEditor variant) in new project:
- Add the source code
- To turn it as a gadget that user can select in their preferences (requires sysop rights):
- create MediaWiki:Gadget-RefToolbarVE.js with the following code:
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eran/refToolbarVeLoader.js&action=raw&ctype=text/javascript');
- create MediaWiki:Gadget-RefToolbarVE with short description
- add it to MediaWiki:Gadgets-definition
- create MediaWiki:Gadget-RefToolbarVE.js with the following code:
- To test it (if you aren't sysop):
- add the source code to your personal JS (Special:MyPage/common.js).
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eran/refToolbarVeLoader.js&action=raw&ctype=text/javascript');
- add the source code to your personal JS (Special:MyPage/common.js).
- To turn it as a gadget that user can select in their preferences (requires sysop rights):