Module:GameDesc: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "local getArgs = require('Module:Arguments').getArgs local p = {} local function capitalizeFirstLetter(input) return input:sub(1,1):upper() .. input:sub(2) end function p.main(frame) local args = getArgs(frame) local category = args[1]:lower() --I.e. is it skill or item? local game = args[2]:lower() local thing = args[3]:lower() local data = require("Module:Data/" .. capitalizeFirstLetter(category) .. "/" .. game) local dataTable = data[category] local gameLink =...")
 
No edit summary
Line 1: Line 1:
local getArgs = require('Module:Arguments').getArgs
local getArgs = require('Module:Arguments').getArgs
local p = {}
local p = {}
local function capitalizeFirstLetter(input)
local function capitalizeFirstLetter(inputText)
return input:sub(1,1):upper() .. input:sub(2)
return inputText:sub(1,1):upper() .. input:sub(2)
end
end
function p.main(frame)
function p.main(frame)

Navigation menu