On 9/10/06, Mark Clements gmane@kennel17.co.uk wrote:
Why not have a rewrite rule, that looks at the format of the display text and rewrites it only if appropriate?
e.g.
[[1976|AD 1976]] is detected as being an AD date, and rewritten if necessary [[1976|the following year]] does not match, so no changes are made.
If the display text matches Year Epoch or Epoch Year (where Epoch = BC, AD, BCE or CE and ignoring case and whitespace) then rewrite according to user preferences, in all other cases leave as it is.
That sounds like a good idea, so I'll go ahead and add that into the patch.
It'll mean some additional regular expression matching, which will slow down parsing and page display ever-so-slightly, but that seems better than rewriting display text in a potentially unexpected (or unwanted) manner.
-Bill