• 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
Undo revision 806956 by がか (talk)
Line 30: Line 30:  
local ShipPage = {
 
local ShipPage = {
   −
     _header = "${ship_meta}__TOC__${clear}${ship_infoboxes}",
+
     _header = "${ship_meta}__TOC__${clear}${ship_infoboxes}${ship_categories}",
    
     _ship_infobox = [[<div style="display:inline-block;">
 
     _ship_infobox = [[<div style="display:inline-block;">
 
===${title}===
 
===${title}===
 
${infobox}
 
${infobox}
${categories}
   
</div>]],
 
</div>]],
   Line 62: Line 61:  
             self._ship_infobox,
 
             self._ship_infobox,
 
             title = self._ship_infobox_titles[i],
 
             title = self._ship_infobox_titles[i],
             infobox = ShipInfoKai:Infobox({ form }),
+
             infobox = ShipInfoKai:Infobox({ form })
            categories = ShipCategoriesKai:Categories({ form })
   
         })
 
         })
 
     end
 
     end
 
     self._vars.ship_infoboxes = table.concat(infoboxes, "\n")
 
     self._vars.ship_infoboxes = table.concat(infoboxes, "\n")
 +
end
 +
 +
function ShipPage:format_ship_categories()
 +
    self._vars.ship_categories = ShipCategoriesKai:Categories({ self._vars.ship_name })
 
end
 
end
   Line 76: Line 78:  
     self:format_ship_meta()
 
     self:format_ship_meta()
 
     self:format_ship_infoboxes()
 
     self:format_ship_infoboxes()
 +
    self:format_ship_categories()
 
     return format(self._header, self._vars)
 
     return format(self._header, self._vars)
 
end
 
end
Line 142: Line 145:  
})
 
})
 
-- print(p.t6)
 
-- print(p.t6)
  −
ShipPage.t7 = ShipPage.Header(nil, {
  −
    explicit = { ship = "I-13" },
  −
    implicit = {},
  −
})
  −
-- print(p.t7)
   
]]--
 
]]--
    
return ShipPage
 
return ShipPage
cssedit, gkautomate
7,060

edits

Navigation menu