Module:Numlinks 2-num: Difference between revisions
generalize code |
mNo edit summary |
||
| Line 92: | Line 92: | ||
if i == num_links_1 + 1 then | if i == num_links_1 + 1 then | ||
-- Insert text for middle cell | -- Insert text for middle cell | ||
table.insert(lines, string.format('| style=" | table.insert(lines, string.format('| style="width: %d%%;" | %s', middle_cell_width, links[i][j])) | ||
else | else | ||
-- Insert text for non-middle cell | -- Insert text for non-middle cell | ||