Changes
Undo revision 731651 by Ckwng (talk)
_table_start = [[{| class="wikitable typography-xl-optout" style="width: -moz-fit-content; width: -webkit-fit-content; width: fit-content;"]],
_table_start = [[{| class="wikitable typography-xl-optout" style="width: -moz-fit-content; width: -webkit-fit-content; width: fit-content;"]],
_row_starter = "|-",
_row_starter = "|-",
_header_template = "",
_header_template = "",
_column_header_cell_template = "! ${value}",
_column_header_cell_template = "! ${value}",
for index, row_values in ipairs(self._data_rows) do
for index, row_values in ipairs(self._data_rows) do
if row_values ~= "break" then
if row_values ~= "break" then
table.insert(self._rows, self._row_starter)
if row_values == "header" then
if row_values == "header" then
table.insert(self._rows, self._header)
table.insert(self._rows, self._header)
elseif row_values == "empty" then
elseif row_values == "empty" then
for _, column in ipairs(self._columns) do
for _, column in ipairs(self._columns) do
table.insert(self._rows, self._column_empty_cells[column] or self._empty_cell)
table.insert(self._rows, self._column_empty_cells[column] or self._empty_cell)
end
end
elseif type(row_values) == "table" then
elseif type(row_values) == "table" then
for _, column in ipairs(self._columns) do
for _, column in ipairs(self._columns) do
if row_values[column] then
if row_values[column] then
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 self._custom_rows and self._custom_rows[custom_row_key] then
table.insert(self._rows, self._custom_rows[custom_row_key])
else
else
table.insert(self._rows,
table.insert(self._rows,