Line 121: |
Line 121: |
| for i, fleet in ipairs(fleets) do | | for i, fleet in ipairs(fleets) do |
| table.insert(result, string.format('|-| %s =', 'Variant ' .. i)) | | table.insert(result, string.format('|-| %s =', 'Variant ' .. i)) |
| + | local fleetNote = '' |
| if table.getn(fleet.notes) > 0 then | | if table.getn(fleet.notes) > 0 then |
− | table.insert(result, U.ijoin(fleet.notes, ', ')) | + | fleetNote = fleetNote .. U.ijoin(fleet.notes, ', ') |
| end | | end |
| if fleet.f2p and fleet.f2p > 0 then | | if fleet.f2p and fleet.f2p > 0 then |
− | table.insert(result, ", '''{{color|green|{{tooltip|P2W|" .. fleet.f2p .. " samples}}}}'''") | + | fleetNote = fleetNote .. ", '''{{color|green|{{tooltip|P2W|" .. fleet.f2p .. " samples}}}}'''" |
| end | | end |
| if fleet.p2w and fleet.p2w > 0 then | | if fleet.p2w and fleet.p2w > 0 then |
− | table.insert(result, ", '''{{color|red|{{tooltip|P2W|" .. fleet.p2w .. " samples}}}}'''") | + | fleetNote = fleetNote .. ", '''{{color|red|{{tooltip|P2W|" .. fleet.p2w .. " samples}}}}'''" |
| end | | end |
| + | table.insert(result, fleetNote) |
| table.insert(result, tableHeaderFriend) | | table.insert(result, tableHeaderFriend) |
| for j, ship in ipairs(fleet.fleet) do | | for j, ship in ipairs(fleet.fleet) do |