Misplaced Pages

User:Mr.Z-man/vector.js

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Mr.Z-man

This is the current revision of this page, as edited by Mr.Z-man (talk | contribs) at 04:07, 1 November 2015. The present address (URL) is a permanent link to this version.

Revision as of 04:07, 1 November 2015 by Mr.Z-man (talk | contribs)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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 is at User:Mr.Z-man/vector.css.
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 Misplaced Pages:Bypass your cache.
//window.refToolbarInstalled = 'bypass';
//importScript( 'User:Mr.Z-man/RefToolbarBase.js' );
//mw.loader.using( 'ext.wikiEditor.toolbar', function () {
//	importScript( 'User:Mr.Z-man/RefToolbar.js' );
//});

$('head').one('reftoolbarbase', function() {
mw.messages.set({'cite-dialog-Example': 'Example citation'});
new citeTemplate('cite example', 'Example',
[ // Basic fields
{"field": "last", "label":"Last name", "autofillprop":"last1"},
{"field": "first", "label":"First name", "autofillprop":"first1"}, 
{"field": "title", "autofillprop":"title"},
{"field": "url", "label":"URL"},
{"field": "work", "tooltip": "If this is part of a larger work"},
{"field": "isbn", "label":"ISBN", "autofillid":"isbn"},
{"field": "publisher", "autofillprop":"publisher"},
{"field": "otherthing"},
{"field": "accessdate"}
],
[ // Expanded fields
{"field": "author"},
{"field": "authorlink", "label":"Author's article", "tooltip":"If the author has an article, the name of the article"},
{"field": "coauthors", "autofillprop":"coauthors"},
{"field": "page"},
{"field": "pages"},
{"field": "language"},
{"field": "format"},
{"field": "date"},
]);
});

$('head').one('reftoolbarbase', function() {
  CiteTB.UserOptions = false;
});

importScript('User:Mr.Z-man/closeAFD2.js');
importScript('User:Mr.Z-man/hideClosedAFD.js');
importScript('User:Mr.Z-man/autopatrol.js');
importScript('User:Hoo man/instantNewPagePatrol.js');