- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Created page with "local ShipCategoriesKai = require('Module:ShipCategoriesKai') --local format = require('Module:StringInterpolation').format local EnemyShipCategoriesKai = ShipCategoriesKai{..."
local ShipCategoriesKai = require('Module:ShipCategoriesKai')
--local format = require('Module:StringInterpolation').format
local EnemyShipCategoriesKai = ShipCategoriesKai{
_type_category_template = "Category:Abyssal ${ship_type}s",
_stock_equipment_category_template = "Category:Enemy ships with ${equipment_name} as equipment",
}
function EnemyShipCategoriesKai:create_static_categories()
table.insert(self._categories, "Category:Enemy ships")
end
function EnemyShipCategoriesKai:create_type_categories()
local ship_type = self._ship:type()
if ship_type then
table.insert(self._categories, format{self._type_category_template, ship_type = Formatting:format_ship_type(ship_type)})
end
end
--function EnemyShipCategoriesKai:create_class_categories()
-- local ship_class = self._ship:base_name()
-- if ship_class then
-- table.insert(self._categories, format{"Category:${ship_class}", ship_class = ship_class})
-- end
--end
function EnemyShipCategoriesKai:create_categories()
self:create_static_categories()
self:create_type_categories()
--self:create_class_categories()
--self:create_rarity_categories()
--self:create_construction_categories()
--self:create_remodel_categories()
self:create_stock_equipment_categories()
end
return EnemyShipCategoriesKai
--local format = require('Module:StringInterpolation').format
local EnemyShipCategoriesKai = ShipCategoriesKai{
_type_category_template = "Category:Abyssal ${ship_type}s",
_stock_equipment_category_template = "Category:Enemy ships with ${equipment_name} as equipment",
}
function EnemyShipCategoriesKai:create_static_categories()
table.insert(self._categories, "Category:Enemy ships")
end
function EnemyShipCategoriesKai:create_type_categories()
local ship_type = self._ship:type()
if ship_type then
table.insert(self._categories, format{self._type_category_template, ship_type = Formatting:format_ship_type(ship_type)})
end
end
--function EnemyShipCategoriesKai:create_class_categories()
-- local ship_class = self._ship:base_name()
-- if ship_class then
-- table.insert(self._categories, format{"Category:${ship_class}", ship_class = ship_class})
-- end
--end
function EnemyShipCategoriesKai:create_categories()
self:create_static_categories()
self:create_type_categories()
--self:create_class_categories()
--self:create_rarity_categories()
--self:create_construction_categories()
--self:create_remodel_categories()
self:create_stock_equipment_categories()
end
return EnemyShipCategoriesKai