The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Documentation for this module may be created at Module:RfX tally/doc

local p = {}
local rfx = require("Module:Rfx")
function p.main(frame)
	local title = mw.text.trim(frame.args[1])
	local obj
	if title == nil or #title == 0 then
		obj = rfx.new(mw.title.getCurrentTitle().fullText)
	else
		obj = rfx.new("Bharatpedia:Requests for bureaucratship/" .. title)
		if obj == nil then
			obj = rfx.new("Bharatpedia:Requests for adminship/" .. title)
		end	
	end
	if obj == nil then
		return "(?/?/?)"
	else
		return string.format("(%s/%s/%s)",obj.supports or "?",obj.opposes or "?",obj.neutrals or "?")
	end
end
return p