• 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
no edit summary
Line 10: Line 10:     
local EquipmentInfoKai = BaseData{
 
local EquipmentInfoKai = BaseData{
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 380px; background-color: #fafafa;${float}"
+
_template = [[{|class="${table_class}" id="${table_id}"
 
|-
 
|-
 
| colspan="2" id="kc-eq-namecard" style="position: relative; padding: 10px 40px; text-align: center; background-color: ${back};${extra_style};" title="${rarity}" | <div id="kc-eq-edit-link" style="position: absolute; right: 5px;">${edit_link}</div>
 
| colspan="2" id="kc-eq-namecard" style="position: relative; padding: 10px 40px; text-align: center; background-color: ${back};${extra_style};" title="${rarity}" | <div id="kc-eq-edit-link" style="position: absolute; right: 5px;">${edit_link}</div>
Line 71: Line 71:  
_buildable = "'''Buildable'''",
 
_buildable = "'''Buildable'''",
 
_unbuildable = "''Unbuildable''",
 
_unbuildable = "''Unbuildable''",
_float_style_template =  " float: left; margin: 0 1.5em 1em 0;",
   
_shown_ship_types = {
 
_shown_ship_types = {
 
8, 9,
 
8, 9,
Line 450: Line 449:  
function EquipmentInfoKai:create_infobox_prep()
 
function EquipmentInfoKai:create_infobox_prep()
 
self._vars = {}
 
self._vars = {}
local table_classes = {"infobox", "infobox-left", "infobox-equipment"}
+
local table_classes = {"infobox-right"}
 
if self._args.classes then
 
if self._args.classes then
 
table.insert(table_classes, self._args.classes)
 
table.insert(table_classes, self._args.classes)
Line 461: Line 460:  
self._vars.table_class = table.concat(table_classes, " ")
 
self._vars.table_class = table.concat(table_classes, " ")
 
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
 
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
self._vars.float = self._args.float and "" or self._float_style_template
+
-- self._vars.float = self._args.float and "" or self._float_style_template
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu