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



914Articles

모듈:궤적시리즈/하늘의 궤적/퀵배틀 공격표

4767561 (토론 | 기여)님의 2025년 12월 15일 (월) 01:12 판 (새 문서: -- 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...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

예시

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

설명

하늘의 궤적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%, ○
}}

-- 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; width:100%"\n'

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

	local i = 1
	while args['row' .. i] do
		local cols = splitRow(args['row' .. i])
		html = html .. '|-\n'
		for _, v in ipairs(cols) do
			html = html .. '| ' .. v .. '\n'
		end
		i = i + 1
	end

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

return p