Մոդուլ:Մուլտիպարամետրեր-հղում
Documentation for this module may be created at Մոդուլ:Մուլտիպարամետրեր-հղում/doc
local p = {}
local function getWikitext(args)
local result = ''
for i, arg in pairs(args) do
local sep = ''
if i > 1 then
if i < #args then
sep = ', '
else
sep = ' և '
end
end
result = result .. sep .. '[https://hy.wikipedia.org/wiki/' .. mw.uri.encode(arg, 'WIKI') .. ' ' .. arg .. ']'
end
return '<span class="plainlinks">' .. result .. '</span>'
end
function p.main( frame )
local args = frame:getParent().args
return getWikitext( args )
end
return p