Module:Infobox Species

From Errapedia
Revision as of 20:44, 9 February 2023 by LunarEcklipse (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local p = {}
local h = {}

function p.ValidateNumber( frame )
    if tonumber(frame.args[1]) ~= nil then
        return "yes"
    end
    return "no"
end

function p.ConvertHeightToCentimeters( frame )
    if tonumber(frame.args[1]) ~= nil then
        local height = tonumber(frame.args[1])
        height = height * 100
        return tostring(height)
    end
    return ""

end

function p.ErrorCheck( frame )
    mw.addWarning("test")
end

return p