Modulo:Fumetto e animazione/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m sposto
m -
Riga 423:
local root = mw.html.create('table')
root
:addClass('wikitable mw-collapsible mw-collapsed sortable')
:tag('tr')
:tag('th'):wikitext(table_name):done()
Riga 430:
local keys, reverse_alias = {}, {}
local alias_table_name = table_name:find('genere') and 'genere' or table_name
local pre_table_name
if table_name == 'editore_sottotipo' or table_name == 'etichetta_sottotipo' then
pre_table_name = cfg.sottotipo.fumetto
elseif table_name == 'rete' or table_name == 'streaming' then
pre_table_name = cfg.alias_sottotipo.cartone
end
for alias, name in pairs(cfg['alias_' .. alias_table_name] or {}) do
if not reverse_alias[name] then reverse_alias[name] = {} end
Riga 442 ⟶ 436:
for key in pairs(cfg[table_name]) do table.insert(keys, key) end
table.sort(keys)
local pre_table_name
if table_name == 'editore_sottotipo' or table_name == 'etichetta_sottotipo' then
pre_table_name = cfg.sottotipo.fumetto
elseif table_name == 'rete' or table_name == 'streaming' then
pre_table_name = cfg.alias_sottotipo.cartone
end
for _, key in ipairs(keys) do
local result, values = {}, {}