Module:Infobox: Difference between revisions
comments; removed 8-link build function (only ever used by infobox mos, and that now uses the new infobox function) |
comments; default value for link count is 8 |
||
| Line 133: | Line 133: | ||
-- - 7: next_B, | -- - 7: next_B, | ||
-- - 8: next_A, next_B | -- - 8: next_A, next_B | ||
-- | -- Individual links can be omitted. Specifying a link count technically is | ||
-- not necessary, but it defaults to 8. | |||
-- | |||
local adjacent_links = {} | local adjacent_links = {} | ||
local link_count = tonumber(args["Link Count"]) -- This is 0, 2, or 8 | local link_count = tonumber(args["Link Count"] or 8) -- This is 0, 2, or 8 | ||
if link_count == 2 then | if link_count == 2 then | ||
table.insert(adjacent_links, args["Left Link" ] or "") | table.insert(adjacent_links, args["Left Link" ] or "") | ||