Wikipedia:Bots/Requests for approval/SimplexityBot
Operator: Simplexity22 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:52, Thursday, February 1, 2018 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AWB
Source code available:
Function overview: Removes direct wikilinks to the same article.
Links to relevant discussions (where appropriate): All edits would be minor visual fixes, and this task has been approved in the past (e.g. Wikipedia:Bots/Requests for approval/MenoBot 4, checkwiki error 48), so I don't think discussion is necessary.
Edit period(s): Approximately once per month.
Estimated number of pages affected: 4000 initially, 100–200 per month thereafter.
Namespace(s): Mainspace
Exclusion compliant (Yes/No): Yes
Function details: Removes direct wikilinks (i.e. not including redirects) to the same article, using this list. Such links do not function, and appear bold inadvertently or improperly. Links that would already be bold (e.g. '''[[Link]]''' or <b>[[Link]]</b>) would be skipped, except in cases where the text would remain bold as a parameter of a template. Cases where the link is immediately preceded by ''' or <b> would be skipped.
- On the article Word, [[word]] → word.
- (regex: (?<!(?i)<b>(?-i)|''')\[\[(%%fullpagename%%)]] → $1)
- Also on Word, [[word|text]] → text.
- (regex: (?<!(?i)<b>(?-i)|''')\[\[%%fullpagename%%\|(.+?)]] → $1)
Discussion
- So for example, on 10K this page will be skipped? — xaosflux Talk 18:24, 2 February 2018 (UTC)
- @Xaosflux: Yes, that would be skipped. I've updated the wording above to be more clear. Simplexity22 (talk) 22:03, 2 February 2018 (UTC)