Changes

no edit summary
Line 30: Line 30:  
local ShipPage = {
 
local ShipPage = {
   −
     _header = "${ship_meta}__TOC__${clear}${ship_infoboxes}${ship_categories}",
+
     _header = "${ship_meta}__TOC__${clear}${ship_infoboxes}",
    
     _ship_infobox = [[<div style="display:inline-block;">
 
     _ship_infobox = [[<div style="display:inline-block;">
 
===${title}===
 
===${title}===
 
${infobox}
 
${infobox}
 +
${categories}
 
</div>]],
 
</div>]],
   Line 61: Line 62:  
             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 78: Line 76:  
     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 145: Line 142:  
})
 
})
 
-- 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