Module:Sandbox/Chocolatecravinghobo
Revision as of 19:06, 9 June 2020 by Chocolatecravinghobo (talk | contribs)
Documentation for this module may be created at Module:Sandbox/Chocolatecravinghobo/doc
local Ship = require('Module:Ship')
local ShipCardKai = require('Module:ShipCardKai')
function ShipCardListKai:card(ship)
local value
if ship == false then
value = Formatting:format_image{self._blank, size = self._size}
else
value = ShipCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
end
return {values = {value = value}, bg_color = self._transparent, text_align = self._center_align}
end
return ShipCardListKai