<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ACurrent_RfX%2Fdoc</id>
	<title>Module:Current RfX/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ACurrent_RfX%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Current_RfX/doc&amp;action=history"/>
	<updated>2026-06-07T08:03:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Current_RfX/doc&amp;diff=135872&amp;oldid=prev</id>
		<title>imported&gt;WOSlinker: change source to syntaxhighlight</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Current_RfX/doc&amp;diff=135872&amp;oldid=prev"/>
		<updated>2020-07-07T16:27:24Z</updated>

		<summary type="html">&lt;p&gt;change source to syntaxhighlight&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This module returns information about currently open [[WP:RFA|requests for adminship]] and [[WP:RFB|requests for bureaucratship]] (RfX). It has two functions, &amp;lt;code&amp;gt;rfxNames&amp;lt;/code&amp;gt;, which returns a table containing the page names of currently open RfX, and &amp;lt;code&amp;gt;rfx&amp;lt;/code&amp;gt;, which returns a table of rfx objects created using [[Module:Rfx]].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
First, load the module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local currentRfx = require(&amp;#039;Module:Current RfX&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, choose the function that you wish to use. The functions are outlined in the subsections below.&lt;br /&gt;
&lt;br /&gt;
For the purpose of explanation, in the examples below we will assume that there are currently two users running for adminship, &amp;#039;&amp;#039;Example&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Example2&amp;#039;&amp;#039;. We will also assume that there is currently one user running for bureaucratship, &amp;#039;&amp;#039;Example3&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== RfxNames ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
currentRfx.rfxnames()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;#039;Wikipedia:Requests for adminship/Example&amp;#039;,&lt;br /&gt;
	&amp;#039;Wikipedia:Requests for adminship/Example2&amp;#039;,&lt;br /&gt;
	&amp;#039;Wikipedia:Requests for bureaucratship/Example3&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Rfx ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
currentRfx.rfx()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This returns a table containing two arrays, &amp;lt;code&amp;gt;&amp;#039;&amp;#039;rfa&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;#039;&amp;#039;rfb&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;&amp;#039;&amp;#039;rfa&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; contains rfx objects for currently open RfAs, and &amp;lt;code&amp;gt;&amp;#039;&amp;#039;rfb&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; 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:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	rfa = {&lt;br /&gt;
		-- Example&amp;#039;s rfx object,&lt;br /&gt;
		-- Example2&amp;#039;s rfx object&lt;br /&gt;
	},&lt;br /&gt;
	rfb = {&lt;br /&gt;
		-- Example3&amp;#039;s rfx object&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;WOSlinker</name></author>
	</entry>
</feed>