31,075
edits
(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( | local function capitalizeFirstLetter(inputText) | ||
return | return inputText:sub(1,1):upper() .. input:sub(2) | ||
end | end | ||
function p.main(frame) | function p.main(frame) |