Модул:Based on
Изглед
Документацијата за овој модул можете да ја создадете на Модул:Based on/док
local p = {}
function p.lua_main(frame)
local s = frame.args[1]
-- Секогаш е „од“.
local connector = 'од '
if frame.args[3] then
local args = {}
for i, v in ipairs(frame.args) do
if type(i) == 'number' and i >= 2 then
args[#args+1] = v
end
end
args['style'] = 'display: inline'
args['list_style'] = 'display: inline'
args['item1_style'] = 'display: inline'
local h = mw.html.create('div')
h:wikitext(s)
h:tag('br')
h:wikitext(connector)
-- Unbulleted list или Без точки.
h:wikitext(frame:expandTemplate{ title = 'Unbulleted list', args = args })
return tostring(h)
elseif frame.args[2] then
s = s .. '<br />' .. connector .. frame.args[2]
return s
end
return s
end
function p.main(frame)
return p.lua_main(frame:getParent())
end
return p