편집 요약 없음 |
편집 요약 없음 |
||
2번째 줄: | 2번째 줄: | ||
local table_ = { | local table_ = { | ||
width = 450, height = 300, | width = 450, height = 300, | ||
data = { " | data = { | ||
{ | |||
name = "table", | |||
valus = { | |||
{category = "USB 3.2 Gen 2x2", amount = 20} | |||
} | |||
} | |||
}, | |||
signals = {} , | signals = {} , | ||
scales = {}, | scales = {}, |
2021년 6월 6일 (일) 13:15 판
local p = {}
local table_ = {
width = 450, height = 300,
data = {
{
name = "table",
valus = {
{category = "USB 3.2 Gen 2x2", amount = 20}
}
}
},
signals = {} ,
scales = {},
axes = {},
marks = {}
}
function p.jsonDecode()
return 0
--mw.text.jsonDecode()
end
function p.jsonEncode()
return mw.text.jsonEncode(table_)
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