Documentation for this module may be created at Module:SkillProgression/doc
local functions = {
main = function(frame)
--intended to use within a template only!
local args = frame:getParent().args
--determine max skill level, solution below is actually faster than #args
local lvl
if args[14] then
if args[16] then
if args[20] then
lvl = 16
else
lvl = 12
end
else
lvl = 10
end
else
if args[12] then
lvl = 8
else
lvl = 6
end
end
--header and first row
local wikitext = string.format([=[
{| class="article-table mw-collapsible mw-collapsed"
! Level
! Skill Potency
|- class="not-mw-collapsible" |
| <b>1</b> / %d
| %s
]=], lvl, args[1])
for i = 2, lvl do
wikitext = wikitext .. string.format([=[
|-
| <b>%d</b> / %d
| %s
]=], i, lvl, args[i])
end
wikitext = wikitext .. string.format([=[
|- class="not-mw-collapsible" |
! colspan="2" | Levels only acquirable through items, [[Shrine#Shrine of Mastery | shrines]] and [[Battle Standard]]
]=])
for i = lvl + 1, lvl + 3 do
wikitext = wikitext .. string.format([=[
|-
| <b>%d</b> / %d
| %s
]=], i, lvl, args[i])
end
wikitext = wikitext .. string.format([=[
|- class="not-mw-collapsible" |
| <b>%d</b> / %d
| %s
|}]=], lvl + 4, lvl, args[lvl + 4])
return wikitext
end
}
return functions
-- [[Category:Modules]]
Community content is available under CC-BY-SA unless otherwise noted.