Module:Color: Difference between revisions
Jump to navigation
Jump to search
Removing support for arbitrary web colors - Template:Web Color can be used for that now. It's a completely different use case that should be handled by a separate template. This one should be for named in-game colors only.
PhantomCaleb (talk | contribs) (more documentation) |
PhantomCaleb (talk | contribs) (Removing support for arbitrary web colors - Template:Web Color can be used for that now. It's a completely different use case that should be handled by a separate template. This one should be for named in-game colors only.) |
||
Line 37: | Line 37: | ||
local colorData = data.colors[colorId] | local colorData = data.colors[colorId] | ||
if colorData == nil then | |||
if | |||
utilsError.warn(string.format("<code>%s</code> is not a valid color name. See [[Template:Color]] for a list of supported colors.", colorId)) | utilsError.warn(string.format("<code>%s</code> is not a valid color name. See [[Template:Color]] for a list of supported colors.", colorId)) | ||
return text, "[[Category:Articles Using Invalid Color Names]]" | return text, "[[Category:Articles Using Invalid Color Names]]" |