Module:Infobox Species: Difference between revisions
Jump to navigation
Jump to search
(Created page with "local p = {} function p.ValidateNumber( frame ) if tonumber(frame.args[1]) ~= nil then return "yes" end return "no" end") |
No edit summary |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local h = {} | |||
function p.ValidateNumber( frame ) | function p.ValidateNumber( frame ) | ||
| Line 6: | Line 7: | ||
end | end | ||
return "no" | 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 ) | |||
end | end | ||
Revision as of 18:29, 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 )
end