MediaWiki:PageTriageExternalTagsOptions.js
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// See http://www.mediawiki.org/wiki/Extension:PageTriage for basic documentation on configuration.
// <nowiki>
( function ( $, mw ) {
var today = new Date(),
month = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July',
'August', 'September', 'October', 'November', 'December' ],
param = {
date: {
label: mw.msg( 'pagetriage-tags-param-date-label' ),
input: 'automated',
type: 'hidden',
value: mw.msg(
'pagetriage-tags-param-date-format',
month[ today.getUTCMonth() ],
today.getUTCFullYear()
)
},
'1': {
label: '1:',
input: 'automated',
type: 'hidden',
value: ''
},
'for': {
label: mw.msg( 'pagetriage-tags-param-for-label' ),
input: 'optional',
type: 'textarea',
value: ''
},
blp: {
label: mw.msg( 'pagetriage-tags-param-blp-label' ),
input: 'optional',
type: 'checkbox',
value: ''
},
reason: {
label: mw.msg( 'pagetriage-tags-param-issues-label' ),
input: 'required',
type: 'textarea',
value: ''
},
details: {
label: mw.msg( 'pagetriage-tags-param-issues-label' ),
input: 'optional',
type: 'textarea',
value: ''
},
source: {
label: mw.msg( 'pagetriage-tags-param-source-label' ),
input: 'required',
type: 'text',
value: ''
},
free: {
label: mw.msg( 'pagetriage-tags-param-free-label' ),
input: 'optional',
type: 'checkbox',
value: ''
},
url: {
label: mw.msg( 'pagetriage-tags-param-url-label' ),
input: 'required',
type: 'text',
value: ''
},
start: {
label: 'The oldid number of the diff wherein the copyright violation was added.',
input: 'optional',
type: 'text',
value: ''
},
end: {
label: 'The oldid number of the diff wherein the copyright violation was last visble.',
input: 'optional',
type: 'text',
value: ''
},
start2: {
label: 'Same as second parameter; usable for a second range of diffs.',
input: 'optional',
type: 'text',
value: ''
},
end2: {
label: 'Same as third parameter; usable for a second range of diffs.',
input: 'optional',
type: 'text',
value: ''
},
CopyPatrol: {
label: 'Copypatrol URL of the flagging.',
input: 'optional',
type: 'text',
value: ''
},
originalpage: {
label: 'The page from where the content was copied.',
input: 'required',
type: 'text',
value: ''
}
};
$.pageTriageTagsMultiple = 'Multiple issues';
$.pageTriageTagsOptions = {
common: {
label: mw.msg( 'pagetriage-tags-cat-common-label' ),
alias: true,
tags: {
stub: {
label: 'Stub',
tag: 'Stub',
desc: 'An article too short to provide more than rudimentary information about a subject.',
params: { },
position: 'top',
multiple: true
}
}
},
stub2: {
label: mw.msg( 'pagetriage-tags-cat-common-label' ),
alias: true,
tags: {
stub: {
label: 'Stub2',
tag: 'Stub2',
desc: '2 - An article too short to provide more than rudimentary information about a subject.',
params: { },
position: 'top',
multiple: true
}
}
},
};
} )( jQuery, mediaWiki );
// </nowiki>