편집 요약 없음 |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
local p = {} | local p = {} | ||
function p. | function p.jsonDecode(frame) | ||
return mw.text. | return mw.text.jsonDecode(frame.args[1]) | ||
end | end | ||
24번째 줄: | 24번째 줄: | ||
end | end | ||
return vertical_p | --return vertical_p | ||
return p |
2021년 6월 6일 (일) 12:34 판
local p = {}
function p.jsonDecode(frame)
return mw.text.jsonDecode(frame.args[1])
end
function p.textDecode(frame)
return mw.text.decode(frame.args[1])
end
function p.textSplit(frame)
return mw.text.split(frame.args[1], frame.args[2], frame.args[3] or "")
end
local vertical_p = {}
function vertical_p.main(frame)
local str = ""
local i, j = 1, 1
while frame.args[i] do
str = str..[[<div class="vertical_p" style="float:left;">]]..frame.args[i]..[[</div>]]
i = i + 1
end
return str
end
--return vertical_p
return p