편집 요약 없음 |
편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
function p.render(frame) | function p.render(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
| 8번째 줄: | 6번째 줄: | ||
while true do | while true do | ||
local | local name = args["이름" .. index] | ||
local trigger = args["발동조건" .. index] | local trigger = args["발동조건" .. index] | ||
local chance = args["확률" .. index] | local chance = args["확률" .. index] | ||
local effect = args["효과" .. index] | local effect = args["효과" .. index] | ||
if not | if not name or name == "" then break end | ||
table.insert(rows, string.format([[ | table.insert(rows, string.format([[|- | ||
|- | | %dLv || %s || %s || %s || %s | ||
| %s || %s || %s || %s | ]], index, name, trigger or "-", chance or "-", effect or "-")) | ||
]], | |||
index = index + 1 | index = index + 1 | ||
end | end | ||
return string.format([[ | return string.format([[{| class="wikitable" style="width:100%%; text-align:center; border-collapse:collapse; font-size:90%%;" | ||
{| class="wikitable" style="width:100%%; text-align:center; border-collapse:collapse; font-size:90%%;" | |||
|- | |- | ||
! style="background:#656565;color:white;padding:8px;font-size:15px;" colspan=" | ! style="background:#656565;color:white;padding:8px;font-size:15px;" colspan="5" | 서포트 어빌리티 | ||
|- | |- | ||
! style="background:#656565;color:white;" | | ! style="background:#656565;color:white;" | Lv | ||
! style="background:#656565;color:white;" | 이름 | |||
! style="background:#656565;color:white;" | 발동 조건 | ! style="background:#656565;color:white;" | 발동 조건 | ||
! style="background:#656565;color:white;" | 확률 | ! style="background:#656565;color:white;" | 확률 | ||
! style="background:#656565;color:white;" | 효과 | ! style="background:#656565;color:white;" | 효과 | ||
%s | %s | ||
|} | |}]], table.concat(rows, "\n")) | ||
]], table.concat(rows, "\n")) | |||
end | end | ||
return | return p | ||
2025년 11월 30일 (일) 02:02 판
이 모듈에 대한 설명문서는 모듈:궤적시리즈/하늘의 궤적/캐릭터 서포트 어빌리티/설명문서에서 만들 수 있습니다
function p.render(frame)
local args = frame:getParent().args
local rows = {}
local index = 1
while true do
local name = args["이름" .. index]
local trigger = args["발동조건" .. index]
local chance = args["확률" .. index]
local effect = args["효과" .. index]
if not name or name == "" then break end
table.insert(rows, string.format([[|-
| %dLv || %s || %s || %s || %s
]], index, name, trigger or "-", chance or "-", effect or "-"))
index = index + 1
end
return string.format([[{| class="wikitable" style="width:100%%; text-align:center; border-collapse:collapse; font-size:90%%;"
|-
! style="background:#656565;color:white;padding:8px;font-size:15px;" colspan="5" | 서포트 어빌리티
|-
! style="background:#656565;color:white;" | Lv
! style="background:#656565;color:white;" | 이름
! style="background:#656565;color:white;" | 발동 조건
! style="background:#656565;color:white;" | 확률
! style="background:#656565;color:white;" | 효과
%s
|}]], table.concat(rows, "\n"))
end
return p