Worldclock/doc
From Joomla! Documentation
This is a documentation subpage for Template:Worldclock.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Worldclock.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Worldclock.
Creates a link to the Time and Date homepage with international timezones for a given timestamp: YYYYMMDD.
Functions/Features[edit]
Accepts date and time values in various formats, however standard ISO or Unix notations are the less error prone.
Examples[edit]
- {{worldclock|20080727}} gives: Template:Worldclock
- {{worldclock|2008-07-27|h=12}} gives: Template:Worldclock
Parameters[edit]
Parameter Name | Parameter Description | req./opt. |
---|---|---|
{{{1}}} | avalid timestamp YYYYMMDD | Required |
Known Issues[edit]
The time value needs to be adjusted inside the template for the server's timezone offset including DST. Unfortunately this can't be fixed using LocalSettings or user preferences which only provide "display formats", i.e. to adjust the offset for "Europe/Berlin" use "+0 days +2 hours +0 minutes" ~ GMT+1 + 1h DST.
Always use the preview! Garbage in, garbage out: make sure the timestamp is correct or the #time function will fail.
- template code currently requires http://www.mediawiki.org/wiki/Extension:VariablesExtension
- #time parser function at http://meta.wikimedia.org/wiki/Parserfunctions#.23time: