SMWTimeFix

From Charlie.Huggardlee.Net

Jump to: navigation, search
Mediawiki Extension
License: CC by-nc-sa 3.0
Download: Link

SMWTimeFix is a Parser Function extension that spawned out fixing my blog so that timestamps are applied. When Semantic Mediawiki returns a datetime in an embedded query, the format is along the lines of d Month YYYY HH:MM, Unfortunately, the strtotime function has problems parsing this. This extension simply applies a regular expression, to reformat the passed parameter to HH:MM, d Month YYYY (UTC) so then everything is happy, happy, happy.

Usage

{{#smwtimefix:semantic date parameter}}

For an example of this in action see Template:Blogentry and it's invocation on Blog.


Name (required):

Website:

Comment:

To submit your comments, please solve the captcha.

or read what others have said

Web Search
Google
Personal tools