Module:Hatnote: Difference between revisions

Jump to navigation Jump to search
Line 151:
 
p.details = makeInvokeFunction(f.details)
 
--------------------------------------------------------------------------------
-- Further
--
-- Produces a "Further information: a, b and c" link. It accepts an unlimited
-- number of positional parameters, each of which is a page name.
--------------------------------------------------------------------------------
 
function p._further(...)
local pages = {...}
local formattedPages = {}
for i, page in ipairs(pages) do
formattedPages[i] = formatLink(page)
end
local text = 'Further information: ' .. mw.text.listToText(formattedPages)
return p._rellink(text)
end
 
function f.further(args)
local pages = mTableTools.compressSparseArray(args)
if #pages < 1 then
return makeWikiTextError('no pages specified')
end
return p._further(unpack(pages))
end
 
p.further = makeInvokeFunction(f.further)
 
return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu