Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
Reverted to previous setup
Ganaram inukshuk (talk | contribs)
Infobox mos now self-categorizes by note counts greater than 3
Line 54: Line 54:
-- category of the main article
-- category of the main article
categories = categories .. '[[Category:' .. tuning .. '| ]]'
categories = categories .. '[[Category:' .. tuning .. '| ]]'
-- Add to approprite category of scales by note count, except if it's 3 or less
local note_count = mos.nL+mos.ns
if note_count > 3 then
categories = categories .. string.format('[[Category:%d-tone scales]]', note_count)
end
local equave = mos.equave
local equave = mos.equave