Difference between revisions of "Template:ACE2011/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Monty845
blackwiki>Monty845
Line 12: Line 12:
 
to add the guide of User B, you would make the following changes: (strike for removals, underlines for additions)
 
to add the guide of User B, you would make the following changes: (strike for removals, underlines for additions)
  
<code><nokwiki>{{#switch: {{#expr: {{NUMBEROFEDITS:R}} mod </nowiki>'''<s>2</s><u>3</u>'''<nowiki>}}
+
<code><nowiki>{{#switch: {{#expr: {{NUMBEROFEDITS:R}} mod </nowiki>'''<s>2</s><u>3</u>'''<nowiki>}}
 
|0 = [[User:A|A]]{{•}} </nowiki>'''<u><nowiki>[[User:B|B]]{{•}}</nowiki></u>'''<nowiki> [[User:C|C]]  
 
|0 = [[User:A|A]]{{•}} </nowiki>'''<u><nowiki>[[User:B|B]]{{•}}</nowiki></u>'''<nowiki> [[User:C|C]]  
 
|1 = [[User:C|C]]{{•}} [[User:A|A]] </nowiki>'''<u><nowiki>[[User:B|B]]{{•}}</nowiki></u>'''<nowiki>
 
|1 = [[User:C|C]]{{•}} [[User:A|A]] </nowiki>'''<u><nowiki>[[User:B|B]]{{•}}</nowiki></u>'''<nowiki>
 
</nowiki>'''<u><nowiki>|2 = [[User:B|B]]{{•}} [[User:C|C]]{{•}} [[User:A|A]]</nowiki></u>'''<nowiki>
 
</nowiki>'''<u><nowiki>|2 = [[User:B|B]]{{•}} [[User:C|C]]{{•}} [[User:A|A]]</nowiki></u>'''<nowiki>
 
}}</nowiki></code>
 
}}</nowiki></code>

Revision as of 16:11, 5 November 2011

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]] }}