Difference between revisions of "Template:ACE2011/doc"
blackwiki>Monty845 (clarify) |
blackwiki>Monty845 (add a note) |
||
| Line 1: | Line 1: | ||
| − | The [[Wikipedia:Requests for comment/Arbitration Committee Elections December 2011|RFC for the 2011 Arbcom elections]] requested that, if possible, the order of the voter guides in this template be randomized each time the template is refreshed. As a stop gap measure, the template is currently set up to cycle the order of the guides, every guide will have the same chance to appear first in the order, but the guides will always be in alphabetical order. | + | The [[Wikipedia:Requests for comment/Arbitration Committee Elections December 2011|RFC for the 2011 Arbcom elections]] requested that, if possible, the order of the voter guides in this template be randomized each time the template is refreshed. As a stop gap measure, the template is currently set up to cycle the order of the guides, every guide will have the same chance to appear first in the order, but the guides will always be in alphabetical order. (If you want to check the cycling, make sure to purge your view, as the server will may not regenerate the template on every view) |
==Instructions for adding new guides== | ==Instructions for adding new guides== | ||
The voter guide cycling is based on a pseudo random number. | The voter guide cycling is based on a pseudo random number. | ||
Revision as of 16:25, 5 November 2011
The RFC for the 2011 Arbcom elections requested that, if possible, the order of the voter guides in this template be randomized each time the template is refreshed. As a stop gap measure, the template is currently set up to cycle the order of the guides, every guide will have the same chance to appear first in the order, but the guides will always be in alphabetical order. (If you want to check the cycling, make sure to purge your view, as the server will may not regenerate the template on every view)
Instructions for adding new guides
The voter guide cycling is based on a pseudo random number. To add a new guide, increase the mod # by one, add the guide in alphabetical order to each line of the switch, (if yours would appear first, add it on the end). Create a new line, with the next incrementing number. Add your guide to that line as the first guide, and add the all the other guides in alphabetical order after yours.
Example, if the existing code is:
{{#switch: {{#expr: {{NUMBEROFEDITS:R}} mod 2}}
|0 = [[User:A|A]]{{•}} [[User:C|C]]
|1 = [[User:C|C]]{{•}} [[User:A|A]]
}}
to add the guide of User B, you would make the following changes: (strike for removals, underlines for additions)
{{#switch: {{#expr: {{NUMBEROFEDITS:R}} mod
23}}
|0 = [[User:A|A]]{{•}} [[User:B|B]]{{•}} [[User:C|C]]
|1 = [[User:C|C]]{{•}} [[User:A|A]] [[User:B|B]]{{•}}
|2 = [[User:B|B]]{{•}} [[User:C|C]]{{•}} [[User:A|A]]
}}