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



914Articles

모듈:궤적시리즈/하늘의 궤적/퀵배틀 공격표: 두 판 사이의 차이

(새 문서: -- Module:QuickBattleAttackTable -- 퀵배틀 공격표 (row 방식 / 모션 수 가변) 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:getParent().args local html = '{| class="wikitable" style="text-align:center; w...)
 
편집 요약 없음
1번째 줄: 1번째 줄:
-- Module:QuickBattleAttackTable
-- 퀵배틀 공격표 (row 방식 / 모션 수 가변)
local p = {}
local p = {}


27번째 줄: 24번째 줄:


-- header
-- header
for _, h in ipairs(headers) do
html = html .. '! ' .. table.concat(headers, ' !! ') .. '\n'
html = html .. '! ' .. h
end
html = html .. '\n'


local i = 1
local i = 1
36번째 줄: 30번째 줄:
local cols = splitRow(args['row' .. i])
local cols = splitRow(args['row' .. i])
html = html .. '|-\n'
html = html .. '|-\n'
for _, v in ipairs(cols) do
html = html .. '| ' .. table.concat(cols, ' || ') .. '\n'
html = html .. '| ' .. v .. '\n'
end
i = i + 1
i = i + 1
end
end

2025년 12월 15일 (월) 01:18 판

예시

기술명 위력 데미지 배율 히트 수 차지 게이지 회복량 스턴 넉백

설명

하늘의 궤적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:getParent().args
	local html = '{| class="wikitable" style="text-align:center; width:100%"\n'

	-- header
	html = html .. '! ' .. table.concat(headers, ' !! ') .. '\n'

	local i = 1
	while args['row' .. i] do
		local cols = splitRow(args['row' .. i])
		html = html .. '|-\n'
		html = html .. '| ' .. table.concat(cols, ' || ') .. '\n'
		i = i + 1
	end

	html = html .. '|}'
	return html
end

return p