Module:Hatnote: Difference between revisions

Jump to navigation Jump to search
change format of _formatPageTables
>Mr. Stradivarius
(trim colons in findNamespaceId by default)
>Mr. Stradivarius
(change format of _formatPageTables)
Line 60: Line 60:
end
end


function p._formatPageTables(pages)
function p._formatPageTables(...)
-- Takes a list of page/display tables and returns it as a list of
-- Takes a list of page/display tables and returns it as a list of
-- formatted links. Nil values are not allowed.
-- formatted links. Nil values are not allowed.
checkType('_formatPageTables', 1, pages, 'table')
local pages = {...}
local links = {}
local links = {}
for i, t in ipairs(pages) do
for i, t in ipairs(pages) do
Anonymous user

Navigation menu