From b6102deec0cd4695734bb9aaf3dbda181c232552 Mon Sep 17 00:00:00 2001 From: fredster33 Date: Sun, 8 Dec 2024 00:31:51 -0800 Subject: [PATCH] tag: remove {{Now Commons}} (#2073) {{Now Commons}} is a CSD, not a tag. --- modules/twinkletag.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/modules/twinkletag.js b/modules/twinkletag.js index fb1f5d1b4..6f645ba84 100644 --- a/modules/twinkletag.js +++ b/modules/twinkletag.js @@ -1209,16 +1209,6 @@ Twinkle.tag.fileList = { 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', - subgroup: { - type: 'input', - name: 'nowcommonsName', - label: 'Commons image name if different:', - tooltip: 'Name of the image on Commons (if different from local name), excluding the File: prefix:' - } } ], 'Cleanup tags': [ @@ -1908,19 +1898,13 @@ Twinkle.tag.callbacks = { let tagtext = '', currentTag; $.each(params.tags, (k, tag) => { // when other commons-related tags are placed, remove "move to Commons" tag - if (['Keep local', 'Now Commons', 'Do not move to Commons'].indexOf(tag) !== -1) { + if (['Keep local', 'Do not move to Commons'].indexOf(tag) !== -1) { text = text.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*\}\}/gi, ''); } currentTag = tag; switch (tag) { - case 'Now Commons': - currentTag = 'subst:' + currentTag; // subst - if (params.nowcommonsName !== '') { - currentTag += '|1=' + params.nowcommonsName; - } - break; case 'Keep local': if (params.keeplocalName !== '') { currentTag += '|1=' + params.keeplocalName;