Jump to content

Wikipedia:Bots/Requests for approval/RustyBot 2: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
 
Line 56: Line 56:
*:@[[User:Pigsonthewing|Pigsonthewing]]: I just checked and realized that the number categories are subcats of the [[:Category:Years]] category. Does that mean that the bot does not need to put the page into the AD Years category? [[User:Rusty Cat|<span style="background-color:#15c;color:#ff0">'''Rusty'''</span>]]&nbsp;[[User talk:Rusty Cat|🐈]] 14:53, 16 September 2024 (UTC)
*:@[[User:Pigsonthewing|Pigsonthewing]]: I just checked and realized that the number categories are subcats of the [[:Category:Years]] category. Does that mean that the bot does not need to put the page into the AD Years category? [[User:Rusty Cat|<span style="background-color:#15c;color:#ff0">'''Rusty'''</span>]]&nbsp;[[User talk:Rusty Cat|🐈]] 14:53, 16 September 2024 (UTC)
*::Ah, I'd missed that. I guess so. I'll start [[Wikipedia:Categories for discussion/Log/2024 September 16#Category:Years|a separate discussion]] about subdividing [[:Category:Years]] into BC and AD sub-cats. <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 14:58, 16 September 2024 (UTC)
*::Ah, I'd missed that. I guess so. I'll start [[Wikipedia:Categories for discussion/Log/2024 September 16#Category:Years|a separate discussion]] about subdividing [[:Category:Years]] into BC and AD sub-cats. <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 14:58, 16 September 2024 (UTC)
*:::It was suggested to use categories like [[Category:Years of the 19th century]] instead, so I'm applying those now, using Cat-a-lot. <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 15:36, 29 September 2024 (UTC)
*:::It was suggested to use categories like [[Category:Years of the 19th century]] instead, so I'm applying those now, using Cat-a-lot. <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 15:36, 29 September 2024 (UTC)
*Which "R from" templates, if any, will be placed on the new redirects? I'm seeing one on [[AD 812]] and a different one on [[79 AD]]. Is there a systematic way of using them? – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 10:17, 17 September 2024 (UTC)
*Which "R from" templates, if any, will be placed on the new redirects? I'm seeing one on [[AD 812]] and a different one on [[79 AD]]. Is there a systematic way of using them? – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 10:17, 17 September 2024 (UTC)
*:I'd say that {{tl|R from year}} is what should be used here, as it states "This is a redirect from a formatted year title to the related year article."
*:I'd say that {{tl|R from year}} is what should be used here, as it states "This is a redirect from a formatted year title to the related year article."

Latest revision as of 10:10, 30 September 2024

New to bots on Wikipedia? Read these primers!

Operator: Rusty Cat (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 15:17, Sunday, September 15, 2024 (UTC)

Function overview: Categorize and create redirects to year pages (AD and BC).

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python (pywikibot)

Source code available: Will provide if needed

Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Articles about years: redirects and categories

Edit period(s): one time run

Estimated number of pages affected: about 1000-2000 year pages, so assuming we have to create 3 redirects for each, maximum 6000

Namespace(s): Main

Exclusion compliant (Yes/No): Yes

Function details: For each number 1-2000, the bot will operate on the pages "AD number" and "number BC".

  • On AD pages, the bot will append Category:Years AD to the page if it does not already have it.
  • The bot will create redirects "ADyear", "year AD", and "yearAD" to AD pages, and "BCyear", "BC year", and "yearBC" to the BC pages.


Discussion

[edit]