Jump to content

User:Sdpjswl/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sdpjswl (talk | contribs) at 06:43, 24 November 2009 (2). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript("User:Remember the dot/ISO date format unifier.js")
importScript('User:Mr.Z-man/refToolbar2.js'); // Omit this line if you are installing from the Gadgets page in preferences
citeUserDateFormat = '<year>-<month>-<date>'; // This will set dates to the ISO style, e.g. 2009-11-25
var exampletemplate = new citeTemplate('cite example', 'Example',
  // Basic fields
  [['last', 'Last name'],
   ['first', 'First name'],
   ['title'],
   ['url', 'URL'],
   ['work', 'Work', 'If this is part of a larger work'], 
   ['accessdate']],
  // Expanded fields
  [['author'],
   ['page'],
   ['pages'],
);
userTemplates.push(exampletemplate); // This adds the "Cite example" template to the list used by the script