Module:Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
local arg = frame.args[1] | local arg = frame.args[1] | ||
local text = string.lower(arg) | local text = string.lower(arg) | ||
return capitalizeFirstLetter( | return capitalizeFirstLetter("among us") | ||
end | end |
Revision as of 14:37, 21 October 2023
Documentation for this module may be created at Module:Item/doc
local p = {}
local fileModule = require("Module:FileExists")
local function capitalizeFirstLetter(input)
local firstLetter = input:sub(1, 1)
local restOfString = input:sub(2)
return firstLetter:upper() .. restOfString:lower()
end
function p.getItemNameAndIMG( frame )
local arg = frame.args[1]
local text = string.lower(arg)
return capitalizeFirstLetter("among us")
end