Difference between revisions of "Template:ACE2011"

From blackwiki
Jump to navigation Jump to search
blackwiki>WOSlinker
m (div)
m (26 revisions imported)
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
| image = [[Image:Judges cupola.png|50px|ArbCom]]
 
| image = [[Image:Judges cupola.png|50px|ArbCom]]
 
|style=background-color: #E0F8E2
 
|style=background-color: #E0F8E2
| text ='''[[WP:ACE2011|2011 Arbitration Committee Elections]]'''{{•}} {{#switch:{{interval|n={{CURRENTTIMESTAMP}}|12 November|22 November|27 November|11 December|format=time}}
+
| text =<div class="hlist"><div style="float:right">{{navbar|ACE2011|mini=1|nodiv=1}}</div>
 +
* '''[[WP:ACE2011|2011 Arbitration Committee Elections]]'''
 +
* {{#switch:{{interval|n={{#time:d F Y}}|12 November 2011|22 November 2011|27 November 2011|11 December 2011|format=time}}
 
  |0-1 = <!--nothing-->
 
  |0-1 = <!--nothing-->
  |1-2 = [[Wikipedia:Arbitration_Committee_Elections_December_2011/Candidates|Nominate]]{{•}}
+
  |1-2 = [[Wikipedia:Arbitration_Committee_Elections_December_2011/Candidates|Nominate]]
 
  |2-3 = {{countdown
 
  |2-3 = {{countdown
 
  |year = 2011
 
  |year = 2011
Line 12: Line 14:
 
  |minute = 1
 
  |minute = 1
 
  |event=voting begins
 
  |event=voting begins
}}{{•}}
+
}}
  |3-4 = '''[[Special:SecurePoll/vote/240|Vote]]'''{{•}} [[Wikipedia:Arbitration Committee Elections December 2011/Log|Voter log]]{{•}}
+
  |3-4 = '''[[Special:SecurePoll/vote/240|Vote]]'''
  | [[WP:ACE2011/L|Voter log]]{{•}}
+
* [[Wikipedia:Arbitration Committee Elections December 2011/Log|Voter log]]
}} [[WT:COORD11|Contact the coordinators]]{{•}} [[WT:ACE2011|Discuss the elections]]{{•}} '''[[WP:ACE2011/F|Give your feedback]]''' <div style="float:right">{{navbar|ACE2011|mini=1|nodiv=1}}</div>
+
  | [[WP:ACE2011/L|Voter log]]
 +
}}
 +
* [[WT:COORD11|Contact the coordinators]]
 +
* [[WT:ACE2011|Discuss the elections]]
 +
* '''[[WP:ACE2011/F|Give your feedback]]'''
 +
</div>
 
----
 
----
'''Candidates''': [[Wikipedia:Arbitration Committee Elections December 2011/Candidates/Guide|Candidate guide]]{{•}} [[Wikipedia:Arbitration_Committee_Elections_December_2011/Candidates|Candidate statements]]{{•}} [[Wikipedia:Arbitration Committee Elections December 2011/Questions|Questions for the candidates]]{{•}} [[Wikipedia:Arbitration Committee Elections December 2011/Candidates/Discussion|Discuss the candidates]]<br />
+
<div class="hlist">
 +
;Candidates
 +
: [[Wikipedia:Arbitration Committee Elections December 2011/Candidates/Guide|Candidate guide]]
 +
: [[Wikipedia:Arbitration_Committee_Elections_December_2011/Candidates|Candidate statements]]
 +
: [[Wikipedia:Arbitration Committee Elections December 2011/Questions|Questions for the candidates]]
 +
: [[Wikipedia:Arbitration Committee Elections December 2011/Candidates/Discussion|Discuss the candidates]]
 +
</div>
 
{{collapse top|bg=#E0F8E2|Voter guides}}
 
{{collapse top|bg=#E0F8E2|Voter guides}}
These guides represent only the views of their authors. All guides written responsibly, seriously and in good faith are welcome for inclusion.<br/>
+
These guides represent only the views of their authors. All guides written responsibly, seriously and in good faith are welcome for inclusion.<!--
{{#switch: {{#expr: {{NUMBEROFEDITS:R}} mod 8}}
+
-->{{#switch: {{#expr: {{NUMBEROFEDITS:R}} mod 8}}
 
|0 = {{ACE2011/Format|2|3|5|6|0|4|8|1|7}}
 
|0 = {{ACE2011/Format|2|3|5|6|0|4|8|1|7}}
 
|1 = {{ACE2011/Format|4|8|1|7|2|5|6|3|0}}
 
|1 = {{ACE2011/Format|4|8|1|7|2|5|6|3|0}}
Line 33: Line 46:
 
{{Collapse bottom}}
 
{{Collapse bottom}}
 
}}
 
}}
<!--Template:ACE2011--><noinclude>{{Documentation}}[[Category:Wikipedia Arbitration Committee Elections 2011]]</noinclude>
+
<!--Template:ACE2011--><noinclude>{{Documentation}}[[Category:Wikipedia Arbitration Committee Elections 2011]] [[Category:Wikipedia Arbitration Committee Elections voter guides]]</noinclude>

Latest revision as of 08:08, 15 October 2020

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 use a combination of the number of edits to the project, and the current time to generate a pseudo random matrix of guides. The randomization is not perfect; depending on the number of guides listed, it will be possible to see patterns in the order, however each guide should still have an equal chance to appear in each position. If you want to check the cycling, make sure to purge your view, as the server may not regenerate the template on every view.

Instructions for adding new guides

The easiest way to add your guide is just to list it at Template talk:ACE2011, and someone else will add it for you. Or, if you'd like to try and insert it yourself, instructions are as follows:

The voter guide order is based on a pseudo random number. To add a new guide, you will need to edit {{ACE2011/Guides}}. Add a new line at the end, with the new guide listed, increase the mod # throughout the template by 1, and set the # in ({{CURRENTTIMESTAMP}} + #) to one higher than the entry above.

Example, if the existing code is:

{{#switch:{{{1}}}

|{{#expr: ({{CURRENTTIMESTAMP}} + 0) mod 2}} = Guide 1

|{{#expr: ({{CURRENTTIMESTAMP}} + 1) mod 2}} = Guide 2

}}

To add the guide of User B, you would make the following changes: (strike for removals, underlines for additions)

{{#switch:{{{1}}}

|{{#expr: ({{CURRENTTIMESTAMP}} + 0) mod 23}} = Guide 1

|{{#expr: ({{CURRENTTIMESTAMP}} + 1) mod 23}} = Guide 2

|{{#expr: ({{CURRENTTIMESTAMP}} + 2) mod 3}} = Guide 3

}}