Differenze tra le versioni di "Modulo:Abillist"

Making this table responsive
(Added link on Pokémon names)
(Making this table responsive)
return box.boxTipoLua(
string.fu(type),
'-5 inline-block text-center roundywidth-5xl-100',
string.interp('padding: 0 0.5ex; margin-bottom: 0.2ex; height: ${widthheight}%;',
{widthheight = 100 / typesCount})
)
end
local typesCount = this.type1 == this.type2 and 1 or 2
 
return string.interp([=[| class="width-xs-10" | ${static}
| class="hiddenwidth-xs-60" | [[${name}|<span style="color: #000;">${name}</span>]]${form}
| class="hiddenwidth-xs-30" style="padding: 1ex 0.8ex; font-size: 90%;" | ${type1}${type2}
| class="width-xs-33" | <div class="visible-xs text-small">Prima abilit&agrave;</div>${abil1}${abilEv}
| ${abil1}${abilEv}
| class="width-xs-33" | <div class="visible-xs text-small">Seconda abilit&agrave;</div>${abil2}
| ${abil2}
| class="width-xs-33" | <div class="visible-xs text-small">Abilit&agrave; evento</div>${abild}]=],
| ${abild}]=],
{
static = ms.staticLua(string.tf(this.ndex or 0) ..
local makeHeader = function(type)
return string.interp([=[{| class="roundy text-center pull-center white-rows" style="border-spacing: 0; padding: 0.3ex; ${bg};"
|- class="hidden-xs"
|-
! style="padding-top: 0.5ex; padding-bottom: 0.5ex;" | [[Elenco Pokémon secondo il Pokédex Nazionale|<span style="color:#000;">#</span>]]
! class="hidden-xs" | Pok&eacute;mon
makeEntry = Entry.new,
header = makeHeader(type),
footerseparator = [['|- class="textroundy flex-leftxs fontflex-small"row colspan="6flex-wrap flex-main-center flex-items-center" style="background: transparent; paddingmargin-top: 0.3ex 0.3em5rem;" |',
footer = [[|- style="background: transparent;"
| class="text-left font-small" colspan="6" style="background: transparent; padding: 0.3ex 0.3em;" |
* Le abilità in ''corsivo'' sono ottenibili solo in determinate circostanze.
|}]]