Differenze tra le versioni di "Modulo:Abillist"

Automatic text color using ChooseColor *** sovrascritto il testo esistente ***
(Updating PokémonInfo-BoxAbil and the way gen spans are displayed by modules *** sovrascritto il testo esistente ***)
(Automatic text color using ChooseColor *** sovrascritto il testo esistente ***)
local abils = require('Modulo:PokéAbil/data')
local gens = mw.loadData('Modulo:Gens/data')
local cc = require('Modulo:ChooseColor')
 
--[[
k.headers.makeHeader = function(color)
return string.interp([=[{| class="sortable roundy text-center pull-center white-rows" style="border-spacing: 0; padding: 0.3ex; ${bg};"
|- class="hidden-sm black-${text}"
! style="padding-top: 0.5ex; padding-bottom: 0.5ex;" | [[Elenco Pokémon secondo il Pokédex Nazionale|#]]
! Pokémon
! Abilità speciale]=],
{
bg = css.horizGradLua{type = color},
text = cc.forModGradBg{args={color}}
})
end
k.headers.separator = '|- class="roundy flex-sm flex-row flex-wrap flex-main-stretch flex-items-center" style="margin-top: 0.5rem;"'
 
k.headers.footer = [[|-function(color)
return string.interp([=[|-
! class="text-left font-small ${text}" colspan="6" style="padding: 0.3ex 0.3em;" |
* Le abilità in ''corsivo'' sono ottenibili solo in determinate circostanze.
|}]=],
{
text = cc.forModGradBg{args={color}}
})
end
 
-- =============================== AbilEntry ===============================
header = k.headers.makeHeader(type),
separator = k.headers.separator,
footer = k.headers.footer(type),
})
end
270 497

contributi