Module:Infobox MOS: Difference between revisions
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
-- category of the main article | -- category of the main article | ||
categories = categories .. '[[Category:' .. tuning .. '| ]]' | categories = categories .. '[[Category:' .. tuning .. '| ]]' | ||
local equave_str = '' | |||
if mos.equave ~= 2 then | |||
equave_str = '(' .. MOS.common_name[mos.equave] .. '-equivalent)' | |||
end | |||
local prev_L, prev_s = '', '' | |||
if mos.nL > 1 then | |||
prev_L = '[[' .. (mos.nL - 1) .. 'L' .. mos.ns .. 's' .. equave_str .. '|← ' .. (mos.nL - 1) .. 'L' .. mos.ns .. 's <' .. mos.equave .. '>]]' | |||
end | |||
local next_L = '[[' .. (mos.nL + 1) .. 'L' .. mos.ns .. 's' .. equave_str .. '|' .. (mos.nL + 1) .. 'L' .. mos.ns .. 's <' .. mos.equave .. '> →]]' | |||
if mos.ns > 1 then | |||
prev_s = '[[' .. mos.nL .. 'L' .. (mos.ns - 1) .. 's' .. equave_str .. '|↑\n' .. mos.nL .. 'L' .. (mos.ns - 1) .. 's <' .. mos.equave .. '>]]' | |||
end | |||
local next_s = '[[' .. mos.nL .. 'L' .. (mos.ns + 1) .. 's' .. equave_str .. '|' .. mos.nL .. 'L' .. (mos.ns + 1) .. 's <' .. mos.equave .. '>\n↓]]' | |||
local infobox_data = {} | |||
result = infobox.build( | result = infobox.build( | ||
| Line 27: | Line 43: | ||
next_s | next_s | ||
) | ) | ||
table.insert(infobox_data, { | |||
'Brightest mode', | |||
'LLLsLLs' | |||
}) | |||
if not debug_mode then | if not debug_mode then | ||
result = result .. categories | result = result .. categories | ||
| Line 32: | Line 54: | ||
return result | return result | ||
end | end | ||
return p | return p | ||