편집 요약 없음 |
편집 요약 없음 |
||
| 27번째 줄: | 27번째 줄: | ||
! style="background:#656565;color:white; width:5%;" | 레벨 | ! style="background:#656565;color:white; width:5%;" | 레벨 | ||
! style="background:#656565;color:white; width:10%;" | 어빌리티 | ! style="background:#656565;color:white; width:10%;" | 어빌리티 | ||
! style="background:#656565;color:white; width: | ! style="background:#656565;color:white; width:30%;" | 발생 타이밍 | ||
! style="background:#656565;color:white; width:5%;" | 발동 확률 | ! style="background:#656565;color:white; width:5%;" | 발동 확률 | ||
! style="background:#656565;color:white; width:60%;" | 효과 | ! style="background:#656565;color:white; width:60%;" | 효과 | ||
2025년 11월 30일 (일) 02:23 판
이 모듈에 대한 설명문서는 모듈:궤적시리즈/하늘의 궤적/캐릭터 서포트 어빌리티/설명문서에서 만들 수 있습니다
local p = {}
function makeRow(level, ability, trigger, chance, effect)
return string.format([[|-
| Lv%s || style="text-align:left;" | %s || style="text-align:left;" | %s || %s || style="text-align:left;" | %s
]], level, ability or "-", trigger or "-", chance or "-", effect or "-")
end
function p.render(frame)
local args = frame:getParent().args
local rows = {}
for i = 1, 7 do
local ability = args["Lv" .. i .. "_어빌리티"]
local trigger = args["Lv" .. i .. "_발생"]
local chance = args["Lv" .. i .. "_확률"]
local effect = args["Lv" .. i .. "_효과"]
if ability or trigger or chance or effect then
table.insert(rows, makeRow(i, ability, trigger, chance, effect))
end
end
local tableStart = [[
{| class="wikitable" style="width:100%; border-collapse:collapse;"
|-
! style="background:#656565;color:white; width:5%;" | 레벨
! style="background:#656565;color:white; width:10%;" | 어빌리티
! style="background:#656565;color:white; width:30%;" | 발생 타이밍
! style="background:#656565;color:white; width:5%;" | 발동 확률
! style="background:#656565;color:white; width:60%;" | 효과
]]
local tableEnd = "\n|}"
return tableStart .. table.concat(rows, "") .. tableEnd
end
return p