4,506 bytes added
, 19:18, 8 July 2021
{{module rating|beta}}
This module generates banner templates for the annual [[WP:ACE|Arbitration Committee elections]]. To make a banner template for an Arbcom election, add the links to that year's Arbcom election pages as described below, and set the four date parameters. After that, editors can add voting guides using the <code>guide''n''</code> parameters. Voting guides are displayed in a random order.
== Syntax ==
The full syntax for the template is as follows:
<pre>
{{#invoke:Arbcom election banner|main
| name =
| electionpage =
| nomstart =
| nomend =
| votestart =
| voteend =
| beforenomlink =
| nomlink =
| votepage =
| votelog =
| contact =
| discuss =
| cguide =
| cstatements =
| cquestions =
| cdiscuss =
| guide1 =
| guide2 =
| guide3 =
| guide4 =
| guide5 =
}}
</pre>
== Parameters ==
Note - in this section, the string <code>''YYYY''</code> refers to the current year. Its current value is <code>{{#time: Y}}</code>.
* <code>name</code> - The name of the template. This is needed to make the [[Template:Navbar|navbar]] work properly. Defaults to <code>ACE''YYYY''</code>.
* <code>electionpage</code> - The main page for the year's Arbcom elections. Defaults to <code><nowiki>[[Wikipedia:Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>|</nowiki>''YYYY''<nowiki> Arbitration Committee Elections]]</nowiki></code>.
* <code>nomstart</code> - The date that nominations start. This must be in a format accepted by the [[mw:Help:Extension:ParserFunctions##time|#time parser function]], e.g. <code>November 11</code>. {{red|This parameter is required}}.
* <code>nomend</code> - The deadline for nominations, e.g. <code>November 18</code>. {{red|This parameter is required}}.
* <code>votestart</code> - The date that voting begins, e.g. <code>November 23</code>. {{red|This parameter is required}}.
* <code>voteend</code> - The date that voting ends, e.g. <code>December 5</code>. {{red|This parameter is required}}.
* <code>beforenomlink</code> - Text to be displayed before the nomination period begins. Defaults to <code><nowiki>[[Wikipedia:Requests for comment/Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>/Electoral Commission|Electoral Commission RFC]]</nowiki></code>.
* <code>nomlink</code> - Text to be displayed while nominations are underway. Defaults to <code><nowiki>[[Wikipedia:Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>/Candidates|Nominate]]</nowiki></code>.
* <code>votepage</code> - The link to the SecurePoll voting page. Defaults to <code><nowiki>[[Special:SecurePoll]]</nowiki></code>.
* <code>votelog</code> - The link to the voting log. Defaults to <code><nowiki>[[Wikipedia:Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>/Log|Voter log]]</nowiki></code>.
* <code>votelink</code> - A link to display during the voting period. Defaults to the voting page and the voting log, and can safely be left blank.
* <code>contact</code> - Link to the coordinator contact page. Defaults to <code><nowiki>[[WT:COORD</nowiki>''YY''<nowiki>|Contact the coordinators]]</nowiki></code>, where <code>''YY''</code> is the third and fourth digits of the current year.
* <code>discuss</code> - Link to the election discussion page. Defaults to <code><nowiki>[[WT:ACE</nowiki>''YYYY''<nowiki>|Discuss the elections]]</nowiki></code>.
* <code>cguide</code> - Link to the candidate guide. Defaults to <code><nowiki>[[Wikipedia:Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>/Candidates/Guide|Candidate guide]]</nowiki></code>.
* <code>cstatements</code> - Link to the candidate statements page. Defaults to <code><nowiki>[[Wikipedia:Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>/Candidates|Candidate statements]]</nowiki></code>.
* <code>cquestions</code> - Link to the candidate questions page. Defaults to <code><nowiki>[[Wikipedia:Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>/Questions|Questions for the candidates]]</nowiki></code>.
* <code>cdiscuss</code> - Link to the candidate discussion page. Defaults to <code><nowiki>[[Wikipedia:Arbitration Committee Elections December </nowiki>''YYYY''<nowiki>/Candidates/Discussion|Discuss the candidates]]</nowiki></code>.
* <code>guide1</code>, <code>guide2</code>, <code>guide3</code>, ... - links to voting guides. These will be displayed in random order.