「モジュール:Infobox chord」の版間の差分
細編集の要約なし |
編集の要約なし |
||
| (同じ利用者による、間の2版が非表示) | |||
| 193行目: | 193行目: | ||
end | end | ||
table.insert(infobox_data, {" | table.insert(infobox_data, {"倍音", table.concat(harmonics, ":")}) | ||
if (not utils.value_provided(frame.args["Root"])) and (utonal_odd_limit <= otonal_odd_limit or utonal_odd_limit < 1000) then | if (not utils.value_provided(frame.args["Root"])) and (utonal_odd_limit <= otonal_odd_limit or utonal_odd_limit < 1000) then | ||
table.insert(infobox_data, {" | table.insert(infobox_data, {"下方倍音", "1/(" .. table.concat(subharmonics, ":") .. ")"}) | ||
end | end | ||
table.insert(infobox_data, {" | table.insert(infobox_data, {"根音からの音程", table.concat(root_interval_links, | ||
"<span style=\"padding-left: 0.1em; padding-right: 0.1em;\">–</span>")}) | "<span style=\"padding-left: 0.1em; padding-right: 0.1em;\">–</span>")}) | ||
table.insert(infobox_data, {" | table.insert(infobox_data, {"根音からのセント", table.concat(root_cents_steps, | ||
"<span style=\"padding-left: 0.1em; padding-right: 0.1em;\">–</span>")}) | "<span style=\"padding-left: 0.1em; padding-right: 0.1em;\">–</span>")}) | ||
table.insert(infobox_data, {" | table.insert(infobox_data, {"ステップ音程", table.concat(step_interval_links, ", ")}) | ||
table.insert(infobox_data, {" | table.insert(infobox_data, {"ステップセント", table.concat(step_cents, ", ")}) | ||
-- TODO: category goes here. | -- TODO: category goes here. | ||
if table.getn(color_names) > 0 then | if table.getn(color_names) > 0 then | ||
local label = " | local label = "カラーネーム" | ||
if table.getn(color_names) > 1 then | if table.getn(color_names) > 1 then | ||
label = " | label = "カラーネーム" | ||
end | end | ||
table.insert(infobox_data, {"[[Color notation|" .. label .. "]]", table.concat(color_names, "<br />")}) | table.insert(infobox_data, {"[[Color notation|" .. label .. "]]", table.concat(color_names, "<br />")}) | ||
| 215行目: | 215行目: | ||
if prime_limit < 96 then | if prime_limit < 96 then | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[素数リミット]]", "[[" .. prime_limit .. "-limit|" .. prime_limit .. "]]"}) | ||
cats = cats .. "[[Category:" .. prime_limit .. "-limit chords" .. sort_tag .. "]]" | cats = cats .. "[[Category:" .. prime_limit .. "-limit chords" .. sort_tag .. "]]" | ||
else | else | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[素数リミット]]", prime_limit}) | ||
cats = cats .. "[[Category:Just intonation chords" .. sort_tag .. "]]" | cats = cats .. "[[Category:Just intonation chords" .. sort_tag .. "]]" | ||
end | end | ||
| 228行目: | 228行目: | ||
genus_data = genus_data .. " (" .. genus_product .. ")" | genus_data = genus_data .. " (" .. genus_product .. ")" | ||
end | end | ||
table.insert(infobox_data, {"[[Euler-Fokker genus | table.insert(infobox_data, {"[[Euler-Fokker genus]]", genus_data}) | ||
if odd_limit < 32 then | if odd_limit < 32 then | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[音程奇数リミット]]", "[[" .. odd_limit .. "-odd-limit|" .. odd_limit .. "]]"}) | ||
cats = cats .. "[[Category:" .. odd_limit .. "-odd-limit chords" .. sort_tag .. "]]" | cats = cats .. "[[Category:" .. odd_limit .. "-odd-limit chords" .. sort_tag .. "]]" | ||
else | else | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[音程奇数リミット]]", odd_limit}) | ||
end | end | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[上方奇数リミット]]", otonal_odd_limit}) | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[下方奇数リミット]]", utonal_odd_limit}) | ||
if consistent_edos ~= "" then | if consistent_edos ~= "" then | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[一貫性|一貫する平均律]] (''d'' ≥ " .. distance .. ")", "<span style=\"font-size: 75%;\">" .. consistent_edos .. "</span>"}) | ||
table.insert(infobox_data, {"<div style=\"font-size: 75%; text-align: right; white-space: nowrap;\">[[Module:Chord consistency/doc|* 2 ≤ ''d'' < 4; ** 4 ≤ ''d'' < 8; *** 8 ≤ ''d'' < 16; …]]</div>"}) | table.insert(infobox_data, {"<div style=\"font-size: 75%; text-align: right; white-space: nowrap;\">[[Module:Chord consistency/doc|* 2 ≤ ''d'' < 4; ** 4 ≤ ''d'' < 8; *** 8 ≤ ''d'' < 16; …]]</div>"}) | ||
else | else | ||
table.insert(infobox_data, {"[[ | table.insert(infobox_data, {"[[一貫性|一貫する平均律]] (''d'' ≥ " .. distance .. ")", "<small>not exist in the range up to 72</small>"}) | ||
end | end | ||
end | end | ||
| 254行目: | 254行目: | ||
end | end | ||
local result = infobox.build("<u> | local result = infobox.build("<u>和音情報</u>", infobox_data) | ||
if not debug_mode then | if not debug_mode then | ||