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:42, 6 March 2015 (add colour definitions). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

-- Color definitions:
local FOUNDATION_BLUE = '#006699'
local FOUNDATION_GREEN = '#339966'
local FOUNDATION_RED = '#990000'

--[[
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