Module:Infobox chord: Difference between revisions
add automatic category for chord size |
No edit summary |
||
Line 97: | Line 97: | ||
} | } | ||
local size_cat = size_cats[table.getn(harmonics)] | local size_cat = size_cats[table.getn(harmonics)] | ||
if size_cat | if size_cat == nil then | ||
cats = cats .. "[[Category:Just intonation chords]]" | |||
else | |||
cats = cats .. "[[Category:" .. size_cat .. "]]" | cats = cats .. "[[Category:" .. size_cat .. "]]" | ||
end | end |