Template:Inabun/learn2wiki/template:utctest

From Discworld MUD Wiki
Revision as of 12:54, 26 January 2020 by Inabun (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Pieces for testing, remove text when done.

references here:
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time
http://www.timeanddate.com/worldclock/converter.html?iso=20200126T000000&p1=tz_gmt&p2=tz_cet&p3=tz_et&p4=tz_pst

Tue, 15 Jun 2021 02:55:54 +0000

curr yr: 2021

curr mo: 06

curr day: 15

curr hr: 02

curr min: 55

curr timestamp: 20210615025554

local timestamp: 20210614225554

time parser: 20210615025554

time parser: 20200126111500

Use these two above? if
{{utctest}}
is used, return result of
{{#time: YmdHis | now}}
, if
{{utctest| 1 jan 2020
 20:15}}
is used, then conditionally send that to parser?

Also, can we make a wrapper template that parses the time stamp from the parser and makes url for timeanddate web?

[http://www.timeanddate.com/worldclock/fixedtime.html?hour=
{{{hour|{{{1|{{CURRENTHOUR}}}}}}}}
&min={{{minute|{{{2|0}}}}}}
&sec={{{second|0}}}{{#if:{{{day|}}}|
&day={{{day}}}
&month={{{month}}}
&year={{{year}}}}} 
{{{hour|{{{1|{{CURRENTHOUR}}}}}}}}:{{{minute|{{{2|00}}}}}} UTC]

[edit]

Documentation