On Monday, 13. October 2008, CNIT wrote: > > Output is already localised anyway, using the wiki language in the > > Factbox and the user language in Special:Browse etc. It is technically > > not possible (without much added processing effort) to localise page > > contents to user settings, since the wiki page is cached for all users. > > > >> but also > >> it would be nice to have > >> compatibility with current {{#time}} calculations, which allows nice > >> things, like "show me > >> the articles from that category and limit to current week/month": > >> http://sandbox.semantic-mediawiki.org/wiki/Test_query#Date_filtering > > > > Do you mean we should support input of the form "2008-W41"? > > There should be way to perform time calculations. Maybe a input of date > in seconds > stored in 64bit number, so it can store dates from Noah to 2100 century. > Then, the time calculations can be performed in templates.
Plain numbers are interpreted as years. There could be another syntax for what you want here, though. Should not be a major problem, if we have a syntax proposal. > > It would be a good idea to have "cross-wiki" international format > such as http://en.wikipedia.org/wiki/ISO8601 in addition to localized > formats, > so the dates can be imported easily from another language wikies. That is already in place: SMW will accept English data formats in any language (this is a requirement for upgrading existing wikis anyway). > > Also, localized formats aren't fixed, here in Russia the same date can be > displayed either as > 13 Oktyabrya 2008 > or > 13.10.2008 > so, it would be nice to be able to specify formatting in printouts, > something like > {{#ask:...|?Date{d.M.y}|...}} We have thought of enabling this later on. It might also be possible to specify printout formats by example, to avoid complicated syntax. The { } is the first concrete syntax proposal for adding parameters to printouts -- for output formatting, we can use #... already, but maybe {} could work for other parameters. Would ?date{limit=3, format=ul} be nice? > > > Dates are horrible thing - they use complex numerical base. I've had a > pain of building > a query which should return pages of memorable dates from past > centuries, where only > day and month should match with current one. Yes, that would be difficult. > > These templates helped me a lot: > http://meta.wikimedia.org/wiki/Category:Date_computing_template > many thanks to hard work of the people who had implemented these. > > By the way, these templates already ISO8601 compliant: > http://meta.wikimedia.org/wiki/Template:YMD2MJD > Maybe it would be nice to have compatibility with such templates. Thanks for the pointer. We will have a look. Markus > > Dmitriy > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Semediawiki-devel mailing list > Semediawiki-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- Markus Krötzsch Semantic MediaWiki http://semantic-mediawiki.org http://korrekt.org [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel