User:Hanooz/common.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin is at User:Hanooz/common.css. |
importScript('User:Legoktm/massrename.js');
importScript('User:Rillke/bigChunkedUpload.js');
importScript('User:Rillke/genCatList.js');
importScript("User:Waggers/degrandparent.js");
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/generalHistory.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/watchlistDiffs.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/fancy-diffs.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&bcache=1&maxage=259200&action=raw&ctype=text/javascript');
mw.loader.load('//fa.wikipedia.org/w/index.php?title=مدیاویکی:Gadget-decodesummary.js&action=raw&ctype=text/javascript');
mw.loader.load('//fa.wikipedia.org/w/index.php?title=مدیاویکی:Gadget-Extra-Editbuttons-sisters.js&action=raw&ctype=text/javascript');
/////////////////////////////////////////////////
/**
* Extra buttons in toolbar
* @stats [[:File:Krinkle_InsertWikiEditorButton.js]]
* You can see Original script in [[:commons:User:Krinkle/common.js]]
*/
// <nowiki>
if (!mw.libs.getInsertWikiEditorButton) {
mw.libs.getInsertWikiEditorButton = $.ajax({ dataType: 'script', cache: true,
url: 'https://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript'
});
}
mw.libs.getInsertWikiEditorButton.then(function () {
// Information Template
krInsertWikiEditorButton({
id: 'Information',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/3/38/Info_Simple.svg/24px-Info_Simple.svg.png',
label: 'Information',
insertBefore: '== {{int:filedesc}} ==\n{{Information\n |description =\n |date =\n |source =\n |author =\n |permission =\n |other versions =\n}}\n\n== {{int:license-header}} ==\n{{PD-scan|PD-Iran}}\n',
insertAfter: '',
sampleText: '',
autoSummary: { summary: '+ Adding {{Information}}', position: 'replace' }
});
// Cite Journal
krInsertWikiEditorButton({
id: 'Journal',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Breezeicons-actions-22-news-subscribe.svg/32px-Breezeicons-actions-22-news-subscribe.svg.png',
label: 'Journal',
insertBefore: '{{fa| {{cite journal |last= |first= |author= |authors= |authorlink= |coauthors= |title= |url= |archiveurl= |archivedate= |format= |journal= |location= |publisher= |date= |dateformat= |month= |year= |volume= |issue= |page= |pages= |doi= |pmc= |pmid= |issn= |id= |accessdate= |quote= |curly= |postscript=}} }}',
insertAfter: '',
sampleText: '',
autoSummary: { summary: '', position: 'replace' }
});
// Taken on
krInsertWikiEditorButton({
id: 'TakenOn',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/14/Antu_applications-graphics.svg/25px-Antu_applications-graphics.svg.png',
label: 'TakenOn',
insertBefore: '{{Taken on|',
insertAfter: '|location=Iran}}',
sampleText: '',
autoSummary: { summary: '+ Adding {{Taken on}} in Summary', position: 'replace' }
});
});
// </nowiki>
/////////////////////////////////////////////////
window.AjaxDeleteExtraButtons = [{
'label': 'NO IND',
'tag': '{' + '{copyvio|No indication of publication under a [[COM:L|free license]] at source}}',
'img_summary': 'Marking as possible copyvio because No indication of publication under a [[COM:L|free license]] at source',
'talk_tag': '{' + '{subst:copyvionote|1=%FILE%|reason=No indication of publication under a [[COM:L|free license]] at source}}',
'talk_summary': 'Notification of possible copyright violation for %FILE%'
}, {
'label': 'Copyvio (www)',
'tag': '{'+'{copyvio|1=[[COM:CSD#F1]], Possible copyright violation: [[COM:NETCOPYRIGHT|Found elsewhere on the web and unlikely to be own work]]}}',
'img_summary': 'speedy deletion: possible copyvio',
'talk_tag': '{'+'{subst:copyvionote|1=%FILE%|2=[[COM:NETCOPYRIGHT|Found elsewhere on the web and unlikely to be own work]].}}',
'talk_summary': 'Notification of possible copyright violation for %FILE% because it is [[COM:NETCOPYRIGHT|found elsewhere on the web and unlikely to be own work]].}}',
}, {
'label': 'POSTER',
'tag': '{' + '{copyvio|[[COM:POSTER|Poster]] or [[COM:BOOK|book]]/[[COM:ALBUM|album]] [[Commons:Copyright_rules_by_subject_matter#Covers|cover]]}}',
'img_summary': 'Marking as possible copyvio because Poster or Book/Album Cover',
'talk_tag': '{' + '{subst:copyvionote|1=%FILE%|reason=[[COM:POSTER|Poster]] or [[COM:BOOK|book]]/[[COM:ALBUM|album]] [[Commons:Copyright_rules_by_subject_matter#Covers|cover]]}}',
'talk_summary': 'Notification of possible copyright violation for %FILE%'
}, {
'label': 'LOGO',
'tag': '{' + '{logo}}',
'img_summary': 'Marking as possible copyvio because Non-trivial logo',
'talk_tag': '{' + '{subst:copyvionote|1=%FILE%|reason=[[Commons:Copyright rules by subject matter#Trademarks|Sophisticated logo]]}}',
'talk_summary': 'Notification of possible copyright violation for %FILE%'
}, {
'label': 'ADVERT',
'tag': '{' + '{SD|G10}}',
'img_summary': 'Marking as possible advert',
'talk_tag': '{' + '{subst:speedynote|1=%FILE%|2=[[COM:CSD#G10|CSD G10]] (files and pages created as advertisements)}}',
'talk_summary': 'Notification of possible advert for %FILE%'
}, {
'label': 'SELFIE',
'tag': '{' + '{SD|F10}}',
'img_summary': 'Marking as likely personal photo',
'talk_tag': '{' + '{subst:speedynote|1=%FILE%|2=[[COM:CSD#F10|CSD F10]] (personal photos by non-established contributors)}}',
'talk_summary': 'Notification of likely personal photo for %FILE%'
}, {
'label': 'SCREEN',
'tag': '{' + '{screenshot}}',
'img_summary': 'Marking as possible coyvio as Non-free screenshot',
'talk_tag': '{' + '{subst:copyvionote|1=%FILE%|reason=[[Commons:Screenshots]]}}',
'talk_summary': 'Notification of possible copyright violation for %FILE%'
}, {
'label': 'DUP',
'tag': '{'+'{duplicate|1=%PARAMETER%|user=%USER%}}',
'img_summary': 'Tagging as duplicate of [[:%PARAMETER%]]',
'prompt_text': 'Which file is this a duplicate of?',
'talk_tag': '{' + '{subst:speedynote|1=%FILE%|2=[[:Category:Duplicate|Exact duplicate]] or scaled-down version of [[:%PARAMETER%]].}}',
'talk_summary': 'Notification of possible duplicate for %FILE%',
},
];
window.AxUserMsgPreSelect = 38;
//<nowiki>
//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"preferences","minor":false,"editpages":true,"docleanup":false,"subcatcount":50,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
//</nowiki>