Patch against r48261 to add a DEFAULTDATEFORMAT magic word
In the recent brouhaha on enwiki over the current link-based date formatting, there were two major actionable concerns:
- It requires dates to be linked.
- IP users use the "default" format, which outputs dates as entered; editors may not be aware of this if they have set a preference, as they will see all dates in the same format.
(There was also some whining about cluttering the edit window and people entering broken wikitext, but there's nothing much that can be done about that)
r48249 takes care of #1, and r48254 takes care of #2 in trivial cases. But consider the case where formatdate is used many times in the page, possibly inside transcluded templates: every use of formatdate must specify the same format, and every template containing a formatdate must take a "date format" parameter which must be used on every use of the template. It would be much more convenient if we could use a magic word to specify a default value for the parameter, much like the DEFAULTSORT magic word does for category sort keys.
I've attached a patch that does just that: it adds a DEFAULTDATEFORMAT magic word, and formatdate will use that setting if the user preference is "default" and formatdate's optional parameter is not used (or set to "default").
attachment diff ignored as obsolete