Difference between revisions of "Template:ACE2011/doc"
blackwiki>Monty845 m (→Instructions for adding new guides: typo) |
blackwiki>Monty845 (add discussion of purpose) |
||
| Line 1: | Line 1: | ||
| + | The [[Wikipedia:Requests for comment/Arbitration Committee Elections December 2011|RFC for the 2011 Arbcom elections]] requested that the voter guides in this template be in a random order if possible. As a stop gap measure, the template is currently set up to cycle the order of the guides, every guide will have a the same chance of appearing first, but the guides will always be in alphabetical order. | ||
==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:21, 5 November 2011
The RFC for the 2011 Arbcom elections requested that the voter guides in this template be in a random order if possible. As a stop gap measure, the template is currently set up to cycle the order of the guides, every guide will have a the same chance of appearing first, but the guides will always be in alphabetical order.
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]]
}}