Module:Infobox chord: Difference between revisions

Bcmills (talk | contribs)
No edit summary
Bcmills (talk | contribs)
remove automatic size category: many chords are a specific type of triad or tetrad that would already be a subcategory
Line 86: Line 86:
end
end
end
end
end
local size_cats =
{
[3] = "Triads",
[4] = "Tetrads",
[5] = "Pentads",
[6] = "Hexads",
}
local size_cat = size_cats[table.getn(harmonics)]
if size_cat == nil then
cats = cats .. "[[Category:Just intonation chords]]"
else
cats = cats .. "[[Category:" .. size_cat .. "]]"
end
end


Line 110: Line 96:
else
else
table.insert(infobox_data, {"[[Prime limit]]", prime_limit})
table.insert(infobox_data, {"[[Prime limit]]", prime_limit})
cats = cats .. "[[Category:Just intonation chords]]"
end
end