Template:Rnd/a

From Southern Maryland Wiki @ somd.com
< Template:Rnd
Revision as of 05:39, 18 July 2008 by MBisanz (talk) (Protected Template:Rnd/a: target [edit=sysop:move=sysop])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is Template:Tlf's second step taking input from the main page with the following code.

{{formatnum:{{rnd/a|{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}}}}}
{{rnd/c{{rnd/b|abs{{{1}}}|{{{1}}}|{{{2}}}}}|{{{1}}}|{{{2}}}}}

It calls Template:Tlf which crunches out a code to determine which of the Template:Tlf subtemplates to go to next.

{{#expr:2*(2+(2-({{{1}}}<10^9)*(2-({{{1}}}/10^5round0={{{1}}}/10^5)))*({{{1}}}>=10^5)-({{{1}}}<0.0001))*(({{{2}}}>0)-({{{2}}}<0))+({{{3}}}>0)}}