| 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)) |
| − | if fleet.p2w and fleet.p2w > 0 then | + | if table.getn(fleet.notes) > 0 then |
| − | table.insert(result, "'''{{color|red|{{tooltip|P2W|" .. fleet.p2w .. " samples}}}}''', ") | + | table.insert(result, 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}}}}''', ") | + | table.insert(result, ", '''{{color|green|{{tooltip|P2W|" .. fleet.f2p .. " samples}}}}'''") |
| | + | end |
| | + | if fleet.p2w and fleet.p2w > 0 then |
| | + | table.insert(result, ", '''{{color|red|{{tooltip|P2W|" .. fleet.p2w .. " samples}}}}'''") |
| | end | | end |
| − | if table.getn(fleet.notes) > 0 then
| |
| − | table.insert(result, U.ijoin(fleet.notes, '<br>'))
| |
| − | end
| |
| | table.insert(result, tableHeaderFriend) | | table.insert(result, tableHeaderFriend) |
| | for j, ship in ipairs(fleet.fleet) do | | for j, ship in ipairs(fleet.fleet) do |