Difference between revisions of "Template:ACE2013/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mr. Stradivarius on tour
blackwiki>Mr. Stradivarius
(make this consistent with the switch to Module:Arbcom election banner)
Line 2: Line 2:
 
{{lua|Module:Arbcom election banner}}
 
{{lua|Module:Arbcom election banner}}
  
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. The 2013 RFC resulted in no change in that regard. 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.
+
This template is used on pages related to the [[Wikipedia:Arbitration Committee Elections December 2013|2013 Arbitration Committee Elections]]. It displays links to various related pages, and contains a list of voting guides compiled by Wikipedia editors. The voting guides are displayed in random order, as was decided in the [[Wikipedia:Requests for comment/Arbitration Committee Elections December 2011|RFC for the 2011 Arbcom elections]]. The randomization algorithm uses the [[WP:Lua|Lua]] pseudo-random-number generator, and should be almost indistinguishable from true randomness. To change the order, please {{purge|purge the page cache}}.
  
== Instructions for adding new guides ==
+
== Usage ==
  
To add a new guide, find the comment <code><nowiki><!-- Add candidate guides here. --></nowiki></code> and add a wikilink to the next blank line in the form of <code><nowiki>| guide# = [[</nowiki>''guide page''<nowiki>|</nowiki>''your username''<nowiki>]]</nowiki></code>.
+
<pre>{{ACE2013}}</pre>
  
Example, if the existing code is:
+
== Adding new guides ==
 +
 
 +
To add a new guide, [//en.wikipedia.org/w/index.php?title=Template:ACE2013/doc&action=edit edit the template], find the comment <code><nowiki><!-- Add candidate guides here. --></nowiki></code>, and add a wikilink to your guide in the format <code><nowiki>| guide# = [[</nowiki>''guide page''<nowiki>|</nowiki>''your username''<nowiki>]]</nowiki></code>.
 +
 
 +
For example, if the existing template code was like this:
 
<pre>
 
<pre>
 
<!-- Add candidate guides here. -->
 
<!-- Add candidate guides here. -->
| guide1 = [[Example guide 1]]
+
| guide1 = [[User:Example/ACE2013|Example]]
| guide2 = [[Example guide 2]]
+
| guide2 = [[User:Example2/Arbcom 2013|Example2]]
| guide3 =
 
| guide4 =
 
 
</pre>
 
</pre>
To add the guide ''My Guide'', you would make the following changes:
+
 
 +
You would make the following changes:
 
<pre>
 
<pre>
 
<!-- Add candidate guides here. -->
 
<!-- Add candidate guides here. -->
| guide1 = [[Example guide 1]]
+
| guide1 = [[User:Example/ACE2013|Example]]
| guide2 = [[Example guide 2]]
+
| guide2 = [[User:Example2/Arbcom 2013|Example2]]
| guide3 = [[wikilink to your guide|My Guide]]
+
| guide3 = [[User:YourUsername/MyGuide|YourUsername]]
| guide4 =
 
 
</pre>
 
</pre>
Add additional lines in the form of <code><nowiki>| guide# = [[Example guide]]</nowiki></code>.
+
 
 +
An unlimited number of guides may be added.

Revision as of 13:20, 19 November 2013

This template is used on pages related to the 2013 Arbitration Committee Elections. It displays links to various related pages, and contains a list of voting guides compiled by Wikipedia editors. The voting guides are displayed in random order, as was decided in the RFC for the 2011 Arbcom elections. The randomization algorithm uses the Lua pseudo-random-number generator, and should be almost indistinguishable from true randomness. To change the order, please Script error: No such module "Purge"..

Usage

{{ACE2013}}

Adding new guides

To add a new guide, edit the template, find the comment <!-- Add candidate guides here. -->, and add a wikilink to your guide in the format | guide# = [[guide page|your username]].

For example, if the existing template code was like this:

<!-- Add candidate guides here. -->
| guide1 = [[User:Example/ACE2013|Example]]
| guide2 = [[User:Example2/Arbcom 2013|Example2]]

You would make the following changes:

<!-- Add candidate guides here. -->
| guide1 = [[User:Example/ACE2013|Example]]
| guide2 = [[User:Example2/Arbcom 2013|Example2]]
| guide3 = [[User:YourUsername/MyGuide|YourUsername]]

An unlimited number of guides may be added.