Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
checkType will work in for loops as well, with the power of the i variable
>Mr. Stradivarius (add error check to _formatPageTables) |
>Mr. Stradivarius (checkType will work in for loops as well, with the power of the i variable) |
||
Line 66: | Line 66: | ||
local links = {} | local links = {} | ||
for i, t in ipairs(pages) do | for i, t in ipairs(pages) do | ||
checkType('_formatPageTables', i, t, 'table') | |||
local link = t[1] | local link = t[1] | ||
local display = t[2] | local display = t[2] |