Module:FellowCostumeUpgradeTable: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
local p = {}
local p = {}


local function makeSkillTable(skillName, image, levelData, typeName)
local function makeSkillTable(skillName, img, levelData, typeName)
local rows = {}
local rows = {}
for line in mw.text.gsplit(levelData or "", ";", true) do
for line in mw.text.gsplit(levelData or "", ";", true) do
Line 21: Line 21:
! Level Cap
! Level Cap
! <abbr title="The Aptitude multiplier granted by this costume.">%s Aptitude</abbr>
! <abbr title="The Aptitude multiplier granted by this costume.">%s Aptitude</abbr>
]=], image or "Placeholder.png", skillName, typeName)
]=], img or "Placeholder.png", skillName, typeName)


return header .. "\n" .. table.concat(rows, "\n") .. "\n|}"
return header .. "\n" .. table.concat(rows, "\n") .. "\n|}"
contributors, delete_pages, Interface administrators
4,701

edits