Re: [Wikitech-l] User signature time wrapped in a span

2013-04-04 Thread Brion Vibber
On Wed, Apr 3, 2013 at 4:15 PM, Daniel Friesen wrote: > On Wed, 03 Apr 2013 15:34:28 -0700, Brion Vibber wrote: > > Parsing the timestamps in the text is a bit tough as it may be different >> in >> different languages my recommendation is to include a 'data-timestamp' >> attribute on that sp

Re: [Wikitech-l] User signature time wrapped in a span

2013-04-04 Thread Platonides
Yes, you would have to change it at Parser.php That point would be the appropiate one. However, given the large amount of already-posted timestamps (and that some people may not want the spans in the wiki source), why not simply use a regex to replace the dates in the page? __

Re: [Wikitech-l] User signature time wrapped in a span

2013-04-03 Thread Daniel Friesen
On Wed, 03 Apr 2013 15:34:28 -0700, Brion Vibber wrote: Parsing the timestamps in the text is a bit tough as it may be different in different languages my recommendation is to include a 'data-timestamp' attribute on that span and put in a language-independent machine-readable timestamp

Re: [Wikitech-l] User signature time wrapped in a span

2013-04-03 Thread Brion Vibber
Well, the *proper* fix is a sane discussion system where messages are first-class objects and timestamps are clean metadata that can be displayed appropriately. :) As a hack for existing talk pages though, what you're proposing should work. Parsing the timestamps in the text is a bit tough as it

[Wikitech-l] User signature time wrapped in a span

2013-04-03 Thread Cyril
I recently tried to create a small javascript to parse user signature times on talk pages [1]. With it the readers would have been able to see the signature's timestamp in their preferred timezone (and as a side effect it would be consistent with the revision history) without breaking caching. The