Line 40: |
Line 40: |
| local assetTypes = { item = 'Item Icon', equipment = 'Equipment Card', ship = 'Ship Banner' } | | local assetTypes = { item = 'Item Icon', equipment = 'Equipment Card', ship = 'Ship Banner' } |
| | | |
− | local assetSizes = { item = '75px', equipment = '75px', ship = '160px' } | + | local assetSizes = { item = '75px', equipment = '75px', ship = '160px', large_ship = '240px' } |
| | | |
| local function render(frame, event, map) | | local function render(frame, event, map) |
Line 96: |
Line 96: |
| return (count == 0 and '' or count) .. getLevel(name, diff) | | return (count == 0 and '' or count) .. getLevel(name, diff) |
| end | | end |
− | local function getAsset(name) | + | local function getAsset(name, size) |
− | return string.format("[[File:%s %s.png|%s|link=%s]]", assetTypes[types[name]] or '??', name, assetSizes[types[name]] or '??', name) | + | return string.format("[[File:%s %s.png|%s|link=%s]]", assetTypes[types[name]] or '??', name, assetSizes[size or types[name]] or '??', name) |
| end | | end |
| setData('Hard') | | setData('Hard') |
Line 105: |
Line 105: |
| local result = { string.format(template.header, mw.uri.encode(event, 'WIKI')) } | | local result = { string.format(template.header, mw.uri.encode(event, 'WIKI')) } |
| if ship then | | if ship then |
− | table.insert(result, string.format(template.ship_row, getAsset(ship), ship)) | + | table.insert(result, string.format(template.ship_row, getAsset(ship, 'large_ship'), ship)) |
| end | | end |
| if choice then | | if choice then |