- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Module:Sandbox/Chocolatecravinghobo"
Jump to navigation
Jump to search
(Created page with "local CardList = require('Module:CardList') local Formatting = require('Module:Formatting') local Ship = require('Module:Ship') local ShipCardKai = require('Module:ShipCardKai...") |
m |
||
Line 7: | Line 7: | ||
_item_class = Ship, | _item_class = Ship, | ||
_blank = "Empty ship slot.png", | _blank = "Empty ship slot.png", | ||
− | _default_size = | + | _default_size = "150x206px", |
_column_count = 5, | _column_count = 5, | ||
} | } |
Revision as of 18:26, 9 June 2020
Documentation for this module may be created at Module:Sandbox/Chocolatecravinghobo/doc
local CardList = require('Module:CardList')
local Formatting = require('Module:Formatting')
local Ship = require('Module:Ship')
local ShipCardKai = require('Module:ShipCardKai')
local ShipCardListKai = CardList{
_item_class = Ship,
_blank = "Empty ship slot.png",
_default_size = "150x206px",
_column_count = 5,
}
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