Differenze tra le versioni di "Modulo:Colore"

Fixed a bug in alias generation
(Adding some colors and automatic aliases generation)
(Fixed a bug in alias generation)
 
local c = {}
local tab = require('Modulo:Wikilib/tables') -- luacheck: no unused
local txt = require('Modulo:Wikilib/strings') -- luacheck: no unused
 
end
 
--[[
for name, funct in pairs(c) do
table.keys is necessary because a plain pairs would act wierd, in that
we are adding keys to the c in the for loop
--]]
for _, name in ipairs(table.keys(c)) do
local funct = c[name]
 
c[string.fu(name)] = funct
makeSpaceAliases(name, funct)