Module:PresRow
Jump to navigation
Jump to search
This module is rated as pre-alpha. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure. |
Usage
{{#invoke:PresRow|function_name}}
-- This is under construction; it will soon provide the code for the template PresRow
local p = {}
-- Determine whether the main anti-Democrats are Republicans or Whigs
function p.gopwhig(frame)
local party = 'Republican'
if frame.args[1] < 1856 then party='Whig' end
return party
end
function p.calcGOP(frame)
local gop = frame.args[1]
local dem = frame.args[2]
local third = frame.args[3]
return (gop)/(gop+dem+third)
end
function p.func(frame)
return "Hello, world!"
end
return p