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:54, 24 November 2009. 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")
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'],
  ['authorlink', 'Author\'s article', 'If the author has an article, the name of the article'], 
  ['page'],
  ['pages'],
  ['archiveurl'], 
  ['archivedate'],
  ['location'],
  ['page'],
  ['pages'],
  ['language'],
  ['format'],
  ['doi'],
  ['date'],
  ['month'],
  ['year'],
  ['quote']]
);
userTemplates.push(exampletemplate); // This adds the "Cite example" template to the list used by the script