Difference between revisions of "Template:Rand"

From Conservapedia
Jump to navigation Jump to search
m (edit.)
(Remove long purpose explanation to a note)
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>

Revision as of 05:41, December 24, 2007

This template generates a random number.

The current output is 1

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.)