예시
| 기술명 | 위력 | 데미지 배율 | 히트 수 | 차지 게이지 회복량 | 스턴 | 넉백 |
|---|---|---|---|---|---|---|
연속공격 1 |
100 | 24%(12%) | 1 | 20 | 100% | - |
연속공격 2 |
110 | 12%(6%) | 2 | 20 | 110% | - |
연속공격 3 |
120 | 8%(4%) | 3 | 15 | 120% | - |
점프공격 |
130 | 12%(6%) | 2 | - | 120% | - |
크래프트공격 |
140 | 7% | 5 | - | 600% | ○ |
설명
하늘의 궤적1st 퀵배틀 전용 공격 데이터 표입니다.
이하는 입력 예시입니다. 상단의 출력을 참고해 작성 바랍니다.
{{#invoke:궤적시리즈/하늘의 궤적/퀵배틀 공격표|table
|row1 = 연속공격 1, 100, 24%(12%), 1, 20, 100%, -
|row2 = 연속공격 2, 110, 12%(6%), 2, 20, 110%, -
|row3 = 연속공격 3, 120, 8%(4%), 3, 15, 120%, -
|row4 = 점프공격, 130, 12%(6%), 2, -, 120%, -
|row5 = 크래프트공격, 140, 7%, 5, -, 600%, ○
}}
local p = {}
local headers = {
"기술명",
"위력",
"데미지 배율",
"히트 수",
"차지 게이지 회복량",
"스턴",
"넉백"
}
local function splitRow(row)
local t = {}
for v in mw.text.gsplit(row, "%s*,%s*") do
t[#t+1] = v
end
return t
end
function p.table(frame)
local args = frame.args
local html = '{| class="wikitable" style="text-align:center; width:100%"\n'
-- header
html = html .. '|-\n'
for _, h in ipairs(headers) do
html = html .. '! style="background:#656565; color:#fff; font-weight:bold;" | ' .. h .. '\n'
end
local i = 1
while args['row' .. i] do
local cols = splitRow(args['row' .. i])
html = html .. '|-\n'
-- 기술명(1열): 좌측 정렬 + 볼드
if cols[1] then
cols[1] = '<div style="text-align:left;">' .. cols[1] .. '</div>'
cols[1] = "'''" .. cols[1] .. "'''"
end
html = html .. '| ' .. table.concat(cols, ' || ') .. '\n'
i = i + 1
end
html = html .. '|}'
return html
end
return p