https://bugzilla.wikimedia.org/show_bug.cgi?id=4582
--- Comment #249 from Philippe Verdy <[EMAIL PROTECTED]> 2008-11-30 10:38:31
UTC ---
Remove ALL this autoformatting mess from the [[]] syntax.
For me, [[2000-12-31]] is ONLY creating a link to an article named "2000-01-01"
(with no attempt to interpret it as a date, and NO attempt to reformat it as it
breaks data tables where they are NOT dates)
For me [[:2000-12-31]] is ALSO creating a link to the same article name, but
explicitly in the default namespace (and here also, it MUST not attempt to
reformat it).
Those that want autoformatting (according to the default locale set on the
server for the WHOLE Wiki project only, but NOT according to user preferences)
should have their own syntax, but if needed they can still use a template to do
that if there's no syntax support, like {{Date|2000|12|31}}.
If a syntax like <<2000-01-01>> is supported for autoformatting, it should NOT
create any link: liks should have to be spacified by users themselves like
this: [[2000-12-31|<<2000-12-31>>]], or using a template that performs both,
like {{DateLink|2000|12|31}} that can be defined as
[[{{{prefix|}}}{{{3}}}-{{{4}}}-{{{5}}}{{{suffix|}}}|{{{prefix|}}}<!--
--><span class="formated date" id="date-ymd-{{{3}}}-{{{4}}}-{{{5}}}"><!--
--><<{{{3}}}-{{{4}}}-{{{5}}}>><!--
--></span><!--
-->{{{suffix|}}}]]<!--
Such example template above performs three things:
- formatting the date for the DEFAULT display according to server-side Wiki
project defaults (3rd line);
- surrounding the DEFAULT disply format by enough HTML to allow user-level
preferences on the CLIENT side (via a Javascript gadget) (2nd and 4th lines);
- linking to an article (whose prefix and suffix part of the name can be given,
see 1st and 5th line), but whose format used in the target article name is
predictable and will not change even if the server's default format changes).
Now don't implement or remove date linking automatically from the [[ymd]] or
[[:ymd]] syntax!
This is not the role of MediaWiki to take such uninformed decision, but the
role of a community decision, only as a general rule where there may exist
exceptions for some famous dates, or within some namespaces or categories
related to content management and maintenance.
--
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 watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l