diff --git a/modules/twinkletag.js b/modules/twinkletag.js index 447636201..f0cf8e356 100644 --- a/modules/twinkletag.js +++ b/modules/twinkletag.js @@ -1215,16 +1215,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': [ @@ -1912,19 +1902,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;