From Homestar Runner Wiki
(Difference between revisions)
|
|
(includes 6 intermediate revisions) |
Line 1: |
Line 1: |
- | <noinclude>A randomized template for the [[HRWiki:Main page redesign|new Main Page]]. Includes 80 facts. For each list bullet, the template picks a random number. If two numbers are the same, a number is picked from outside of the random numbers, meaning no fact will be repeated.</noinclude> | + | <noinclude>A randomized template for the [[HRWiki:Main page redesign|new Main Page]]. Facts are stored on {{t|didyouknow facts}}. For each bullet point, the template picks a random number. If two numbers are the same, a number is picked from outside of the usual range, corresponding to the bullet point, meaning no fact will be repeated. Additionally, the first bullet point is programmed to pull from a separate list of pictured facts.</noinclude> |
- | {{#resetcount:rando1|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#resetcount:rando2|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#resetcount:rando3|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#resetcount:rando4|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#resetcount:rando5|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#resetcount:rando6|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#resetcount:rando7|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#resetcount:rando8|{{#rand:1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-7}}}}}}{{#ifeq:{{#count:rando1|0}}|{{#count:rando2|0}}|{{#resetcount:rando1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-6}}}}|}}{{#ifeq:{{#count:rando1|0}}|{{#count:rando3|0}}|{{#resetcount:rando1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-6}}}}|}}{{#ifeq:{{#count:rando1|0}}|{{#count:rando4|0}}|{{#resetcount:rando1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-6}}}}|}}{{#ifeq:{{#count:rando1|0}}|{{#count:rando5|0}}|{{#resetcount:rando1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-6}}}}|}}{{#ifeq:{{#count:rando1|0}}|{{#count:rando6|0}}|{{#resetcount:rando1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-6}}}}|}}{{#ifeq:{{#count:rando1|0}}|{{#count:rando7|0}}|{{#resetcount:rando1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-6}}}}|}}{{#ifeq:{{#count:rando1|0}}|{{#count:rando8|0}}|{{#resetcount:rando1|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-6}}}}|}}{{#ifeq:{{#count:rando2|0}}|{{#count:rando3|0}}|{{#resetcount:rando2|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-5}}}}|}}{{#ifeq:{{#count:rando2|0}}|{{#count:rando4|0}}|{{#resetcount:rando2|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-5}}}}|}}{{#ifeq:{{#count:rando2|0}}|{{#count:rando5|0}}|{{#resetcount:rando2|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-5}}}}|}}{{#ifeq:{{#count:rando2|0}}|{{#count:rando6|0}}|{{#resetcount:rando2|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-5}}}}|}}{{#ifeq:{{#count:rando2|0}}|{{#count:rando7|0}}|{{#resetcount:rando2|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-5}}}}|}}{{#ifeq:{{#count:rando2|0}}|{{#count:rando8|0}}|{{#resetcount:rando2|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-5}}}}|}}{{#ifeq:{{#count:rando3|0}}|{{#count:rando4|0}}|{{#resetcount:rando3|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-4}}}}|}}{{#ifeq:{{#count:rando3|0}}|{{#count:rando5|0}}|{{#resetcount:rando3|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-4}}}}|}}{{#ifeq:{{#count:rando3|0}}|{{#count:rando6|0}}|{{#resetcount:rando3|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-4}}}}|}}{{#ifeq:{{#count:rando3|0}}|{{#count:rando7|0}}|{{#resetcount:rando3|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-4}}}}|}}{{#ifeq:{{#count:rando3|0}}|{{#count:rando8|0}}|{{#resetcount:rando3|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-4}}}}|}}{{#ifeq:{{#count:rando4|0}}|{{#count:rando5|0}}|{{#resetcount:rando4|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-3}}}}|}}{{#ifeq:{{#count:rando4|0}}|{{#count:rando6|0}}|{{#resetcount:rando4|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-3}}}}|}}{{#ifeq:{{#count:rando4|0}}|{{#count:rando7|0}}|{{#resetcount:rando4|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-3}}}}|}}{{#ifeq:{{#count:rando4|0}}|{{#count:rando8|0}}|{{#resetcount:rando4|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-3}}}}|}}{{#ifeq:{{#count:rando5|0}}|{{#count:rando6|0}}|{{#resetcount:rando5|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-2}}}}|}}{{#ifeq:{{#count:rando5|0}}|{{#count:rando7|0}}|{{#resetcount:rando5|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-2}}}}|}}{{#ifeq:{{#count:rando5|0}}|{{#count:rando8|0}}|{{#resetcount:rando5|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-2}}}}|}}{{#ifeq:{{#count:rando6|0}}|{{#count:rando7|0}}|{{#resetcount:rando6|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-1}}}}|}}{{#ifeq:{{#count:rando6|0}}|{{#count:rando8|0}}|{{#resetcount:rando6|{{#expr:{{:User:Gfdgsgxgzgdrc/didyouknow facts|}}-1}}}}|}} | + | {{#resetcount:rando1|{{#rand:1|{{didyouknow facts|image|}}}}}}{{#resetcount:rando2|{{#rand:1|{{#expr:{{didyouknow facts|}}-2}}}}}}{{#resetcount:rando3|{{#rand:1|{{#expr:{{didyouknow facts|}}-2}}}}}}{{#resetcount:rando4|{{#rand:1|{{#expr:{{didyouknow facts|}}-2}}}}}} |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando1}}}}
| + | {{didyouknow facts|image|{{#count:rando1}}}} |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando2}}}} | + | *{{didyouknow facts|{{#count:rando2}}}} |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando3}}}} | + | *{{didyouknow facts|{{#count:rando3}}}} |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando4}}}} | + | *{{didyouknow facts|{{#count:rando4}}}} |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando5}}}}
| + | |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando6}}}}
| + | |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando7}}}}
| + | |
- | *{{:User:Gfdgsgxgzgdrc/didyouknow facts|{{#count:rando8}}}}
| + | |
Current revision as of 04:03, 4 September 2020
A randomized template for the new Main Page. Facts are stored on {{didyouknow facts}}. For each bullet point, the template picks a random number. If two numbers are the same, a number is picked from outside of the usual range, corresponding to the bullet point, meaning no fact will be repeated. Additionally, the first bullet point is programmed to pull from a separate list of pictured facts.