Module:Infobox Species: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 20: | Line 20: | ||
function p.ErrorCheck( frame ) | function p.ErrorCheck( frame ) | ||
mw.addWarning("test") | |||
end | |||
return p | |||
Latest revision as of 20:44, 9 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
return p