Module:Numlinks 2-num: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Tag: Manual revert
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 97: Line 97:
if j == row_offset then
if j == row_offset then
-- Insert text for current-page cell
-- Insert text for current-page cell
table.insert(lines, string.format('| style="width: %d%%;" | %s', middle_cell_width, links[i][j]))
table.insert(lines, string.format('| style="width: %d%%;" | %s', middle_cell_width, links[j][i]))
else
else
-- Insert text for non-current middle cell
-- Insert text for non-current middle cell
table.insert(lines, string.format('| style="font-size: 0.75em; width: %d%%;" | %s', middle_cell_width, links[i][j]))
table.insert(lines, string.format('| style="font-size: 0.75em; width: %d%%;" | %s', middle_cell_width, links[j][i]))
end
end
else
else
-- Insert text for non-middle cell
-- Insert text for non-middle cell
table.insert(lines, string.format('| style="font-size: 0.75em;" | %s', links[i][j]))
table.insert(lines, string.format('| style="font-size: 0.75em;" | %s', links[j][i]))
end
end
end
end