Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Current RfX/doc
(section)
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Usage == First, load the module. <syntaxhighlight lang="lua"> local currentRfx = require('Module:Current RfX') </syntaxhighlight> Then, choose the function that you wish to use. The functions are outlined in the subsections below. For the purpose of explanation, in the examples below we will assume that there are currently two users running for adminship, ''Example'' and ''Example2''. We will also assume that there is currently one user running for bureaucratship, ''Example3''. === RfxNames === <syntaxhighlight lang="lua"> currentRfx.rfxnames() </syntaxhighlight> This returns an array containing the page names of all current requests for adminship and bureaucratship. They are sorted by the order they appear on [[Wikipedia:Requests for adminship]], and reqeuests for adminship (RfAs) and requests for bureaucratship (RfBs) are treated identically. For the example users, the table returned would be as follows: <syntaxhighlight lang="lua"> { 'Wikipedia:Requests for adminship/Example', 'Wikipedia:Requests for adminship/Example2', 'Wikipedia:Requests for bureaucratship/Example3' } </syntaxhighlight> === Rfx === <syntaxhighlight lang="lua"> currentRfx.rfx() </syntaxhighlight> This returns a table containing two arrays, <code>''rfa''</code> and <code>''rfb''</code>; <code>''rfa''</code> contains rfx objects for currently open RfAs, and <code>''rfb''</code> contains rfx objects for currently open RfBs. In the case that there are multiple RfAs or multiple RfBs they will appear in the same order as they do on [[Wikipedia:Requests for adminship]]. For a description of rfx objects and what they can do, please see [[Module:Rfx]]. For the example users, the table returned would be as follows: <syntaxhighlight lang="lua"> { rfa = { -- Example's rfx object, -- Example2's rfx object }, rfb = { -- Example3's rfx object } } </syntaxhighlight><noinclude> [[Category:Module documentation pages]] </noinclude>
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)