Module:Numlinks 2-num: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 91: Line 91:
for i = 1, 1 + num_links_1 * 2 do
for i = 1, 1 + num_links_1 * 2 do
if i == num_links_1 + 1 then
if i == num_links_1 + 1 then
-- Insert text for middle cell
if j == num_links_2 + 1 then
table.insert(lines, string.format('| style="width: %d%%;" | %s', middle_cell_width, links[i][j]))
-- Insert text for current-page cell
table.insert(lines, string.format('| style="width: %d%%;" | %s', middle_cell_width, links[i][j]))
else
-- 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]))
end
else
else
-- Insert text for non-middle cell
-- Insert text for non-middle cell