Difference between revisions of "Template:Quote rotate"

From Geohashing
imported>Relet
imported>Relet
(replacing CURRENTTIMESTAMP with a shorter number, for expr + mod is broken)
 
(2 intermediate revisions 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}}}}}}}
<onlyinclude>{{#vardefine:num|{{#expr:{{CURRENTTIMESTAMP}} mod {{{1|1}}}}}}}</onlyinclude>
 

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.