「モジュール:Infobox interval」の版間の差分

Furcht968 (トーク | 投稿記録)
編集の要約なし
Furcht968 (トーク | 投稿記録)
編集の要約なし
157行目: 157行目:
else
else
table.insert(infobox_data, {
table.insert(infobox_data, {
"Factorization",
"素因数分解",
rat.factorisation(ratio),
rat.factorisation(ratio),
})
})
table.insert(infobox_data, {
table.insert(infobox_data, {
"[[Monzo]]",
"[[モンゾ]]",
ket,
ket,
})
})
167行目: 167行目:
elseif rational then
elseif rational then
table.insert(infobox_data, {
table.insert(infobox_data, {
"Factorization",
"素因数分解",
rat.factorisation(ratio),
rat.factorisation(ratio),
})
})
173行目: 173行目:
-- irrational ket is provided:
-- irrational ket is provided:
table.insert(infobox_data, {
table.insert(infobox_data, {
"[[Monzo]]",
"[[モンゾ]]",
frame:expandTemplate({
frame:expandTemplate({
title = "Monzo",
title = "Monzo",
182行目: 182行目:
if regular then
if regular then
table.insert(infobox_data, {
table.insert(infobox_data, {
"Size in [[cent]]s",
"[[セント]]",
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 = "Name"
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, {
"[[Kite's color notation|Color name]]",
"{{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|FJS name]]",
"[[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, {
"Special properties",
"性質",
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, {
"[[Tenney norm]] (log<sub>2</sub> ''nd'')",
"[[テニーノルム]] (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, {
"[[Weil norm]] (log<sub>2</sub> max(''n'', ''d''))",
"[[ワイルノルム]] (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, {
"[[Wilson norm]] (sopfr(''nd''))",
"[[ウィルソンノルム]] (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>Interval&nbsp;information</u>", infobox_data)
local result = infobox.build("<u>音程&nbsp;情報</u>", infobox_data)
if not debug_mode then
if not debug_mode then