Module:Numlinks: Difference between revisions

Ganaram inukshuk (talk | contribs)
m todo
Ganaram inukshuk (talk | contribs)
m bugfix left arrow; it should only appear if the leftmost link is greater than the min
Line 80: Line 80:
-- arrow before the first link.
-- arrow before the first link.
local prev_links = {}
local prev_links = {}
if curr_num - num_links >= min_num then
if curr_num - num_links > min_num then
table.insert(prev_links, "←")
table.insert(prev_links, "←")
end
end