Module:FamilyCostumeUpgradeTable: Difference between revisions
Jump to navigation
Jump to search
FaeriMagic (talk | contribs) mNo edit summary |
FaeriMagic (talk | contribs) mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local skill = args.skill or "Placeholder Skill" | local skill = args.skill or "Placeholder Skill" | ||
local image = args.image or " | local image = args.image or "" | ||
local levels = args.levels or "" | local levels = args.levels or "" | ||
local typeName = args.typeName or "❴❴❴Fellow Type❵❵❵" | local typeName = args.typeName or "❴❴❴Fellow Type❵❵❵" | ||
Line 32: | Line 32: | ||
! Lv. | ! Lv. | ||
! Level Cap | ! Level Cap | ||
! <abbr title="The Aptitude | ! <abbr title="The Aptitude granted by this costume.">%s Aptitude</abbr> | ||
! <abbr title="The total Intimacy this costume contributes at this level.">Intimacy</abbr> | ! <abbr title="The total Intimacy this costume contributes at this level.">Intimacy</abbr> | ||
! <abbr title="The total Blessing Power this costume contributes at this level.">Blessing Power</abbr> | ! <abbr title="The total Blessing Power this costume contributes at this level.">Blessing Power</abbr> |
Latest revision as of 04:34, 31 July 2025
Documentation for this module may be created at Module:FamilyCostumeUpgradeTable/doc
local p = {} function p.main(frame) local args = frame:getParent().args local skill = args.skill or "Placeholder Skill" local image = args.image or "" local levels = args.levels or "" local typeName = args.typeName or "❴❴❴Fellow Type❵❵❵" local rows = {} for line in mw.text.gsplit(levels, ";", true) do local parts = mw.text.split(mw.text.trim(line), ",") local level = parts[1] or "" local cap = parts[2] or "" local apt = parts[3] or "" local intimacy = parts[4] or "" local bp = parts[5] or "" table.insert(rows, string.format( '|-\n| | %s || %s || %s || %s || %s', level, cap, apt, intimacy, bp )) end local header = string.format([=[ {| class="wikitable" style="text-align: center;" |+ Costume Upgrade |- | colspan="5" | [[File:%s|25px]] %s |- ! Lv. ! Level Cap ! <abbr title="The Aptitude granted by this costume.">%s Aptitude</abbr> ! <abbr title="The total Intimacy this costume contributes at this level.">Intimacy</abbr> ! <abbr title="The total Blessing Power this costume contributes at this level.">Blessing Power</abbr> ]=], image, skill, typeName) local output = header .. "\n" .. table.concat(rows, "\n") .. "\n|}" return output end return p