Template:Choose: Difference between revisions

From FreeAllegiance Wiki
Jump to navigationJump to search
(Even I don't know what I'm doing)
 
m (added to templates category)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#expr: ({{LOCALTIMESTAMP}}) mod {{{1|100}}}+1}}<noinclude>
{{{{{{c|1}}}|}}}<noinclude>
This template returns one element from a list that is passed to it.


Usage:


This template produces a integer between 1 and {{{1}}}. Once the page is cached, the number will remain fairly constant.
<nowiki>{{Choose|c=5|a|b|c|d|e|f|g|h}}</nowiki> gives {{Choose|c=5|a|b|c|d|e|f|g|h}}
 
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 00:09, 25 July 2008

This template returns one element from a list that is passed to it.

Usage:

{{Choose|c=5|a|b|c|d|e|f|g|h}} gives e