Wikipedia:Bots/Requests for approval/PrimeBOT 43
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: Primefac (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 19:47, Friday, February 2, 2024 (UTC)
Function overview: Avoid unnecessary wiktionary linking in {{linktext}} calls with Korean text (by removing template call)
Automatic, Supervised, or Manual: Automatic
Source code available: WP:AWB
Links to relevant discussions (where appropriate): WT:MOS/Korea discussion
Edit period(s): OTR, though potentially re-run every year or two as I suspect it will take a while for this to "catch on"
Estimated number of pages affected: Max 22,605 (current transclusion count), estimated ~6k
Namespace(s): Article
Exclusion compliant (Yes/No): Yes
Function details: Remove transclusions of {{linktext}} where each passed parameter is a single Korean character (and/or spaces) as consensus appears to be that this is undesired, replacing them with just the raw characters. A fuller/even more detailed description is at the BOTREQ, but I'll explain a bit more here:
Any template call of {{linktext}} with only [0-9가-힣]
as the characters/parameters (with or without surrounding whitespace) will be replaced with just the characters. Examples:
{{linktext|국|립|중|앙|도|서|관}}
→국립중앙도서관
(only single characters){{linktext|새|터|데|이| 나|이|트| 라|이|브| 코|리|아|}}
→새터데이 나이트 라이브 코리아
(space characters retained){{linktext|中|文|維|基|百|科}}
left as is: contains characters other than[0-9가-힣]
{{linktext|새|마을|호}}
left as is: contains two or more adjacent characters in one parameter
Discussion
[edit]- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. ProcrastinatingReader (talk) 12:12, 3 February 2024 (UTC)[reply]
- By the way, perhaps worth limiting the bot to content within
|hangul=
(I'm assuming that's implicit in this task) ProcrastinatingReader (talk) 12:14, 3 February 2024 (UTC)[reply]- No, please do not apply such a condition. They don't always appear within
|hangul=
. - For example,
{{linktext|김|하|늘}}
(currently found in Kim Ha-nul (figure skater)) is not within|hangul=
. - Please implement the request as submitted. 172.56.232.203 (talk) 14:01, 3 February 2024 (UTC)[reply]
- No, please do not apply such a condition. They don't always appear within
- By the way, perhaps worth limiting the bot to content within
- By the way, the more accurate estimated number of pages affected would be 6109 (as of this writing). See this. 172.56.232.203 (talk) 14:11, 3 February 2024 (UTC)[reply]
Trial complete. Edits. Not really sure why the 51st slipped in there since I had max edits set (sorry). Primefac (talk) 13:33, 4 February 2024 (UTC)[reply]
- Approved. ProcrastinatingReader (talk) 13:45, 4 February 2024 (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 Wikipedia:Bots/Noticeboard.