Line 111: |
Line 111: |
| | | |
| local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry") | | local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry") |
− | -- Top half of infobox | + | |
− | -- Cards & Banners
| + | local shipName = shipInfo.name[3] |
− | local cardImgFile = '{{#setmainimage:KanMusu' .. shipNum .. 'Card.png}}'
| + | local CardImg = '<div style="text-align: center; width: 218px; height:300px;">[[File:{{#setmainimage:Ship Card ' .. shipName .. '.png}}|218x300px|' .. shipName .. ' Card]]</div>' |
− | local CardImg = '<div style="text-align: center; width: 218px; height:300px;">[[File:' .. cardImgFile .. '|218x300px|' .. shipmodule.data[shipNum]["name"][3] .. ' Card]]</div>' | + | local CardDmgImg = '<div style="text-align: center; width: 218px; height:300px;">[[File:Ship Card ' .. shipName .. ' Damaged.png|218x300px|' .. shipName .. ' Damaged Card]]</div>' |
− | local CardDmgImg = '<div style="text-align: center; width: 218px; height:300px;">[[File:KanMusu' .. shipNum .. 'CardDmg.png|218x300px|' .. shipmodule.data[shipNum]["name"][3] .. ' Damaged Card]]</div>' | + | local BannerImg = '<div style="text-align: center; width: 160px; height:40px;">[[File:Ship Banner ' .. shipName .. '.png|160px|' .. shipName .. ' Banner|class=imageCenter]]</div>' |
− | local BannerImg = '<div style="text-align: center; width: 160px; height:40px;">[[File:KanMusu' .. shipNum .. 'Banner.png|160px|' .. shipmodule.data[shipNum]["name"][3] .. ' Banner|class=imageCenter]]</div>' | + | local BannerDmgImg = '<div style="text-align: center; width: 160px; height:40px;">[[File:Ship Banner ' .. shipName .. ' Damaged.png|160px|' .. shipName .. ' Damaged Banner|class=imageCenter]]</div>' |
− | local BannerDmgImg = '<div style="text-align: center; width: 160px; height:40px;">[[File:KanMusu' .. shipNum .. 'BannerDmg.png|160px|' .. shipmodule.data[shipNum]["name"][3] .. ' Damaged Banner|class=imageCenter]]</div>' | |
| | | |
| local Cards = '<td rowspan="10" style="text-align: center; width: 218px; height:300px;">' .. frame:extensionTag('slideshow', CardImg .. CardDmgImg, { | | local Cards = '<td rowspan="10" style="text-align: center; width: 218px; height:300px;">' .. frame:extensionTag('slideshow', CardImg .. CardDmgImg, { |
Line 351: |
Line 350: |
| remodelinfo = string.format('[[File:IcoSteel.png|18px|Steel]] %d [[File:IcoAmmo.png|18px|Ammo]] %d', shipInfo.remodelreq[1], shipInfo.remodelreq[2]) | | remodelinfo = string.format('[[File:IcoSteel.png|18px|Steel]] %d [[File:IcoAmmo.png|18px|Ammo]] %d', shipInfo.remodelreq[1], shipInfo.remodelreq[2]) |
| if shipInfo.remodelbp then | | if shipInfo.remodelbp then |
− | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoBlueprint.png|25px|Blueprint|link=Blueprints]] %d', shipInfo.remodelbp) | + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:Item Icon Remodel Blueprint.png|25px|Blueprint|link=Blueprints]] %d', shipInfo.remodelbp) |
| end | | end |
| if shipInfo.remodelcatapult then | | if shipInfo.remodelcatapult then |
− | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoCatapult.png|25px|Prototype Flight Deck Catapult]] %d', shipInfo.remodelcatapult) | + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:Item Icon Prototype Flight Deck Catapult.png|25px|Prototype Flight Deck Catapult]] %d', shipInfo.remodelcatapult) |
| end | | end |
| if shipInfo.remodelar then | | if shipInfo.remodelar then |
− | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoActionReport.png|25px|Action Report]] %d', shipInfo.remodelar) | + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:Item Icon Action Report.png|25px|Action Report]] %d', shipInfo.remodelar) |
| end | | end |
| if shipInfo.remodeldevmat or shipInfo.remodelconmat or shipInfo.remodelgunmat or shipInfo.remodelairmat then | | if shipInfo.remodeldevmat or shipInfo.remodelconmat or shipInfo.remodelgunmat or shipInfo.remodelairmat then |
Line 369: |
Line 368: |
| end | | end |
| if shipInfo.remodelgunmat then | | if shipInfo.remodelgunmat then |
− | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoGunmat.png|18px|New Model Gun Mount Improvement Material]] %d', shipInfo.remodelgunmat) | + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:Item Icon New Model Gun Mount Improvement Material.png|18px|New Model Gun Mount Improvement Material]] %d', shipInfo.remodelgunmat) |
| end | | end |
| if shipInfo.remodelairmat then | | if shipInfo.remodelairmat then |
− | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoAirmat.png|18px|New Model Aerial Armament Material]] %d', shipInfo.remodelairmat) | + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:Item Icon New Model Aerial Armament Material.png|18px|New Model Aerial Armament Material]] %d', shipInfo.remodelairmat) |
| + | end |
| + | if shipInfo.remodelarmmat then |
| + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:Item Icon New Model Armament Material.png|18px|New Model Armament Material]] %d', shipInfo.remodelarmmat) |
| end | | end |
| end | | end |
Line 595: |
Line 597: |
| x = firstID + i | | x = firstID + i |
| shipID = numToID(x) | | shipID = numToID(x) |
− | if shipmodule.data[shipID] == nil then | + | if not shipmodule.data[shipID] then |
| wikipage = wikipage .. "[[File:blank.png|150px]]" | | wikipage = wikipage .. "[[File:blank.png|150px]]" |
| else | | else |
− | wikipage = wikipage .. "[[File:KanMusu" .. shipID .. "Card.png|150px|link=" .. shipdb.getWikiPage(shipID) .. "]]" | + | local shipName = shipmodule.data[shipID].name[3] |
| + | wikipage = wikipage .. "[[File:Ship Card " .. shipName .. ".png|150px|link=" .. shipdb.getWikiPage(shipID) .. "]]" |
| end | | end |
| if x % 5 == 0 then | | if x % 5 == 0 then |