Difference between revisions of "Template:Rand"

From Conservapedia
Jump to navigation Jump to search
m (edit.)
m (Protected "Template:Rand": policy [edit=sysop:move=sysop] [cascading])
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
The current output is </noinclude>{{ #expr: {{ #expr: {{ #expr: ( {{CURRENTTIMESTAMP}} mod 8 ) + {{CURRENTYEAR}} + {{CURRENTWEEK}} + {{CURRENTHOUR}} + {{CURRENTMONTH}} + {{CURRENTDOW}} + {{CURRENTDAY}} }} + {{NUMBEROFARTICLES:R}} + {{NUMBEROFUSERS:R}} + {{NUMBEROFFILES:R}} + {{NUMBEROFPAGES:R}} }} mod {{{1|4}}} }}<noinclude>
 
The current output is </noinclude>{{ #expr: {{ #expr: {{ #expr: ( {{CURRENTTIMESTAMP}} mod 8 ) + {{CURRENTYEAR}} + {{CURRENTWEEK}} + {{CURRENTHOUR}} + {{CURRENTMONTH}} + {{CURRENTDOW}} + {{CURRENTDAY}} }} + {{NUMBEROFARTICLES:R}} + {{NUMBEROFUSERS:R}} + {{NUMBEROFFILES:R}} + {{NUMBEROFPAGES:R}} }} mod {{{1|4}}} }}<noinclude>
 
{{Parms|
 
{{Parms|
−
{{Parm|1|Set the number you wish to have the rand between. (eg. "4" would make the template output numbers between 0 and 4.) | Yes. | Default value is 4. }}
+
{{Parm|1|Range (see note)| Yes. | Default value is 4. }}
 
}}
 
}}
 +
NOTE:  The range is used to set the number you wish to have the rand between. (eg. "4" would make the template output numbers between 0 and 4.)
 
</noinclude>
 
</noinclude>

Latest revision as of 15:41, January 7, 2009

This template generates a random number.

The current output is 2

Template Parameters
(See using templates).
Name Purpose Required? Comment
1 Range (see note) Yes. Default value is 4.

NOTE: The range is used to set the number you wish to have the rand between. (eg. "4" would make the template output numbers between 0 and 4.)