Module:Sandbox/ChaoticShadow/InfoboxBuilder: Difference between revisions
rename variables
No edit summary |
(rename variables) |
||
Line 24:
{ name = 'text color' }
},
infobox = mw.html.create('table'):addClass('infobox'),
finished = false
Line 134 ⟶ 133:
end
local raw_param_value = self.
local colors = color_table[raw_param_value]
Line 165 ⟶ 164:
error("name must not be nil or empty")
end
if self.
error("name cannot be duplicate")
end
Line 174 ⟶ 173:
default = v.default
}
table.insert(self.
end
Line 188 ⟶ 187:
for k,v in pairs(args) do
if v ~= '' then
self.
end
end
if self.
self:setHeaderBackgroundColor(self.
end
if self.
self:setHeaderTextColor(self.
end
Line 212 ⟶ 211:
end
if self.
return self.
end
Line 223 ⟶ 222:
end
local raw_param_value = self.
if raw_param_value == nil then
Line 237 ⟶ 236:
end
self.
return content
|