Differenze tra le versioni di "Modulo:Colore"

Nessun cambiamento nella dimensione ,  00:09, 2 apr 2017
Si ritorna al blu wiki, più aggiornamento colori statistiche (consistenza con Sole e Luna) e cambio colori regioni con variante arcobalenosa perché sì.
(Si ritorna al blu wiki, più aggiornamento colori statistiche (consistenza con Sole e Luna) e cambio colori regioni con variante arcobalenosa perché sì.)
-- Colori regioni
 
c.kanto = function(frame) return _colore(frame.args[1] or 'normale', '6A12ABFF3600', '9E65C8FFA48C', '360A586A0000') end
c.Kanto = c.kanto
c.johto = function(frame) return _colore(frame.args[1] or 'normale', '00647fFF7D00', '1CB0D9FFC791', '023D4E9D4E00') end
c.Johto = c.johto
c.hoenn = function(frame) return _colore(frame.args[1] or 'normale', '1AB81AFFC300', '65CF65FFF99A', '117B11BA8300') end
c.Hoenn = c.hoenn
c.sinnoh = function(frame) return _colore(frame.args[1] or 'normale', '47443A00DB05', '9F998296FF96', '272520008303') end
c.Sinnoh = c.sinnoh
c.unima = function(frame) return _colore(frame.args[1] or 'normale', 'CB410B00A2FF', 'DA7953A3DDFF', '8E2D070057CD') end
c.Unima, c.unova, c.Unova = c.unima, c.unima, c.unima
c.settipelago = function(frame) return _colore(frame.args[1] or 'normale', '52CC91', '8DEBBC', '2B915E') end
c.auros = function(frame) return _colore(frame.args[1] or 'normale', '817548', 'ADA588', '544C2F') end
c.Auros, c.orre, c.Orre = c.auros, c.auros, c.auros
c.kalos = function(frame) return _colore(frame.args[1] or 'normale', 'CB0B4FAE45FF', 'CF517ED49CFF', '8707355A009F') end
c.Kalos = c.kalos
c.kaloscentrale = function(frame) return _colore(frame.args[1] or 'normale', 'D1D1D1', 'EAEAEA', 'BBBBBB') end
c.cristalline = function(frame) return _colore(frame.args[1] or 'normale', 'FFB200', 'FFD36B', 'AE7E00') end
c.Cristalline, c.decolora, c.Decolora = c.cristalline, c.cristalline, c.cristalline
c.alola = function(frame) return _colore(frame.args[1] or 'normale', 'FFD900FCCAFC', 'FFE86AEE82EE', 'EC9000AC4BAB') end
c.Alola = c.alola
c.melemele = c.giallo
c.agilita = function(frame) return _colore(frame.args[1] or 'normale', '38BD62', '83EEA4', '188339') end
c.Agilita, c['Agilità'], c['agilità'] = c.agilita, c.agilita, c.agilita
c.attacco = function(frame) return _colore(frame.args[1] or 'normale', 'F08030EACA2F', 'F5AC78FFFBE6', '9C531FB88C00') end
c.Attacco = c.attacco
c.attacco_speciale = function(frame) return _colore(frame.args[1] or 'normale', '6890F026BAE0', '9DB7F5B2E3EF', '445E9C15687D') end
c.Attacco_speciale, c.Attacco_Speciale, c.Attaccospeciale, c.spatk = c.attacco_speciale, c.attacco_speciale, c.attacco_speciale, c.attacco_speciale
c.difesa = function(frame) return _colore(frame.args[1] or 'normale', 'F8D030E5721D', 'FAE078FFC499', 'A1871F8E3600') end
c.Difesa = c.difesa
c.difesa_speciale = function(frame) return _colore(frame.args[1] or 'normale', '78C8504C6CD4', 'A7DB8D9EB5FF', '4E82340A163D') end
c.Difesa_speciale, c.Difesa_Speciale, c.Difesaspeciale, c.spdef = c.difesa_speciale, c.difesa_speciale, c.difesa_speciale, c.difesa_speciale
c.forza = function(frame) return _colore(frame.args[1] or 'normale', 'FF4131', 'FF9494', 'BD2018') end
c.Forza = c.forza
c.PS = function(frame) return _colore(frame.args[1] or 'normale', 'FF000058E810', 'FF5959E1FFD3', 'A600002E7A08') end
c.Ps, c.ps = c.PS, c.PS
c.resistenza = function(frame) return _colore(frame.args[1] or 'normale', 'EECD31', 'FFE683', 'C58308') end
c.Resistenza = c.resistenza
c.velocita = function(frame) return _colore(frame.args[1] or 'normale', 'F85888D425CE', 'FA92B2EF8DEC', 'A13959380036') end
c.Velocita, c['Velocità'], c['velocità'] = c.velocita, c.velocita, c.velocita
c.thlon = function(frame) return _colore(frame.args[1] or 'normale', '90a8e0', 'B7C6EB', '5E6D92') end
local colors = {['medium light'] = 'CEE0F4',
['medium dark'] = '779FD3'}
return colors[var] or _colore(var, 'FF7D009FC1E7', 'FFC791E4ECF5','9D4E00437DBF')
end