User:AzaToth/vector.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 can be added at User:AzaToth/vector.css. |
- Report page listing warnings and errors.
/*<nowiki>*/
$(function(){
window.mediaWiki.log.level = 100
});
var AjaxDeleteExtraButtons = [
{
label: "Permission (no talk)",
tag: '{\{subst:npd}}',
img_summary: 'Missing permission'
},
{
'label': 'Dupe',
'tag': '{{duplicate|1=%PARAMETER%|user=%USER%}}',
'img_summary': 'Tagging as duplicate of [[%PARAMETER%]]',
'prompt_text': 'Which is file is this a duplicate of?'
},
{
'label': 'Out of scope',
'tag': '{{out of scope}}',
'img_summary': 'Image may not fall within the [[Commons:Project scope|project scope of Wikimedia Commons]]'
},
{
'label': 'Rename',
'tag': '{{rename|1=%PARAMETER%}}',
'img_summary': 'Image may need to be renamed',
'prompt_text': 'Any good ideas for a new name?',
'talk_tag': '{{subst:please name images|1=%FILE%}}',
'talk_summary': '%FILE% needs to be renamed'
},
{
'label': 'Watermark',
'tag': '{{watermark}}',
'img_summary': 'Image contains watermark',
'talk_tag': '{{subst:no watermarks|1=%FILE%}}',
'talk_summary': '%FILE% contains watermarks'
},
{
'label': 'SVG',
'tag': '{{Convert to SVG}}',
'img_summary': 'Image should be converted to SVG',
'talk_tag': '{{subst:Please use SVG|1=%FILE%}}',
'talk_summary': '%FILE% should be converted to SVG'
}, {
'label': 'speedy deletion',
'tag': '{\{speedy|1=%PARAMETER%}}',
'img_summary': 'Tagging for speedy deletion - reason: %PARAMETER%',
'prompt_text': 'Reason for speedy deletion:',
'talk_tag': '{{subst:speedynote|1=%FILE%|2=%PARAMETER%}}',
'talk_summary': '%FILE% will soon be deleted',
}, {
'label': 'no orig. src',
'tag': '{{subst:dw-nsd}}',
'img_summary': '+Missing orig. source',
'talk_tag': '{{subst:dw image source|1=%FILE%}}',
'talk_summary': 'Orig. source is missing for %FILE%',
}, {
'label': 'No Perm. +Comment',
'tag': '<br /><br /><br />%PARAMETER% --~~\~~ {{subst:npd}}',
'img_summary': '+Missing permission',
'talk_tag': '{{subst:image permission|1=%FILE%}}',
'talk_summary': 'Please send a permission for %FILE% to [[COM:OTRS|OTRS]]',
'prompt_text': 'Additional comment (will be placed on top of the npd tag):',
}, {
'label': 'Wrong lic. (but free)',
'tag': '{{wrong license|%PARAMETER%}}',
'img_summary': '+Wrong licensing',
'talk_tag': '{{subst:Wrong license note|%FILE%|Please see the file\'s page for more info.}}',
'talk_summary': 'Wrong licensing of %FILE%',
'prompt_text': 'Reason/explanation:',
}
];
$( function() {
if(mw.config.get('wgNamespaceNumber') == 6) {
if(wgTitle.match(/(.*)\.(jpg|jpeg)/gi)) {
var croplink = "http://toolserver.org/~luxo/cropbot/cropbot.php?img="+wgTitle;
mw.util.addPortletLink("p-tb", croplink, "Crop", "p-crop", "Crop this image", "o", false);
}
}
});
/*</nowiki>*/