User:Ernestvoice/vector.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin can be added at User:Ernestvoice/vector.css. |
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"}
]);
});