Module:Skill List/Header: Difference between revisions

m
no edit summary
(Created page with "local getArgs = require('Module:Arguments').getArgs local p = {} function p.main(frame) local args = getArgs(frame) local game = args[1]:lower() local exampleSkill = args[2]:lower() local getSkill = require('Module:Data/Skill/' .. game) local possibleColumns = { name = "Name", rpname = frame:expandTemplate{ title = "tt", args = { "RP Name", "''Revelations: Persona'' Name" } }, battlename = "Battle Name", skilltype = frame:expandTemplate{ title = "tt", args...")
 
mNo edit summary
Line 27: Line 27:
}
}
local usedColumns = ""
local usedColumns = ""
for columnId, columnLabel in ipairs(weapons) do
for columnId, columnLabel in ipairs(possibleColumns) do
if getSkill.skill[exampleSkill][columnId] then
if getSkill.skill[exampleSkill][columnId] then
usedColumns = usedColumns .. "! " .. columnLabel .. "\n"
usedColumns = usedColumns .. "! " .. columnLabel .. "\n"