이 모듈에 대한 설명문서는 모듈:Based on/설명문서에서 만들 수 있습니다
lua
Copy
local p = {}
function p.lua_main(frame)
local s = frame.args[1]
if frame.args[3] then
local args = {}
for i, v in ipairs(frame.args) do
if i >= 2 then
args[#args+1] = v
end
end
args['style'] = 'display: inline'
args['list_style'] = 'display: inline'
args['item1_style'] = 'display: inline'
h = mw.html.create('div')
h:wikitext(s)
--h:tag('br') -- h:newline() is not working for some reason
h:wikitext('의 ')
h:wikitext(frame:expandTemplate{ title = '기호 없는 목록', args = args })
return h
elseif frame.args[2] then
s = s .. '의 ' .. frame.args[2]
return s
end
return s
end
function p.main(frame)
return p.lua_main(frame:getParent())
end
return p
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.