「モジュール:MOS intro」の版間の差分
編集の要約なし |
編集の要約なし |
||
| 51行目: | 51行目: | ||
-- Get all the mos's names, starting with tamnams names if applicable | -- Get all the mos's names, starting with tamnams names if applicable | ||
local tamnams_names_list = p.mos_intro_list_names(tamnams_name, " | local tamnams_names_list = p.mos_intro_list_names(tamnams_name, "and") | ||
local other_names_list = p.mos_intro_list_names(other_names, " | local other_names_list = p.mos_intro_list_names(other_names, "or") | ||
-- Construct the sentence | -- Construct the sentence | ||
local sentence = string.format("'''%s'''", scale_sig) | local sentence = string.format("'''%s'''は、", scale_sig) | ||
-- Add names | -- Add names | ||
if tamnams_names_list ~= "" and other_names_list ~= "" then | if tamnams_names_list ~= "" and other_names_list ~= "" then | ||
-- There are both tamnams names and alternate names | -- There are both tamnams names and alternate names | ||
sentence = sentence .. string.format(" | sentence = sentence .. string.format("{{En仮リンク|TAMNAMS}}においては%sと呼ばれ、他に%sといった呼称が存在する。この音階は", tamnams_names_list, other_names_list) | ||
elseif tamnams_names_list ~= "" and other_names_list == "" then | elseif tamnams_names_list ~= "" and other_names_list == "" then | ||
-- There are only tamnams names | -- There are only tamnams names | ||
sentence = sentence .. string.format(" | sentence = sentence .. string.format("{{En仮リンク|TAMNAMS}}において%sと呼ばれる。この音階は", tamnams_names_list) | ||
elseif tamnams_names_list == "" and other_names_list ~= "" then | elseif tamnams_names_list == "" and other_names_list ~= "" then | ||
-- There are no tamnams names but there are alternate names | -- There are no tamnams names but there are alternate names | ||
sentence = sentence .. string.format(" | sentence = sentence .. string.format("%sと呼ばれる。この音階は", other_names_list) | ||
end | end | ||