Jump to content

Module:Arbcom election banner/sandbox/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2d37 (talk | contribs) at 01:58, 20 September 2021 (Parameters: Update for Special:Diff/1045303662/1045333458). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


This module generates banner templates for the annual 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 guiden parameters. Voting guides are displayed in a random order.

Syntax

The full syntax for the template is as follows:

{{#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        = 
}}

Parameters

  • year - The year in which the elections are held. Either year or name must be given. If year is not given, name must end in a number, which will be taken as year. Hereinafter, the value of year is denoted by YYYY.
  • name - The name of the template. This is needed to make the navbar work properly. Defaults to ACEYYYY.
  • root - The ROOTPAGENAME of the various election pages. Defaults to Arbitration Committee Elections December YYYY. Hereinafter, the value of root is denoted by ROOT.
  • electionpage - The main page for the year's Arbcom elections. Defaults to [[Wikipedia:ROOT|YYYY Arbitration Committee Elections]].
  • nomstart - The date that nominations start. This must be in a format accepted by the #time parser function, e.g. November 11. This parameter is required.
  • nomend - The deadline for nominations, e.g. November 18. This parameter is required.
  • votestart - The date that voting begins, e.g. November 23. This parameter is required.
  • voteend - The date that voting ends, e.g. December 5. This parameter is required.
  • beforenomlink - Text to be displayed before the nomination period begins. Defaults to [[Wikipedia:Requests for comment/ROOT|YYYY ArbCom pre-election RFC]].
  • nomlink - Text to be displayed while nominations are underway. Defaults to [[Wikipedia:ROOT/Candidates|Nominate]].
  • votepage - The link to the SecurePoll voting page. Defaults to pointing to Special:SecurePoll.
  • votelog - The link to the voting log. Defaults to [[Wikipedia:ROOT/Log|Voter log]].
  • votelink - A link to display during the voting period. Defaults to the voting page and the voting log, and can safely be left blank.
  • contact - Link to the coordinator contact page. Defaults to [[Wikipedia talk:ROOT/Coordination|Contact the coordinators]].
  • discuss - Link to the election discussion page. Defaults to [[Wikipedia talk:ROOT|Discuss the elections]].
  • cguide - Link to the candidate guide. Defaults to [[Wikipedia:ROOT/Candidates/Guide|Candidate guide]].
  • cstatements - Link to the candidate statements page. Defaults to [[Wikipedia:ROOT/Candidates|Candidate statements]].
  • cquestions - Link to the candidate questions page. Defaults to [[Wikipedia:ROOT/Questions|Questions for the candidates]].
  • cdiscuss - Link to the candidate discussion page. Defaults to [[Wikipedia:ROOT/Candidates/Discussion|Discuss the candidates]].
  • guide1, guide2, guide3, ... - links to voting guides. These will be displayed in random order.