Module:Infobox chord: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 36: | Line 36: | ||
end | end | ||
local | local color_name = frame.args["ColorName"] | ||
if utils.value_provided( | if utils.value_provided(color_name) then | ||
local caption = "[[Color notation|Color name]]" | local caption = "[[Color notation|Color name]]" | ||
-- search for ", " not "," because many chord names contain commas, e.g. Cz,y6 | -- search for ", " not "," because many chord names contain commas, e.g. Cz,y6 | ||
| Line 53: | Line 53: | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
caption, | caption, | ||
color_name, | |||
}) | }) | ||
else | else | ||