From d04518c049a3de9e5b99bdb7444224d966feecf9 Mon Sep 17 00:00:00 2001 From: TollensWP Date: Thu, 5 Sep 2024 18:33:00 -0600 Subject: [PATCH] tag: add deleted/nominated on Commons (#1959) --- modules/friendlytag.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/modules/friendlytag.js b/modules/friendlytag.js index 6c6eeb836..2870a49b4 100644 --- a/modules/friendlytag.js +++ b/modules/friendlytag.js @@ -1166,6 +1166,16 @@ Twinkle.tag.fileList = { ], 'Wikimedia Commons-related tags': [ { label: '{{Copy to Commons}}: free media that should be copied to Commons', value: 'Copy to Commons' }, + { + label: '{{Deleted on Commons}}: file has previously been deleted from Commons', + value: 'Deleted on Commons', + subgroup: { + type: 'input', + name: 'deletedOnCommonsName', + label: 'Name on Commons:', + tooltip: 'Name of the image on Commons (if different from local name), excluding the File: prefix' + } + }, { label: '{{Do not move to Commons}}: file not suitable for moving to Commons', value: 'Do not move to Commons', @@ -1196,6 +1206,16 @@ Twinkle.tag.fileList = { tooltip: 'Name of the image on Commons (if different from local name), excluding the File: prefix:' } }, + { + label: '{{Nominated for deletion on Commons}}: file is nominated for deletion on Commons', + value: 'Nominated for deletion on Commons', + subgroup: { + type: 'input', + name: 'nominatedOnCommonsName', + label: 'Name on Commons:', + tooltip: 'Name of the image on Commons (if different from local name), excluding the File: prefix:' + } + }, { label: '{{Now Commons}}: file has been copied to Commons', value: 'Now Commons', @@ -1959,6 +1979,16 @@ Twinkle.tag.callbacks = { case 'Should be SVG': currentTag += '|' + params.svgCategory; break; + case 'Nominated for deletion on Commons': + if (params.nominatedOnCommonsName !== '') { + currentTag += '|1=' + params.nominatedOnCommonsName; + } + break; + case 'Deleted on Commons': + if (params.deletedOnCommonsName !== '') { + currentTag += '|1=' + params.deletedOnCommonsName; + } + break; default: break; // don't care }