Module:Infobox Species: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
function p.ErrorCheck( frame ) | function p.ErrorCheck( frame ) | ||
mw.addWarning("test") | |||
end | end | ||
Revision as of 18:30, 7 February 2023
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