View text source at Wikipedia
Operator: JJMC89 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 04:16, Monday, January 30, 2017 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: Pending
Function overview: Replace BSicon redirects inside route diagram templates with the redirect target.
Links to relevant discussions (where appropriate): WP:BOTREQ#BSicons (permalink)
Edit period(s): Daily
Estimated number of pages affected: ~20,000 initially; varies afterward
Exclusion compliant: Yes
Already has a bot flag: Yes
Function details: Replace BSicon redirects inside route diagram templates with the redirect target.
{{Routemap}}
: Regex replace (\n|! !|!~|\\)%s(\n|!~|~~|!@|__|!_|\\)
in |map=
's value{{BS.*}}
: Replace any parameter value that matchesThe config has a blacklist and a whitelist.
This task was requested because the route diagram templates don't use syntax recognized by global replace / CommonsDelinker. — JJMC89 (T·C) 04:16, 30 January 2017 (UTC)[reply]
{{Routemap}}
are adding extra whitespace to the beginning and end of |map=
(7/50 edits; e.g. 1, 2). This has no effect on visual display. I will look into the cause — |map=
needs stripped or its a mwparserfromhell thing. — JJMC89 (T·C) 17:24, 1 February 2017 (UTC)[reply]{{Routemap}}
whitespace issue fixed. — JJMC89 (T·C) 06:39, 2 February 2017 (UTC)[reply]