Module:Neighbor Journey: Difference between revisions
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 96: | Line 96: | ||
-- Groups | -- Groups | ||
---------------------------------------------------------------- | ---------------------------------------------------------------- | ||
local hasGroup = false | |||
for _, group in ipairs(validGroups) do | for _, group in ipairs(validGroups) do | ||
| Line 104: | Line 106: | ||
-- Don't output groups that have no rewards. | -- Don't output groups that have no rewards. | ||
if #rewards > 0 then | if #rewards > 0 then | ||
-- Add a separator after Meet / between groups. | |||
table.insert(output, "|-") | |||
table.insert(output, | |||
'! colspan="4" style="height:10px; min-height:5px; padding:0; border:0;" |' | |||
) | |||
hasGroup = true | |||
-- Replace {name} with the neighbor's name. | -- Replace {name} with the neighbor's name. | ||
| Line 149: | Line 159: | ||
table.insert(output, "|}") | table.insert(output, "|}") | ||
-- Process | -- Process generated wikitext so that templates | ||
-- such as {{Icon/Journey}} and {{Item}} are evaluated. | -- such as {{Icon/Journey}} and {{Item}} are evaluated. | ||
local result = table.concat(output, "\n") | local result = table.concat(output, "\n") | ||