Aller au contenu

« Module:Lulb » : différence entre les versions

De Wikiquestia
Page créée avec « local p = {} function p.getColor(frame) local color = frame.args[1] or "#a2a9b1" return color end return p »
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
local p = {}
function p.heriteCouleur(frame)
 
local parent = frame:getParent()
function p.getColor(frame)
local color = parent.args["Couleur"] or "#a2a9b1"
local color = frame.args[1] or "#a2a9b1"
return color
return color
end
end
return p

Version du 23 mai 2025 à 19:34

La documentation pour ce module peut être créée à Module:Lulb/doc

function p.heriteCouleur(frame)
	local parent = frame:getParent()
	local color = parent.args["Couleur"] or "#a2a9b1"
	return color
end