Template:ACE2011/doc

From blackwiki
< Template:ACE2011
Revision as of 16:09, 5 November 2011 by blackwiki>Monty845 (create documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)

<nokwiki>{{#switch: {{#expr: 6577115 mod </nowiki>23}} |0 = [[User:A|A]]{{•}} [[User:B|B]]{{•}} [[User:C|C]] |1 = [[User:C|C]]{{•}} [[User:A|A]] [[User:B|B]]{{•}} |[[User:B|B]]{{•}} [[User:C|C]]{{•}} [[User:A|A]] }}