Wikipedia:Bots/Requests for approval/BattyBot 40
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: GoingBatty (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 04:18, Tuesday, February 10, 2015 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AutoWikiBrowser
Source code available: AWB
Function overview: When adding {{WikiProject Disambiguation}}, also update |class=
, |importance=
and |auto=
in other WikiProject templates
Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/BattyBot 34
Edit period(s): Occasional runs
Estimated number of pages affected: Hundreds
Exclusion compliant (Yes/No):
Already has a bot flag (Yes/No): Yes
Function details: BattyBot 34 was already approved to add {{WikiProject Disambiguation}} to existing talk pages for all disambiguation pages. Some of these talk pages have other WikiProject templates, which may have incorrect |class=
or |importance=
values. My proposal is two-fold:
- If another WikiProject template has
|class=
stub, start, redirect, list, C, B, blank, etc., then change it to|class=dab
. - If another WikiProject template has
|importance=
with any value other than NA, then remove the parameter. - If another WikiProject template has
|auto=
yes, stub, length, then remove the parameter.
See this diff for an example. Thanks! GoingBatty (talk) 04:18, 10 February 2015 (UTC)[reply]
Discussion
[edit]I don't think all Wikiproject templates use the dab class. I'm not sure what will happen if you add |class=dab
to one that doesn't? From the documentation of Template:WPBannerMeta there has to be |QUALITY_SCALE=extended
Jamesmcmahon0 (talk) 20:00, 10 February 2015 (UTC)[reply]
- @Jamesmcmahon0: In this diff, I added
|class=dab
to three templates. {{WikiProject Mythology}} is coded with|QUALITY_SCALE=extended
, while {{WikiProject Africa}} and {{WikiProject Nigeria}} is coded with|QUALITY_SCALE=subpage
. Talk:Abassi shows that each template has the Disambig-class rating, and there is a Disambig-class category for each WikiProject. - {{WikiProject Oz}} is coded with
|QUALITY_SCALE=standard
. Even though Talk:The Wizard of Oz has {{WikiProject Oz}}, the template shows an NA-class rating and a NA-class category. Therefore, I will not have the bot change|class=NA
, and changing from|class=stub
to|class=dab
should work fine. However, I would want some of these scenarios included in the trial. Thanks! GoingBatty (talk) 03:20, 11 February 2015 (UTC)[reply]- So, the upshot of your answer is that all Wikiproject templates use the dab class? Josh Parris 06:29, 20 February 2015 (UTC)[reply]
- No, the upshot is that it doesn't really matter; If you add
|class=dab
to a template it that uses it, it displays correctly. Otherwise it will display as NA-class which is also desirable. Jamesmcmahon0 (talk) 09:02, 20 February 2015 (UTC)[reply]
- No, the upshot is that it doesn't really matter; If you add
- So, the upshot of your answer is that all Wikiproject templates use the dab class? Josh Parris 06:29, 20 February 2015 (UTC)[reply]
Let's get this show on the road then. Approved for trial (5 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Josh Parris 09:30, 20 February 2015 (UTC)[reply]
- I have updated the function details to include the removal of
|auto=
, which is only valid for|class=stub
. GoingBatty (talk) 22:08, 20 February 2015 (UTC)[reply]- Trial complete. - see results in table below. GoingBatty (talk) 01:02, 21 February 2015 (UTC)[reply]
Page | Diff | WikiProject | QUALITY_SCALE | Class was | Class now | Class cat | Importance was | Importance now | Importance cat | Auto was | Auto now |
---|---|---|---|---|---|---|---|---|---|---|---|
Talk:A Touch of Jazz | diff | {{WikiProject Songs}} | subpage | redirect | dab | Disambig | - | - | - | - | - |
Talk:Aero-engined | diff | {{WikiProject Automobiles}} | extended | disambig | disambig | Disambig | Mid | - | NA | - | - |
{{WikiProject Business}} | subpage | disambig | disambig | Disambig | blank | - | NA | - | - | ||
Talk:Elizabeth Draper | diff | {{WikiProject England}} | extended | Stub | dab | Disambig | - | - | NA | yes | - |
{{WikiProject Biography}} | subpage | Stub | dab | Disambig | - | - | - | yes | - | ||
Talk:Flag of Korea | diff | {{WikiProject Heraldry and vexillology}} | subpage | stub | dab | Disambig | - | - | - | - | - |
{{WikiProject Korea}} | inline | Stub | dab | NA | High | - | NA | - | - | ||
Talk:Hardin Township, Iowa | diff | {{WikiProject Iowa}} | - | - | dab | NA | - | - | NA | - | - |
This isn't your first rodeo Approved. Josh Parris 19:10, 23 February 2015 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.