Category talk:Pages using duplicate arguments in template calls

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Templates[edit]

Hi all,

Below a list of templates which seem to cause quite some errors because they are used a lot.

It might be a while until they are updated. Edits to templates used on many pages take a while to be updated to every file using it. I think a list of files needing a purge is generated but placed in the queue with the lowest priority. --Jarekt (talk) 03:51, 29 December 2014 (UTC)[reply]
Still the high number of cats related is listed, while the pages don't have the category mentioned. Does the caching backlog take this long? Mvg, Basvb (talk) 17:09, 4 January 2015 (UTC)[reply]
There was "1" and unnamed parameter in language subtempates like /en, etc. --Jarekt (talk) 04:53, 28 December 2014 (UTC)[reply]

Mvg, Basvb (talk)

Very brave that you tackled this, thanks. My attempts on Meta and here were either trivial or failed so far, all those i18n template box constructs are rather convoluted. –Be..anyone (talk) 03:53, 28 December 2014 (UTC)[reply]
I was working on templates, creator templates and Institution templates for a while now, but many of them I just can not find the issue. See and comment about phabricator:T85352. --Jarekt (talk) 04:39, 28 December 2014 (UTC)[reply]
I sort of found the double parameter in Template:Sisterwikis, see Template talk:Sisterwikis, I'm not that good with templates but it might be possible to rewrite that template a bit. Mvg, Basvb (talk) 14:38, 28 December 2014 (UTC)[reply]
I've written some other templatecode which does the same as template sisterwikis but much simpler. But it would require some checking and testing because I'm not that experienced with template writing. Mvg, Basvb (talk) 14:46, 28 December 2014 (UTC)[reply]
I would check if some other wikipedia has a version of this template that works better. There is not need to rediscover a wheel here. --Jarekt (talk) 20:07, 4 January 2015 (UTC)[reply]
I believe that my suggested fix at Template talk:Sisterwikis is a clear and easy fix. But don't fully grasp the current working of the template, so am not convinced enough to state that it works with 100% certainty. Mvg, Basvb (talk) 15:27, 6 January 2015 (UTC)[reply]
I've added an {{Editprotected}} to add a {{Delete}}. Fixing it might be better, but starting from scratch is also an idea. Up to 200 individually evaluated positional parameters is gross (as of 2006 before parser functions existed, let alone scribunto modules.) –Be..anyone (talk) 07:34, 24 January 2015 (UTC)[reply]
What's your plan for all the instances where it is used? Fixing it seems like a better plan than throwing it away. Although my proposal pretty much a complete recreation of the template (replacing instead of fixing). Deleting it seems like an option when there is a replacement ready. Mvg, Basvb (talk) 19:55, 24 January 2015 (UTC)[reply]
They can be turned into NOPs (do nothing) until a working solution exists, the sisterwiki info is anyway rather ugly: Up to 200 manually maintained language links per sister isn't state of the art since wikidata exists. Maybe a scribunto module could track real dupe errors, if somebody has the time and skills for this. Maybe a working solution can be imported from another project. –Be..anyone (talk) 02:26, 25 January 2015 (UTC)[reply]
{{Sisterwikis}} works for me now, I've cancelled my DR, thanks. Of course 200 paramters and no Scribunto is still rather odd, but that's a case for BROKE.:-)Be..anyone (talk) 18:23, 29 January 2015 (UTC)[reply]

Pages in category which at the page itself no longer show the category[edit]

Hi all,

Template:States of Germany, and with that thousands of categories (which use it or a subtemplate of it) still show up in this category. I've fixed the duplicate arguments for States of Germany a month ago. Is this likely still a caching issue or a weird bug?

Mvg, Basvb (talk) 23:39, 23 January 2015 (UTC)[reply]

Simple regex cleanup[edit]

I did some simple regex-replacements for the files, replacing double parameters with empty content (only directly behind each other) and with the same content. Also fixed some of the bigger batches. Ended up getting it down from 28.000 to 16.000, in the later letters of the alphabet there are likely still quite some big fixable batches. For the rest it seems that there are quite some more complicated cases. However the fact that you've to search for the parameter to fix makes the task quite a bit harder than in could be.

Removing empty parameters which are duplicate but not behind each other likely could cause quite a big number to be fixed.

Mvg, Basvb (talk) 19:26, 17 February 2015 (UTC)[reply]

Finding patterns[edit]

Hi all,

This query can be used to find the number of files per uploader. By sorting on those with the most files uploaded some patterns with a lot of occurrences can be found. With this query uploads from a user found can be searched. By sorting on date and using perform batch task some patterns might be easily fixable.

Mvg, Basvb (talk) 23:29, 1 March 2015 (UTC)[reply]

Don't get me wrong, but all I know about quarry is that my proposal to remove the new Interwiki was a case of bad timing+plain nonsense. Are these some API queries determined, canned, and shared by you? When would I want to use these queries? The tracking category is certainly annoying as long as it's not empty, but it never occurred to me that it's populated by users instead of (arguably) broken templates used by auto-translated templates hidden deep in lang-switched templates, or similar. –Be..anyone (talk) 04:39, 5 March 2015 (UTC)[reply]
These are some queries designed by me (well designing is a big word they're largely derived from other queries). They look at the uploaders of the files. The idea behind that is when a lot of files come from the same uploader they might have the same mistake/error in them. Which gives a good starting point for some larger fixes. Mvg, Basvb (talk) 08:54, 5 March 2015 (UTC)[reply]

Making it much easier to find these errors[edit]

I just got a change merged into Gerrit that will make it much easier to find the source of duplicate argument errors. It's live on the beta cluster now, and it will be live here soon. You can try it by editing and previewing any page in [1]. Jackmcbarn (talk) 19:06, 28 May 2015 (UTC)[reply]

Jackmcbarn, Thank you we are eagerly waiting and planning to put the new capability to a good use. --Jarekt (talk) 20:00, 28 May 2015 (UTC)[reply]
Nice improvement, however on the beta files/templates I can not find what to look at yet. Basvb (talk) 09:32, 29 May 2015 (UTC)[reply]
It took ma a while too to find it, but what you need to do is to click edit and than preview. Than there will be a message. It is a little convoluted and I would prefer to see it in the view mode, but it will be much better than nothing as we have now. --Jarekt (talk) 13:22, 29 May 2015 (UTC)[reply]

This change is now live here. Jackmcbarn (talk) 18:15, 10 June 2015 (UTC)[reply]

Nice, I'll give it a go, I see that somebody has already fixed the 20k categories with the similar problem, wonderful! Basvb (talk) 22:58, 10 June 2015 (UTC)[reply]

Failure message with parameter "ur"[edit]

A lot of pages are only in this list, because they are using the template Germany Germany. The reason is only this template, but not all these pages. I find out, that there is no failure with the template Austria Austria(for example). --Friedo (talk) 13:42, 26 September 2015 (UTC)[reply]

I think, I could solve this problem by deleting the failure in this template. --Friedo (talk) 13:59, 26 September 2015 (UTC)[reply]

Two main template errors[edit]

Currently, the two main sources of errors are BryanBot/DiscussionIndex and {{SVG Chart}}. --Auric (talk) 00:39, 5 June 2016 (UTC)[reply]

Nonsense?[edit]

https://commons.wikimedia.org/w/index.php?title=File:Massive_nuclear_sunrise_through_ice_clouds.jpg&oldid=551789911 is in this category, but there is no red warning upon editing. And I can't see the problem. Jidanni (talk) 06:31, 11 April 2021 (UTC)[reply]

Pages in category which at the page itself no longer show the category (2)[edit]

Hello, when a template has been corrected, the page that uses it always appears here. How do we purge the category? "Purge" the category or files does not work, but editing files one by one works but it's not good. Gzen92 [discuter] 07:52, 4 November 2021 (UTC)[reply]