Documentation for this module may be created at Module:Sandbox/Tamzin/Multiple account query/doc

local p = {}
local getArgs = require('Module:Arguments').getArgs
local andList = require('Module:Hatnote list').andList
local yesno = require('Module:Yesno')
local hats = {
	["adminclerk"]="an [[wp:sysop|administrator]] and [[WP:SPI/C|SPI clerk]]",
	["clerk"]="an [[WP:SPI/C|SPI clerk]]",
	["admin"]="an [[wp:sysop|administrator]]",
	["checkuser"]="a [[wp:checkuser|checkuser]]",
	[""]=""
}

function p.main(frame)
	local args = getArgs(frame)
	return p._main(frame, args)
end

function listAccounts(args)
	for i, account in ipairs(args) do
		
	end
end

function p._main(frame, args)
	local header = not yesno(args.header) and ("==" .. (args.headtext or "Query") .. "==") or ""
	local hat = hats[args.hat]
	local body = "Hi, {{subst:BASEPAGENAME}}. I'm {{subst:REVISIONUSER}}."
	             .. (hat and (" I'm " .. hat .. "here on Wikipedia.") or "")
	             .. " I wanted to inquire about the relationship between your account and"
end