「モジュール:Infobox interval」の版間の差分
編集の要約なし |
編集の要約なし |
||
| 157行目: | 157行目: | ||
else | else | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "素因数分解", | ||
rat.factorisation(ratio), | rat.factorisation(ratio), | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[モンゾ]]", | ||
ket, | ket, | ||
}) | }) | ||
| 167行目: | 167行目: | ||
elseif rational then | elseif rational then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "素因数分解", | ||
rat.factorisation(ratio), | rat.factorisation(ratio), | ||
}) | }) | ||
| 173行目: | 173行目: | ||
-- irrational ket is provided: | -- irrational ket is provided: | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[モンゾ]]", | ||
frame:expandTemplate({ | frame:expandTemplate({ | ||
title = "Monzo", | title = "Monzo", | ||
| 182行目: | 182行目: | ||
if regular then | if regular then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "[[セント]]数", | ||
utils._round(cents, 7) .. "¢", | utils._round(cents, 7) .. "¢", | ||
}) | }) | ||
| 189行目: | 189行目: | ||
local name = frame.args["Name"] | local name = frame.args["Name"] | ||
if value_provided(name) then | if value_provided(name) then | ||
local caption = " | local caption = "名前" | ||
if name:match(",") then | if name:match(",") then | ||
caption = "Names" | caption = "Names" | ||
| 218行目: | 218行目: | ||
if value_provided(colour_name) then | if value_provided(colour_name) then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "{{en仮リンク|カラーネーム|color name}}", | ||
colour_name, | colour_name, | ||
}) | }) | ||
| 249行目: | 249行目: | ||
if #FJS_name <= 200 then | if #FJS_name <= 200 then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[Functional Just System| | "[[Functional Just System|FJSネーム]]", | ||
"<math>" .. FJS_name .. "</math>", | "<math>" .. FJS_name .. "</math>", | ||
}) | }) | ||
| 257行目: | 257行目: | ||
if #special_properties > 0 then | if #special_properties > 0 then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "性質", | ||
table.concat(special_properties, ",<br>"), | table.concat(special_properties, ",<br>"), | ||
}) | }) | ||
| 265行目: | 265行目: | ||
if rational and regular then | if rational and regular then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[テニーノルム]] (log<sub>2</sub> ''nd'')", | ||
utils._round(rat.tenney_height(ratio), 6), | utils._round(rat.tenney_height(ratio), 6), | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[ワイルノルム]] (log<sub>2</sub> max(''n'', ''d''))", | ||
utils._round(rat.weil_height(ratio), 6), | utils._round(rat.weil_height(ratio), 6), | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[ウィルソンノルム]] (sopfr(''nd''))", | ||
utils._round(rat.wilson_height(ratio), 6), | utils._round(rat.wilson_height(ratio), 6), | ||
}) | }) | ||
| 374行目: | 374行目: | ||
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 | ||