Module:Format eq stat

From Illerai

This is an old revision of this page, as edited by illerai>Riblet15 at 05:10, 30 November 2018 (arg). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Module:Format eq stat/doc. [edit] [history] [purge]

This template should be used when there is no documentation for a Module or Template.


local p = {}

function p.signed(arg)
	local first_char = string.sub(arg, 1, 1)

	if first_char == '+' or first_char == '-' then
		return arg
	else
		return '+'..arg
	end
end

function p.main(frame)
	local args = frame:getParent().args

	local arg = args[1] or ''
	return p.signed(arg)
end

return p