Difference between revisions of "Template:Quote rotate"

From Geohashing
imported>Relet
m (test)
imported>Relet
(replacing CURRENTTIMESTAMP with a shorter number, for expr + mod is broken)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>This template contains the code to select a pseudo-random quote based on the current time stamp.</noinclude>
+
<noinclude>This template contains the code to select a pseudo-random quote based on the current time stamp.</noinclude>{{#vardefine:num|{{#expr:{{CURRENTDOW}}{{CURRENTHOUR}} mod {{{1|1}}}}}}}
<includeonly>{{#vardefine:num|{{#expr:{{CURRENTTIMESTAMP}} mod {{{1|1}}}}}}}</includeonly>
 

Latest revision as of 23:58, 9 January 2010

This template contains the code to select a pseudo-random quote based on the current time stamp.