Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:NanaminFleet
(view source)
Revision as of 05:30, 9 April 2015
134 bytes added
,
9 years ago
m
no edit summary
Line 163:
Line 163:
local row_values = {}
local row_values = {}
for _, column in ipairs(self._columns) do
for _, column in ipairs(self._columns) do
−
local value = self[column](self, item)
+
if type(item) == "string" then
−
if value then
+
row_values = item
−
row_values[column] = value
+
else
−
row_values[column].rowspan = item.class ~= nil and 4 or 1
+
local value = self[column](self, item)
−
row_values[column].colspan = 1
+
if value then
+
row_values[column] = value
+
row_values[column].rowspan = item.class ~= nil and 4 or 1
+
row_values[column].colspan = 1
+
end
end
end
end
end
Nanamin
48
edits