Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(change format of _formatPageTables) |
(add error check to _formatPageTables) |
||
Line 66: | Line 66: | ||
local links = {} |
local links = {} |
||
for i, t in ipairs(pages) do |
for i, t in ipairs(pages) do |
||
if type(t) ~= 'table' then |
|||
error(string.format( |
|||
"bad argument #%d to '_formatPageTables' (table expected, got %s)", |
|||
i, |
|||
type(t) |
|||
), 2) |
|||
end |
|||
local link = t[1] |
local link = t[1] |
||
local display = t[2] |
local display = t[2] |