익명
×
새 문서 만들기
여기에 문서 제목을 쓰세요:
We currently have 900 articles on 루리위키. Type your article name above or click on one of the titles below and start writing!



900Articles

모듈:궤적시리즈/하늘의 궤적/캐릭터 서포트 어빌리티

4767561 (토론 | 기여)님의 2025년 11월 29일 (토) 23:22 판

이 모듈에 대한 설명문서는 모듈:궤적시리즈/하늘의 궤적/캐릭터 서포트 어빌리티/설명문서에서 만들 수 있습니다

local p = {}
function p.render(frame)
    local args = frame:getParent().args
    local rows = {}
    local index = 1
    while true do
        local level = args["레벨" .. index]
        local trigger = args["발동조건" .. index]
        local chance = args["확률" .. index]
        local effect = args["효과" .. index]
        
        if not level or level == "" then break end
        
        -- 데이터 행에는 너비를 지정할 필요가 없습니다. 헤더가 전체 열 너비를 결정합니다.
        table.insert(rows, string.format([[
            | %s 
            | %s 
            | %s 
            | %s
        ]], level, trigger or "-", chance or "-", effect or "-"))
        
        index = index + 1
    end
    
    -- 테이블 헤더에 너비(width) 속성 추가
    return string.format([[
{| class="wikitable" style="width:100%%; text-align:center; border-collapse:collapse; font-size:90%%;"
|-
! style="background:#656565;color:white; width:10%%;" | 레벨
! style="background:#656565;color:white; width:30%%;" | 발동 조건
! style="background:#656565;color:white; width:10%%;" | 확률
! style="background:#656565;color:white; width:50%%;" | 효과
%s
|}
    ]], table.concat(rows, "\n|-"))
end

return p