Jump to content

Module:Signpost poll

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 03:28, 6 March 2015 (start a replacement for Wikipedia:Wikipedia Signpost/Templates/Voter). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

-- This module implments polls used in articles of the Signpost.

--[[
We need:

preload - use a standard preload and pass the option text in by parameter.
image
question

option1
option1vote - the vote text to use for option one - defaults to option1
option1color
option2
option2vote
option2color
...

min_votes
break - if 'all', breaks on all options; if a number, breaks after that number option
overlay
expiry
]]

local p = {}

function p._main()
end

function p.main(frame)
	local args = require('Module:Arguments').getArgs(frame, {
		wrappers = 'Wikipedia:Wikipedia Signpost/Templates/Voter'
	})
	return p._main(args)
end

return p