User:Ernestvoice/vector.js

importScript('User:AzaToth/twinkle.js'); importScript('User:Henrik/js/automod.js'); importScript('User:Mr.Z-man/refToolbar 2.0.js');

//Custom Citation Templates for use with RefToolbar 2.0 $('head').one('reftoolbarbase', function {

//Replacement WEB template new citeTemplate('cite web', 'Website', [ // Basic fields {"field": "url", "label":"URL"}, {"field": "title"}, {"field": "first"}, {"field": "last"}, {"field": "publisher"}, {"field": "date"}, {"field": "accessdate", "label":"Access Date"} ], [ // Expanded fields {"field": "author"}, {"field": "authorlink", "label":"Author Link", "tooltip":"Link to authors wiki article"}, {"field": "coauthors"}, {"field": "month", "tooltip":"Only use if date is not known"}, {"field": "year", "tooltip":"Only use if date is not known"}, {"field": "work"}, {"field": "location"}, {"field": "page"}, {"field": "pages"}, {"field": "at", "tooltip":"Used if page prefix is unwanted"}, {"field": "language", "tooltip":"Default is English"}, {"field": "trans_title", "label":"Translated Title", "tooltip":"A translated title of the article, in case the original title is in a foreign language"}, {"field": "format", "tooltip":"Default is HTML"}, {"field": "doi", "tooltip":"Digital Object Identifier"}, {"field": "archiveurl", "label":"Archive URL"}, {"field": "archivedate", "label":"Archive Date"}, {"field": "quote"}, {"field": "ref"}, {"field": "separator", "tooltip":"Sets the default separator for authors"}, {"field": "postscript", "tooltip":"The closing punctuation for the citation."} ]);

//Press Release Template new citeTemplate('cite press release', 'Press Release', [ // Basic fields {"field": "url", "label":"URL"}, {"field": "title"}, {"field": "publisher"}, {"field": "date"}, {"field": "accessdate", "label":"Access Date"} ], [ // Expanded fields {"field": "format", "tooltip":"Default is HTML"}, {"field": "language", "tooltip":"Default is English"}, {"field": "trans_title", "label":"Translated Title"}, {"field": "archiveurl", "label":"Archive URL"}, {"field": "archivedate", "label":"Archive Date"}, {"field": "quote"}, {"field": "ref"} ]);

//TV Episode Template new citeTemplate('cite episode', 'TV Episode', [ // Basic fields {"field": "url", "label":"URL"}, {"field": "title"}, {"field": "series"}, {"field": "date"}, {"field": "season"}, {"field": "number"}, {"field": "minutes"}, {"field": "accessdate", "label":"Access Date"} ], [ // Expanded fields {"field": "eposidelink", "label":"Episode Link", "tooltip":"Wikipedia article of episode"}, {"field": "serieslink", "label":"Series Link", "tooltip":"Wikipedia article of series"}, {"field": "credits", "tooltip":"Writers, directors, performers, producers, etc."}, {"field": "network", "tooltip":"Network the episode aired on"}, {"field": "station", "tooltip":"Call letters of the station"}, {"field": "city", "tooltip":"City of the local station (if any) or network"}, {"field": "airdate", "tooltip":"The date the episode aired"}, {"field": "began", "tooltip":"The date the first part of the episode aired"}, {"field": "ended", "tooltip":"The date the last part of the episode aired"}, {"field": "seriesno", "label":"Series No", "tooltip":"Season number if a UK program"}, {"field": "transcript", "tooltip":"IF the source is a transcript"}, {"field": "transcripturl", "label":"Transcript URL", "tooltip":"The URL for the transcript"}, {"field": "quote"}, {"field": "language", "tooltip":"Default is English"} ]); });