https://bugzilla.wikimedia.org/show_bug.cgi?id=17905
Summary: Add a magic word to specify the default format for the
new formatdate parser function
Product: MediaWiki
Version: 1.15-svn
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: enhancement
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=5906)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=5906)
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:
1. It requires dates to be linked.
2. 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").
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l