Module:Skill List: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 10: Line 10:
local getSkill = require('Module:Data/Skill/' .. game)
local getSkill = require('Module:Data/Skill/' .. game)
local iconPage = mw.title.makeTitle('Module', 'Data/Icon/' .. game)
local iconPage = mw.title.makeTitle('Module', 'Data/Icon/' .. game)
if not getSkill.skill[input] then
error("Skill \"" .. input .. "\" not defined for " .. game)
end
if getSkill.skill[input] and getSkill.skill[input].link then -- Check if an alternate link for a page is set in skill data
if getSkill.skill[input] and getSkill.skill[input].link then -- Check if an alternate link for a page is set in skill data
name = '[[' .. getSkill.skill[input].link .. '|' .. getSkill.skill[input].name .. ']]'
name = '[[' .. getSkill.skill[input].link .. '|' .. getSkill.skill[input].name .. ']]'

Navigation menu