Skip to content

Commit

Permalink
Closes wikimedia-gadgets#1788 - Change template to redirected templat…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOriginalSoni authored and rustykitty committed Dec 1, 2024
1 parent e38fdca commit ebdbb76
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions modules/twinkleimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*** twinkleimage.js: Image CSD module
****************************************
* Mode of invocation: Tab ("DI")
* Active on: Local nonredirect file pages (not on Commons)
* Active on: Local nonredirect file pages (not on Commons) - Only file pages that exist locally; Files that exist on Commons do not trigger this module.
*/

Twinkle.image = function twinkleimage() {
Expand Down Expand Up @@ -67,23 +67,23 @@ Twinkle.image.callback = function twinkleimageCallback() {
tooltip: 'Image or media has neither information on source nor its copyright status'
},
{
label: 'Orphaned fair use (CSD F5)',
value: 'orphaned fair use',
label: 'Orphaned non-free use (CSD F5)',
value: 'orphaned non-free use',
tooltip: 'Image or media is unlicensed for use on Wikipedia and allowed only under a claim of fair use per Wikipedia:Non-free content, but it is not used in any articles'
},
{
label: 'No fair use rationale (CSD F6)',
value: 'no fair use rationale',
label: 'No non-free use rationale (CSD F6)',
value: 'no non-free use rationale',
tooltip: 'Image or media is claimed to be used under Wikipedia\'s fair use policy but has no explanation as to why it is permitted under the policy'
},
{
label: 'Disputed fair use rationale (CSD F7)',
value: 'disputed fair use rationale',
label: 'Disputed non-free use rationale (CSD F7)',
value: 'disputed non-free use rationale',
tooltip: 'Image or media has a fair use rationale that is disputed or invalid, such as a {{Non-free logo}} tag on a photograph of a mascot'
},
{
label: 'Replaceable fair use (CSD F7)',
value: 'replaceable fair use',
label: 'Replaceable non-free use (CSD F7)',
value: 'replaceable non-free use',
tooltip: 'Image or media may fail Wikipedia\'s first non-free content criterion ([[WP:NFCC#1]]) in that it illustrates a subject for which a free image might reasonably be found or created that adequately provides the same information'
},
{
Expand Down Expand Up @@ -151,22 +151,22 @@ Twinkle.image.callback.choice = function twinkleimageCallbackChoose(event) {
label: 'Source:'
});
break;
case 'disputed fair use rationale':
case 'disputed non-free use rationale':
work_area.append({
type: 'textarea',
name: 'reason',
label: 'Concern:'
});
break;
case 'orphaned fair use':
case 'orphaned non-free use':
work_area.append({
type: 'input',
name: 'replacement',
label: 'Replacement:',
tooltip: 'Optional file that replaces this one. The "File:" prefix is optional.'
});
break;
case 'replaceable fair use':
case 'replaceable non-free use':
work_area.append({
type: 'textarea',
name: 'reason',
Expand Down Expand Up @@ -194,14 +194,14 @@ Twinkle.image.callback.evaluate = function twinkleimageCallbackEvaluate(event) {
case 'no license':
csdcrit = 'F4';
break;
case 'orphaned fair use':
case 'orphaned non-free use':
csdcrit = 'F5';
break;
case 'no fair use rationale':
case 'no non-free use rationale':
csdcrit = 'F6';
break;
case 'disputed fair use rationale':
case 'replaceable fair use':
case 'disputed non-free use rationale':
case 'replaceable non-free use':
csdcrit = 'F7';
break;
case 'no permission':
Expand Down Expand Up @@ -263,13 +263,13 @@ Twinkle.image.callbacks = {
case 'no permission':
tag += params.source ? '|source=' + params.source : '';
break;
case 'disputed fair use rationale':
case 'disputed non-free use rationale':
tag += params.reason ? '|concern=' + params.reason : '';
break;
case 'orphaned fair use':
case 'orphaned non-free use':
tag += params.replacement ? '|replacement=' + params.replacement : '';
break;
case 'replaceable fair use':
case 'replaceable non-free use':
tag += params.reason ? '|1=' + params.reason : '';
break;
default:
Expand Down
6 changes: 3 additions & 3 deletions modules/twinklespeedy.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Twinkle.speedy.callback.modeChanged = function twinklespeedyCallbackModeChanged(
case 7: // file talk
appendList('Files', Twinkle.speedy.fileList);
if (!mode.isSysop) {
work_area.append({ type: 'div', label: 'Tagging for CSD F4 (no license), F5 (orphaned fair use), F6 (no fair use rationale), and F11 (no permission) can be done using Twinkle\'s "DI" tab.' });
work_area.append({ type: 'div', label: 'Tagging for CSD F4 (no license), F5 (orphaned non-free use), F6 (no non-free use rationale), and F11 (no permission) can be done using Twinkle\'s "DI" tab.' });
}
break;

Expand Down Expand Up @@ -535,13 +535,13 @@ Twinkle.speedy.fileList = [
{
label: 'F5: Unused non-free copyrighted file',
value: 'f5',
tooltip: 'Files that are not under a free license or in the public domain that are not used in any article, whose only use is in a deleted article, and that are very unlikely to be used on any other article. Reasonable exceptions may be made for files uploaded for an upcoming article. For other unused non-free files, use the "Orphaned fair use" option in Twinkle\'s DI tab.',
tooltip: 'Files that are not under a free license or in the public domain that are not used in any article, whose only use is in a deleted article, and that are very unlikely to be used on any other article. Reasonable exceptions may be made for files uploaded for an upcoming article. For other unused non-free files, use the "Orphaned non-free use" option in Twinkle\'s DI tab.',
hideWhenUser: true
},
{
label: 'F6: Missing fair-use rationale',
value: 'norat',
tooltip: 'Any file without a fair use rationale may be deleted seven days after it is uploaded. Boilerplate fair use templates do not constitute a fair use rationale. Files uploaded before 2006-05-04 should not be deleted immediately; instead, the uploader should be notified that a fair-use rationale is needed. Files uploaded after 2006-05-04 can be tagged using the "No fair use rationale" option in Twinkle\'s DI module. Such files can be found in the dated subcategories of Category:Files with no fair use rationale.',
tooltip: 'Any file without a fair use rationale may be deleted seven days after it is uploaded. Boilerplate fair use templates do not constitute a fair use rationale. Files uploaded before 2006-05-04 should not be deleted immediately; instead, the uploader should be notified that a fair-use rationale is needed. Files uploaded after 2006-05-04 can be tagged using the "No non-free use rationale" option in Twinkle\'s DI module. Such files can be found in the dated subcategories of Category:Files with no non-free use rationale.',
hideWhenUser: true
},
{
Expand Down

0 comments on commit ebdbb76

Please sign in to comment.