Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:BaseTable
(view source)
Revision as of 12:08, 4 November 2022
182 bytes added
,
2 years ago
no edit summary
Line 11:
Line 11:
_cell_color = {
_cell_color = {
},
},
−
_cell = [[| class="
highlighted
${classes}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |${values.value}]],
+
_cell = [[| class="${classes}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |${values.value}]],
_empty_cell = [[|]],
_empty_cell = [[|]],
_column_cell_templates = {
_column_cell_templates = {
Line 240:
Line 240:
for _, column in ipairs(self._columns) do
for _, column in ipairs(self._columns) do
if row_values[column] then
if row_values[column] then
+
if row_values[column].bg_color and row_values[column].bg_color ~= self._transparent then
+
row_values[column].classes = "highlighted " .. (row_values[column].classes or "")
+
end
table.insert(self._rows, format(self._column_cell_templates[column] or self._cell, row_values[column]))
table.insert(self._rows, format(self._column_cell_templates[column] or self._cell, row_values[column]))
end
end
がか
cssedit, gkautomate
7,064
edits