• 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:EnemyShipCategoriesKai"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
m
Line 1: Line 1:
 
local ShipCategoriesKai = require('Module:ShipCategoriesKai')
 
local ShipCategoriesKai = require('Module:ShipCategoriesKai')
  
--local format = require('Module:StringInterpolation').format
+
--local format = require('Module:Utils').format
  
 
local EnemyShipCategoriesKai = ShipCategoriesKai{
 
local EnemyShipCategoriesKai = ShipCategoriesKai{

Revision as of 16:43, 12 April 2018

Documentation for this module may be created at Module:EnemyShipCategoriesKai/doc

local ShipCategoriesKai = require('Module:ShipCategoriesKai')

--local format = require('Module:Utils').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_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