Content deleted Content added
trying to show unk line error |
No edit summary |
||
Line 37:
end
local default = data['lines']['_default'] or {}
local line = data['lines'][lineN] or
for k, v in pairs(default) do
if v then line[k] = line[k] or v end
Line 427:
color = getColor(data, nil, lineN, typeN)
if inline ~= 'box' then
line_data = next(line) ~= nil and line or error(i18n[lang]['error_unknown'](lineN))
line = line_data['title'] or default['title'] or error(i18n[lang]['error_missing']('title'))
line = mw.ustring.gsub(line, '%%1', lineN)
Line 676:
data = data or getData(system, true)
if data then
line = next(line_data) ~= nil and line_data or error(i18n[lang]['error_unknown'](line))
if Type then
Type = data['aliases'] and data['aliases'][mw.ustring.lower(Type)] or Type
|