「モジュール:MOS modes」の版間の差分
ページの作成:「local p = {} local mos = require("Module:MOS") local rat = require("Module:Rational") local tamnams = require("Module:TAMNAMS") local tip = require("Module:Template input parse") local utils = require("Module:Utils") local yesno = require("Module:Yesno") -- TODO: -- - Add ability to autocollapse on large mos pages (say, more than 12 modes) -- "Main" function -- To be called by wrapper function p._mos_modes(input_mos, mode_names, headers, entries, is_collapsed) l…」 |
編集の要約なし |
||
| (同じ利用者による、間の1版が非表示) | |||
| 43行目: | 43行目: | ||
-- Start of table | -- Start of table | ||
local result = "{| class=\"wikitable sortable center-2 center-3 mw-collapsible" .. (is_collapsed and " mw-collapsed\"\n" or "\"\n") | local result = "{| class=\"wikitable sortable center-2 center-3 mw-collapsible" .. (is_collapsed and " mw-collapsed\"\n" or "\"\n") | ||
.. "|+ style=\"font-size: 105%; white-space: nowrap;\" | " .. string.format(" | .. "|+ style=\"font-size: 105%; white-space: nowrap;\" | " .. string.format("%sの旋法\n", scale_sig) | ||
.. "|-\n" | .. "|-\n" | ||
| 49行目: | 49行目: | ||
result = result | result = result | ||
.. "! [[UDP]]" | .. "! [[UDP]]" | ||
.. " !! | .. " !! 循環順序" | ||
.. " !! | .. " !! パターン" | ||
-- Add header for mode names, if provided. | -- Add header for mode names, if provided. | ||
if add_mode_names then | if add_mode_names then | ||
result = result .. " !! class=\"unsortable\" | | result = result .. " !! class=\"unsortable\" | 旋法名" | ||
end | end | ||
| 105行目: | 105行目: | ||
if scale_sig == "5L 2s" then | if scale_sig == "5L 2s" then | ||
mode_names = { | mode_names = { | ||
" | "リディアン", | ||
" | "イオニアン (メジャー/長調)", | ||
" | "ミクソリディアン", | ||
" | "ドリアン", | ||
" | "エオリアン (マイナー/短調)", | ||
" | "フリジアン", | ||
" | "ロクリアン" | ||
} | } | ||
end | end | ||