In comments, [Bb]ug #?<N> should be parsed as T<N+2000>: that is, "bug 323" would be rendered as T2323; or converted to "bug 323 (T2323)". Ideally, the full bugzilla syntax would be parsed/converted, see https://bzr.mozilla.org/bugzilla/4.4/view/head:/Bugzilla/Template.pm#L234
Potentially incomplete proposal:
| string in comment | to become |
| [Bb]ug 9123000 | bug 9123000 (T9125000) |
| [Bb]ug #9123000 | bug 9123000 (T9125000) |
| [Bb]ug 9123000 [Cc]omment 123 | bug 9123000 `[[ https://old-bugzilla.wikimedia.org/show_bug.cgi?id=9123000#c123 | comment 123 ]]` (T9125000) |
| [Bb]ug 9123000#c123 | bug 9123000 `[[ https://old-bugzilla.wikimedia.org/show_bug.cgi?id=9123000#c123 | comment 123 ]]` (T9125000) |
----
Use case:
@Chasemp: For sentences imported from Bugzilla tickets in comments like
*** Bug 12345 has been marked as a duplicate of this bug. ***
(yes, those are three stars at the start of the line turned into a bullet point, meh, another cosmetic thingy)
I know that some folks like to look at duplicates because they might provide more information about a bug and clicking instead of manual copy and paste fiddling sounds easier...