https://bugzilla.wikimedia.org/show_bug.cgi?id=28655
Bug #: 28655
Summary: Extend ParserFunction {{#time:}} to work with all
valid ISO 8601calendar dates
Product: MediaWiki
Version: wikimedia-deployment
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Current version of {{#time:}} as used on Wikimedia Commons do not support many
valid ISO 8601 dates. Dates in unsupported formats should report an error,
instead of rendering incorrect dates. Currently at Wikimedia Commons very
complicated and computationally expensive templates
(http://commons.wikimedia.org/wiki/Template:ISOdate and
http://commons.wikimedia.org/wiki/Template:ISOyear) are used to fix this
problem.
For example:
1) {{#time:Y|1945}} renders "2011" instead of expected "1945"
2) {{#time:F Y| 0099-01}} renders "January 1999" instead of expected "January
0099" ({{#time:F Y| 0099-01-01}} works fine)
3) {{#time:F Y| 0009-08 }} renders "August 2009" instead of expected "August
0009"
4) {{#time:d F Y| 002008-01-01 }} renders "21 April 2011" instead of "01
January 2008" or "Error: invalid time" (since it is not valid ISO 8601 date)
5) {{#time:d F Y| 02008-01-32 }} renders "08 January 2032" instead of "Error:
invalid time"
Also ideally user would be allowed to also specify language to be used when
rendering months, this would allow us on commons to retire or simplify series
of templates duplicating {{#time:}} which allow display of dates in "d F Y" or
"F Y" format in the language specified by outside parameter, see
http://commons.wikimedia.org/wiki/Template:Date.
All those templates are heavily used:
1) Template:Date > 7.1M transclusions
2) Template:ISOdate > 9.3M
3) Template:ISOyear ~.4M
Complexity of those templates causes frequent bumping into template expansion
limit in templates using them.
--
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