Differenze tra le versioni di "Modulo:Movelist/hf"

m
nessun oggetto della modifica
m (Spero di aver finito)
m
-- Ritorna le prime celle, comuni a tutti gli headers
 
local headers = function(tipo, gen, kind, frame)
return string.interp(frame:callParserFunction('#widget', 'Zebra Tooltips') ..[=[
[=[
 
{| class="roundy text-center white-rows roundy-footer" style="${bg}; border-spacing: 0; padding: 0.3ex;"
return string.interp([=[${str}Livello
|-
${g}]=], {str = headers(tipo, gen, 'level', frame), g = cells.level(gen)})
end
 
return string.interp([=[${str}Ottenuto in
|-
]=], {str = headers(tipo, gen, 'event', frame)})
end
 
return string.interp([=[${str}Macchina
|-
${g}]=], {str = headers(tipo, gen, 'tm', frame), g = cells.tm(gen, tms)})
end
 
local p = w.trimAndMap(mw.clone(frame.args), string.lower)
local tipo, gen = p[1] or 'pcwiki', tonumber(p[2]) < 2 and 2 or tonumber(p[2])
return string.interp(frame:callParserFunction('#widget', 'Magnific-Popup') ..[=[
[=[
${str}Padre
|-
${g}]=], {str = headers(tipo, gen, 'breed', frame), g = cells.breed(gen)})
end
 
return string.interp([=[${str}Gioco
|-
]=], {str = headers(tipo, cs, 'tutor', frame)})
end
 
{
str = headers('xd', game == 'colo' and gendata.latest or gendata.latest - 1,
'level', frame),
bg = c.xd.light,
colo = game == 'colo' and colo or ''