New to bots on Wikipedia? Read these primers!
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|hangul=
(I'm assuming that's implicit in this task)
ProcrastinatingReader (
talk)
12:14, 3 February 2024 (UTC)
reply
|hangul=
.{{linktext|김|하|늘}}
(currently found in
Kim Ha-nul (figure skater)) is not within |hangul=
.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