Jump to content

Template:Rnd/a: Difference between revisions

From IdeaWazaWiki
wikademia>Jimp
No edit summary
wikademia>Jimp
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{rnd/c{{rnd/b|abs{{{3}}}|{{{3}}}}}|{{{1}}}|{{{2}}}|{{{3}}}}}<noinclude>[[Category:Subtemplates of Template Rnd]]</noinclude>
<includeonly>{{rnd/c{{rnd/b|abs{{{3}}}|{{{3}}}|{{{2}}}}}|{{{1}}}|{{{2}}}|{{{3}}}}}</includeonly><noinclude>
 
This is {{tlf|rnd}}'s second step taking input from the main page with the following code.
 
<pre>
{{rnd/a|{{{1}}}|{{{2}}}|{{#expr:({{{1}}})round({{{2}}})}}}}
</pre>
 
It calls {{tlf|rnd/b}} which crunches out a code to determine which of the {{tlf|rnd/c*}} templates to go to next.
 
*{{lt|rnd/b}}
<pre>
{{#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)}}
</pre>
 
*{{lt|rnd/c-8}}
*{{lt|rnd/c-7}}
*{{lt|rnd/c-6}}
*{{lt|rnd/c-5}}
*{{lt|rnd/c-4}}
*{{lt|rnd/c-3}}
*{{lt|rnd/c-2}}
*{{lt|rnd/c-1}}
*{{lt|rnd/c0}}
*{{lt|rnd/c1}}
*{{lt|rnd/c2}}
*{{lt|rnd/c3}}
*{{lt|rnd/c4}}
*{{lt|rnd/c5}}
*{{lt|rnd/c6}}
*{{lt|rnd/c7}}
*{{lt|rnd/c8}}
*{{lt|rnd/c9}}
 
[[Category:Subtemplates of Template Rnd]]</noinclude>

Latest revision as of 07:16, 9 July 2008


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

{{rnd/a|{{{1}}}|{{{2}}}|{{#expr:({{{1}}})round({{{2}}})}}}}

It calls Template:Tlf which crunches out a code to determine which of the Template:Tlf templates 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)}}