Module:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>The Mol Man
just a start of sorts I guess
 
meta>The Mol Man
No edit summary
Line 3: Line 3:
local getArgs
local getArgs
local gaps = require('Module:Gapnum')._gaps
local gaps = require('Module:Gapnum')._gaps
local makeunit = require('Module:Val/units')


function p.main(frame)
function p.main(frame)
Line 9: Line 10:
end
end
local args = getArgs(frame, {wrappers = 'Template:Val'})
local args = getArgs(frame, {wrappers = 'Template:Val'})
local n = args[1]
local unc1,unc2 = args[2], args[3]
local unit = args.ul or args.u
local unit_link = args.ul ~= nil
local per_unit = args.upl or args.up
local per_unit_link = args.upl ~= nil
local prefix = args.p
local suffix = args.u
end
end


return p
return p

Revision as of 20:02, 7 January 2015

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

local p = {}
 
local getArgs
local gaps = require('Module:Gapnum')._gaps
local makeunit = require('Module:Val/units')

function p.main(frame)
	if not getArgs then
		getArgs = require('Module:Arguments').getArgs
	end
	local args = getArgs(frame, {wrappers = 'Template:Val'})
	local n = args[1]
	local unc1,unc2 = args[2], args[3]
	local unit = args.ul or args.u
	local unit_link = args.ul ~= nil
	local per_unit = args.upl or args.up
	local per_unit_link = args.upl ~= nil
	local prefix = args.p
	local suffix = args.u
end

return p