Jump to content

Template talk:Monthly clean-up category

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Purge cache

[edit]

Great template! However, the "purge server cache" link isn't working in a very intuitive fashion. For example, if you click the link in Category:Dead-end pages from August 2007, it takes you to Category:Wikify from October 2007.--Fabrictramp 21:25, 1 October 2007 (UTC)[reply]

 Fixed — Preceding unsigned comment added by Pascal666 (talkcontribs) 08:22, 2 May 2009 (UTC)[reply]

Todo

[edit]
  1. fix the purge - use SERVER PAGENAME etc.. currently in process of breaking it more.
     Done .. {{purge}} someone was here before...
  2. Remove month not necessary
     Done — Preceding unsigned comment added by Pascal666 (talkcontribs) 08:22, 2 May 2009 (UTC)[reply]
  3. discuss TOC...

Rich Farmbrough, 16:01 2 October 2007 (GMT).

  1. Ask at WP:BOTS to build a bot to preform maintenance of this template. —Dispenser 19:22, 9 November 2007 (UTC)[reply]
    What kind of maintenance? --Pascal666 08:22, 2 May 2009 (UTC)[reply]

Suggestion

[edit]

Would it feasable/worthwhile to get this to link to the previous/following month's worth, if it exists? -- Ratarsed (talk) 19:49, 8 March 2008 (UTC)[reply]

It is feasible. I have written some templates that do that fro the international cinema by year articles. However I'm thinking of making the template auto calculate the month and year, so a simple wrapper would be needed. Actaully a wrapper/core might be the way to go anyway. Rich Farmbrough, 16:33, 13 October 2009 (UTC).[reply]

Expression error: Unrecognised punctuation character ","

[edit]

Some categories are displaying this message in red just after the Contents box:

Expression error: Unrecognised punctuation character ","

It seems to happen whenever the total is over 999, for example Category:Unreferenced BLPs from March 2008 has: "The following 200 pages are in this category, out of 1,099 total."

All with problems are: Category:Unreferenced BLPs from March 2008, Category:Unreferenced BLPs from April 2008, Category:Unreferenced BLPs from October 2008 , Category:Unreferenced BLPs from December 2008, Category:Unreferenced BLPs from January 2009, Category:Unreferenced BLPs from February 2009, Category:Unreferenced BLPs from March 2009 and Category:Unreferenced BLPs from April 2009. Other categories are Ok. I could not find anything obvious in this template nor in the way it is transcluded in the categories. I tried purge cache too. 84user (talk) 23:14, 28 April 2009 (UTC)[reply]

 Fixed — Preceding unsigned comment added by Pascal666 (talkcontribs) 08:22, 2 May 2009 (UTC)[reply]

Can we please make this template collapsible?

[edit]

The list created by this template gets really long in some categories, such as Category:Merge by month and Category:Orphaned articles for example, leaving a big empty whitespace. An optional |collapse=yes or |hide=yes parameter would be really nice to have for these situations. Especially when the list of months is already duplicated in the "Subcategories" section below it, making the sidebar list really redundant. -- œ 04:27, 25 July 2010 (UTC)[reply]

Added to {{Progress box}}. Rich Farmbrough, 00:05, 14 October 2012 (UTC).[reply]

Combine boxes

[edit]

Rather than producing two separate boxes like this:

this template should pass a parameter to {{wikipedia category}} and produce this:

It also currently passes a useless inhibit parameter that isn't recognized by {{wikipedia category}}. The following addresses this:

Code moved to Template:Monthly clean-up category/core/sandbox for convenience. — Martin (MSGJ · talk)

Thanks Gurch (talk) 14:15, 16 June 2011 (UTC)[reply]

Fixed your code and made a few other changes. Please confirm you are okay with these changes and I'll sync. — Martin (MSGJ · talk) 11:45, 17 June 2011 (UTC)[reply]
That looks OK. Note that the reason I didn't have <includeonly>'s in the places you've put them is that the whole of Template:Monthly clean-up category/core is wrapped in <includeonly> ... </includeonly> (as was my proposed replacement, before it was moved); I'll leave it up to you which method is better. Gurch (talk) 23:09, 17 June 2011 (UTC)[reply]
I always prefer to minimise the amount of stuff inside includeonly. For one thing it makes it easier to spot mistakes (like this time) before it goes live.  Done — Martin (MSGJ · talk) 12:09, 20 June 2011 (UTC)[reply]

Edit request on 1 December 2011

[edit]

In the {{Db-g6}} code (within this template), please change "It" to "it" in the reason, as it appears as part of a sentence, and thus it should not be capitalized. The template currently shows up as "This category may meet Wikipedia's criteria for speedy deletion because It is a monthly clean-up category that has been emptied."

Logan Talk Contributions 00:23, 1 December 2011 (UTC)[reply]

Good catch. It's on the third line here. Debresser (talk) 07:29, 1 December 2011 (UTC)[reply]
 Done; thanks. Chris Cunningham (user:thumperward) (talk) 11:46, 1 December 2011 (UTC)[reply]

Edit request

[edit]

Why is this template set to tag categories for deletion at 2 months after the expiry of the category rather than the month after?

|{{#ifexpr:abs({{CURRENTYEAR}}*12+{{CURRENTMONTH}}-{{{year|0}}}*12-{{{monthno|0}}})>1

The 1 at the end should be changed to 0. — Train2104 (talk • contribs) 14:43, 13 January 2012 (UTC)[reply]

You are asking a question, or requesting an edit? Let's wait for the answer first. Debresser (talk) 16:14, 14 January 2012 (UTC)[reply]
I was requesting an edit, the rationale for which I stated in the form of a question. — Train2104 (talk • contribs) 20:44, 14 January 2012 (UTC)[reply]
I had some dealings with this template one, and I asked Rich, who made it and is the expert on it,and I seem to remember that even though it says >1 and that should be 2, but it still comes down to 1, for some reason. Which is why I really think we should wait for Rich. Debresser (talk) 23:14, 14 January 2012 (UTC)[reply]
Basically neither the current month,not the previous will be CSD'd. Obviously the current month can still have articles added to it. Less obviously the previous month can, for example by reverts, mistake and time difference. For example it is still January in parts of the US until well into the 1st of February. Comparing the two ills I prefer to leave a few empty categories rather than have categories continually created and destroyed. Rich Farmbrough, 23:17, 14 January 2012 (UTC).[reply]

Edit request on 26 December 2012

[edit]

The category name that this template appears to have "Wikipedia" misspelled in it, so it may not be showing up properly in the cats. I would have changed it but needs adminsitraiton level access to change it. Lestatdelc (talk) 10:43, 26 December 2012 (UTC)[reply]

Done The category was inside the <noinclude>...</noinclude>, so it was only this one template that was being miscategorised, and not the pages transcluding it. Not sure if Category:Wikipedia formatting and function templates is the right place for this template though. --Redrose64 (talk) 20:51, 8 March 2013 (UTC)[reply]

Another edit request

[edit]

Replace

{{Db-g6|days=zero|rationale=it is a monthly clean-up category that has been emptied}}

with {{db-maintenance}}. — Train2104 (talk • contribs) 04:29, 21 February 2012 (UTC)[reply]

{{db-maintenance}} just redirects to {{Db-g6}}. Is there any particular reason you want to swap them over? Also, it wasn't entirely clear - do you want to keep the days= and rationale= parameters? Tra (Talk) 06:05, 21 February 2012 (UTC)[reply]
Whoops I didn't realize they redirect. Then remove the parameter since deletion log summaries never use "it" and the standard G6 summary is enough. — Train2104 (talk • contribs) 15:55, 21 February 2012 (UTC)[reply]
I took out |days=zero as it doesn't seem to do anything when I looked through {{db-g6}}'s source code. I think it would be better to leave the rationale parameter though since {{db-g6}} does recommend using one, and we might as well make it clear to passing editors/admins what the deletion tag is about if they see it. Tra (Talk) 16:48, 21 February 2012 (UTC)[reply]

I just noticed that for the g6 template, it will tell you you can remove the tag, which is not the case for any monthly clean-up category. I was going to submit an edit request, but realized there wasn't much to do because it was in the G6 template. So, if ever someone wants to create a special deletion category for this, it has got to not say to remove the template.  —Mysterytrey 03:28, 24 August 2014 (UTC)[reply]


Fix depth of Template:Monthly_clean-up_category/monthname

[edit]

There has been an expansion-depth limit exceeded, and so the related subtemplate, Template:Monthly_clean-up_category/monthname needs to be updated from the /sandbox version. The fix changes the search to use efficient Template:Strfind_short (with only 9 expansion levels), rather than the prior Template:Str_find_long with 23 levels plus {Str_right} totalling to 35 levels of the 40-level limit. The /sandbox version also has more doc-text to explain the use of the template. -Wikid77 (talk) 17:12, 29 August 2012 (UTC)[reply]

 Done -- WOSlinker (talk) 18:10, 29 August 2012 (UTC)[reply]

Disable automatic CSD template for current month.

[edit]

If you take a look at Category:Articles with close paraphrasing of public domain sources from October 2012 and a few others, they are currently tagged for CSD for being empty, even though the month just started. They cant be removed from CAT:CSD either, needlessly filling up the category.

Would it be possible to implement a quick parser function that checked if {{CURRENTMONTH}} {{CURRENTYEAR}} != the month of the category before activating the CSD template? LegoKontribsTalkM 07:59, 2 October 2012 (UTC)[reply]

Done in this edit by Reaper Eternal. The template just needed to know the correct month and date. Debresser (talk) 13:40, 2 October 2012 (UTC)[reply]

This was designed in from day 1. What happened here? Rich Farmbrough, 00:02, 14 October 2012 (UTC).[reply]

AH, very long category name by the look of it. Rich Farmbrough, 00:04, 14 October 2012 (UTC).[reply]

Add optional text parameter?

[edit]

Could an optional text parameter be added to this template so that it does not output gibberish such as This category combines all use British (Oxford) English from April 2013? That particular case needs something like "articles that" to be inserted before the template name, but I imagine that other cases would require other text. Thank you, Justlettersandnumbers (talk) 09:10, 16 April 2013 (UTC)[reply]

Months from 2006 missing

[edit]

The template, as used in Category:Articles lacking sources from August 2006, only shows back as far as December 2006. It doesn't show August 2006, nor October 2006‎, nor November 2006. (Note that the August 2006 category might have been empty for a while.) -- Gyrofrog (talk) 17:54, 12 November 2014 (UTC)[reply]

"Wikipedia" is a proper noun

[edit]

On categories such as Category:Wikipedia spam cleanup from February 2016, it currently says "This category combines all wikipedia ..." but it should say "This category combines all Wikipedia ...". This can be fixed by making an edit to Template:Monthly clean-up category/outer core that detects whether {{First word|{{{name part}}}}} gives "Wikipedia" using "ifeq". GeoffreyT2000 (talk) 05:34, 1 February 2016 (UTC)[reply]

You mean that it uses "lcfirst" in | type = {{#if:{{{type|}}}|{{{type}}}| {{lcfirst:{{{name part}}}}}}}? Debresser (talk) 18:35, 1 February 2016 (UTC)[reply]
Yes. It should be modified to have {{#ifeq:{{First word|{{{name part}}}}}|Wikipedia|Wikipedia|{{lcfirst:{{{name part}}}}}}}. GeoffreyT2000 (talk) 23:08, 1 February 2016 (UTC)[reply]
That looks like correct code. I even remember why the {{lcfirst:{{{name part}}}}} part was added. :) Okay, this should be uncontroversial. Debresser (talk) 23:33, 1 February 2016 (UTC)[reply]
But now it just says "Wikipedia". Please change the code to {{#ifeq:{{First word|{{{name part}}}}}|Wikipedia|{{{name part}}}|{{lcfirst:{{{name part}}}}}}}. GeoffreyT2000 (talk) 23:36, 1 February 2016 (UTC)[reply]
Yep, I had noticed, and yes, that should be the fix. Debresser (talk) 23:47, 1 February 2016 (UTC)[reply]
Done and works. Thanks. Debresser (talk) 23:49, 1 February 2016 (UTC)[reply]

Protected edit request on 28 February 2017

[edit]

Please sync with Template:Monthly clean-up category/monthname/sandbox. This version handles cases where the word "from" is in the name part of the category. — Train2104 (t • c) 02:31, 28 February 2017 (UTC)[reply]

Not done: The page's protection level has changed since this request was placed. You should now be able to edit the page yourself. If you still seem to be unable to, please reopen the request with further details. May also want to move the documentation to docspace. Jo-Jo Eumerus (talk, contributions) 16:24, 28 February 2017 (UTC)[reply]

Template-protected edit request on 26 February 2020

[edit]

Please apply code from sandbox (diff). Documentation has been moved to Template:Monthly clean-up category/monthname/doc. —⁠andrybak (talk) 22:34, 26 February 2020 (UTC)[reply]

Done DannyS712 (talk) 03:23, 27 February 2020 (UTC)[reply]

Template-protected edit request on 8 May 2021

[edit]

There are a couple of extra blank lines created in the display; I have made changes to fix this in the sandbox. — Goszei (talk) 07:37, 8 May 2021 (UTC)[reply]

To editor Goszei:  done, and thank you very much! P.I. Ellsworth  ed. put'r there 15:19, 8 May 2021 (UTC)[reply]

db-g6 doesn't work

[edit]

{{Monthly clean-up category/core}} is intended to automatically "place" a {{db-g6}} template on an empty category, which doesn't work at all (compare [1][2]). I don't know how to fix this, just pointing it out. ~~ lol1VNIO (I made a mistake? talk to me) 21:38, 17 November 2022 (UTC)[reply]