편집 요약 없음 |
편집 요약 없음 |
||
| 7번째 줄: | 7번째 줄: | ||
-- 능력치 이름 열 | -- 능력치 이름 열 | ||
local tdStyleName = "background-color:# | local tdStyleName = "background-color:#446DFF; color:white; padding:6px;" | ||
-- 입력값 열: 홀수행 | -- 입력값 열: 홀수행 #EDF3FF, 짝수행 무색 | ||
local tdStyleValue = (rowIndex % 2 == | local tdStyleValue = (rowIndex % 2 == 1) and "background-color:#EDF3FF; padding:6px;" or "padding:6px;" | ||
local html = mw.html.create("tr") | local html = mw.html.create("tr") | ||
2025년 11월 22일 (토) 02:19 판
이 모듈에 대한 설명문서는 모듈:궤적시리즈/하늘의 궤적/캐릭터 스테이터스/설명문서에서 만들 수 있습니다
local p = {}
function p.renderStatRow(frame)
local name = frame.args.name or ""
local value = frame.args.HP or ""
local rowIndex = tonumber(frame.args.row or 1)
-- 능력치 이름 열
local tdStyleName = "background-color:#446DFF; color:white; padding:6px;"
-- 입력값 열: 홀수행 #EDF3FF, 짝수행 무색
local tdStyleValue = (rowIndex % 2 == 1) and "background-color:#EDF3FF; padding:6px;" or "padding:6px;"
local html = mw.html.create("tr")
html:tag("td"):attr("style", tdStyleName):wikitext(name)
html:tag("td"):attr("style", tdStyleValue):wikitext(value)
html:tag("td"):attr("style", tdStyleValue):wikitext("") -- Lv1
html:tag("td"):attr("style", tdStyleValue):wikitext("") -- Lv50
html:tag("td"):attr("style", tdStyleValue):wikitext("") -- Lv120
return tostring(html)
end
return p