16 403
contributi
m (Spero di aver finito) |
m |
||
-- Ritorna le prime celle, comuni a tutti gli headers
local headers = function(tipo, gen, kind
return string.interp(
{| 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'
end
return string.interp([=[${str}Ottenuto in
|-
]=], {str = headers(tipo, gen, 'event'
end
return string.interp([=[${str}Macchina
|-
${g}]=], {str = headers(tipo, gen, 'tm'
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(
${str}Padre
|-
${g}]=], {str = headers(tipo, gen, 'breed'
end
return string.interp([=[${str}Gioco
|-
]=], {str = headers(tipo, cs, 'tutor'
end
{
str = headers('xd', game == 'colo' and gendata.latest or gendata.latest - 1,
'level'
bg = c.xd.light,
colo = game == 'colo' and colo or ''
|