User:Serprinss/common.js

importScript('User:SD0001/StubSorter.js'); // Backlink: User:SD0001/StubSorter.js

$('head').one('reftoolbarbase', function { // Cite template definitions new citeTemplate('cite web', 'webkk', [ // Basic fields {"field": "last", "autofillprop":"last-incr", 'increment_group':'author'}, {"field": "first", "autofillprop":"first-incr", 'increment_group':'author', 'increment_button':true}, {"field": "title", "autofillprop":"title"}, {"field": "url", "autofillid":"url"}, {"field": "website", "autofillprop":"journal"}, {"field": "publisher", "autofillprop":"publisher"}, {"field": "access-date"}, {"field": "ref", "tooltip":"cite-ref-tooltip"}, {"field": "archive-url"}, {"field": "archive-date"}, {"field": "url-status", "tooltip":"cite-urlstatus-tooltip"}, {"field": "page", "tooltip":"cite-page-tooltip"}, {"field": "pages", "autofillprop":"pages", "tooltip":"cite-pages-tooltip"}, {"field": "format"}, {"field": "date", "autofillprop":"date"}, {"field": "quote"} ], [ // Expanded fields {"field": "author", 'increment_group':'author_alt', 'increment_button':true}, {"field": "author-link", "tooltip":"cite-authorlink-tooltip", 'increment_group':'authorlink', 'increment_button':true}, {"field": "location"}, {"field": "language", "autofillprop":"language"}, {"field": "doi", "autofillid":"doi", "autofillprop":"doi"}, ]);

new citeTemplate('cite news', 'news', [ // Basic fields {"field": "last", "autofillprop":"last-incr", 'increment_group':'author'}, {"field": "first", "autofillprop":"first-incr", 'increment_group':'author', 'increment_button':true}, {"field": "title", "autofillprop":"title"}, {"field": "url", "autofillid":"url"}, {"field": "access-date"}, {"field": "work", "tooltip":"cite-work-tooltip", "autofillprop":"journal"}, {"field": "agency", "tooltip":"cite-agency-tooltip"}, {"field": "issue"}, {"field": "publisher", "tooltip":"cite-publisher-tooltip", "autofillprop":"publisher"}, {"field": "date", "autofillprop":"date"}, {"field": "ref", "tooltip":"cite-ref-tooltip"} ], [ // Expanded fields {"field": "author", 'increment_group':'author_alt', 'increment_button':true}, {"field": "author-link", "tooltip":"cite-authorlink-tooltip", 'increment_group':'authorlink', 'increment_button':true}, {"field": "archive-url"}, {"field": "archive-date"}, {"field": "location"}, {"field": "page", "tooltip":"cite-page-tooltip"}, {"field": "pages", "autofillprop":"pages", "tooltip":"cite-pages-tooltip"}, {"field": "language", "autofillprop":"language"}, {"field": "format"}, {"field": "doi", "autofillid":"doi", "autofillprop":"doi"}, {"field": "quote"} ]);

new citeTemplate('cite book', 'book', [ // Basic fields {"field": "last", "autofillprop":"last-incr", 'increment_group':'author'}, {"field": "first", "autofillprop":"first-incr", 'increment_group':'author', 'increment_button':true}, {"field": "title", "autofillprop":"title"}, {"field": "date", "autofillprop":"date"}, {"field": "publisher", "autofillprop":"publisher"}, {"field": "location", "autofillprop":"location"}, {"field": "isbn", "autofillid":"isbn", "autofillprop":"isbn"}, {"field": "page", "tooltip":"cite-page-tooltip"}, {"field": "pages", "autofillprop":"pages", "tooltip":"cite-pages-tooltip"}, {"field": "edition", "autofillprop":"edition"}, {"field": "url", "autofillid":"url"}, {"field": "access-date"}, {"field": "ref", "tooltip":"cite-ref-tooltip"}

], [ // Expanded fields {"field": "author", 'increment_group':'author_alt', 'increment_button':true}, {"field": "author-link", "tooltip":"cite-authorlink-tooltip", 'increment_group':'authorlink', 'increment_button':true}, {"field": "editor-last", "increment_group":"editor"}, {"field": "editor-first", "increment_group":"editor", "increment_button":true}, {"field": "editor-link", 'increment_group':'editorlink', 'increment_button':true}, {"field": "archive-url"}, {"field": "archive-date"}, {"field": "language", "autofillprop":"language"}, {"field": "format"}, {"field": "chapter", "autofillprop":"chapter"}, {"field": "quote"} ]); });