• 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 17: Line 17:  
_column_empty_cells = {
 
_column_empty_cells = {
 
},
 
},
 +
_header1 = "<h2>${value}</h2>",
 
_custom_row_class = "custom-row",
 
_custom_row_class = "custom-row",
 
_custom_row_prefix = "custom_row_",
 
_custom_row_prefix = "custom_row_",
Line 257: Line 258:     
function BaseTable:append_custom_row(custom_row_key)
 
function BaseTable:append_custom_row(custom_row_key)
if self._custom_rows and self._custom_rows[custom_row_key] then
+
    if mw.ustring.sub(custom_row_key, 1, 1) == "#" then
 +
        local value = mw.ustring.sub(custom_row_key, 2)
 +
table.insert(self._rows, self._row_starter)
 +
table.insert(self._rows, format{
 +
    self._header1,
 +
    value = value
 +
        })
 +
elseif self._custom_rows and self._custom_rows[custom_row_key] then
 
if type(self._custom_rows[custom_row_key]) == "table" then
 
if type(self._custom_rows[custom_row_key]) == "table" then
 
table.insert(self._rows, format(self._row_starter_with_attributes, self._custom_rows[custom_row_key].row or {}))
 
table.insert(self._rows, format(self._row_starter_with_attributes, self._custom_rows[custom_row_key].row or {}))
cssedit, gkautomate
7,064

edits

Navigation menu