Documentation for this module may be created at Module:Sandbox/Nardog/9/doc
local p = {}
function p.main(frame)
local s = frame.args[1]
local prefix = frame.args.prefix or ''
local suffix = frame.args.suffix or ''
local params = frame.args.params or 'action=edit'
if s then
local ol = mw.html.create('ol'):addClass('plainlinks')
for v in mw.text.gsplit(s, '%s*\n%s*') do
if v ~= '' then
ol:tag('li'):wikitext(string.format('[%s %s]',
tostring(mw.uri.fullUrl(prefix .. v .. suffix, params)), v))
end
end
return tostring(ol)
end
end
return p