/*jshint smarttabs:true, loopfunc:true,forin:false*//*global mw, $ */// TODO: make autodate an option in the CiteTemplate object, not a preference
// Global object// TODO:// * Remove this once the page is moved to a module 'ext.gadget.refToolbarDialogs' depending on 'ext.gadget.refToolbarBase'if (typeof CiteTB
// Only execute when editing/previewing wikitext pages// TODO: Remove tests already done by if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !