Module:SkillDx2: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Created page with "local getArgument = require('Module:Arguments').getArgument local p = {} function capitalFirst(str) -- Allows capitalization of the first letter of each word in a string; adapted from (https://stackoverflow.com/questions/20284515/capitalize-first-letter-of-every-word-in-lua) return (str:gsub("(%l)(%w*)", function(a,b) return string.upper(a)..b end)) end function p.Main(frame) local args = frame.args local game = 'dx2' local input = args[1]:lower() local getSk...")
 
mNo edit summary
Line 20: Line 20:
-- 1.2 SKILL LINK
-- 1.2 SKILL LINK
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 .. ']]' .. skillPotential
name = '[[' .. getSkill.skill[input].link .. '|' .. getSkill.skill[input].name .. ']]'
else
else
name = '[[' .. getSkill.skill[input].name .. ']]' .. skillPotential
name = '[[' .. getSkill.skill[input].name .. ']]'
end
end
-- 3 NAME AND ATTRIBUTE
-- 3 NAME AND ATTRIBUTE

Navigation menu