From 83ead7b05c45f0da2787c461a410d43dedc37515 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 15 Jul 2017 14:32:23 +0300 Subject: [PATCH 1/2] remove Location parameter when it's not needed Remove Location parameter when found *and* it has no value. On Commons it's not recognized and generates a "Error in template * unknown parameter name (Template:Information): 'Location'" --- ForTheCommonGood/en.wikipedia.wiki | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ForTheCommonGood/en.wikipedia.wiki b/ForTheCommonGood/en.wikipedia.wiki index b86508f..44635b3 100644 --- a/ForTheCommonGood/en.wikipedia.wiki +++ b/ForTheCommonGood/en.wikipedia.wiki @@ -79,6 +79,10 @@ Message=The file is tagged with {{c-uploaded}}. It originated from Commons and s IfContains={{split media Message=The file is tagged with {{split media}}. Click "Select version..." above to view earlier versions; you may need to transfer each one separately. +[Replacement] +LookFor=\| *Location *= *\n*(\||\}\}) +ReplaceWith=$1 + [Replacement] LookFor={{orphan image.*}}\n? ReplaceWith= From 014a0755275773e35da48372de1937e583732142 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 20 Jul 2017 15:25:58 +0300 Subject: [PATCH 2/2] -category redirect; +new replacement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *removed category redirect *new replacement: {{Convert to SVG and copy to Wikimedia Commons}} → {{SVG}}, per suggestion on wiki --- ForTheCommonGood/en.wikipedia.wiki | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ForTheCommonGood/en.wikipedia.wiki b/ForTheCommonGood/en.wikipedia.wiki index 44635b3..be85b05 100644 --- a/ForTheCommonGood/en.wikipedia.wiki +++ b/ForTheCommonGood/en.wikipedia.wiki @@ -10,8 +10,8 @@ LocalFtcgPage=w:en:WP:FTCG Category1=Copy to Wikimedia Commons Category2=Copy to Wikimedia Commons (bot-assessed) -Category3=Move to Commons Priority Candidates -DefaultCategory=3 +Category3= +DefaultCategory=1 Information=Information Description=Description @@ -91,6 +91,10 @@ ReplaceWith= LookFor={{needs commons category}} ReplaceWith= +[Replacement] +LookFor={{Convert to SVG and copy to Wikimedia Commons}} +ReplaceWith={{SVG}} + [Replacement] LookFor={{(bots|nobots|Wikipedia:Bots/Status/template)[^\}]*}} ReplaceWith=