「モジュール:Infobox interval」の版間の差分
編集の要約なし |
編集の要約なし |
||
| 209行目: | 209行目: | ||
cats = cats .. "[[Category:Todo:add interval name]]" | cats = cats .. "[[Category:Todo:add interval name]]" | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "名前", | ||
"<abbr title=\"missing value for parameter 'Name'\">''missing''</abbr><sup>[[Template:Infobox Interval| ? ]]</sup>", | "<abbr title=\"missing value for parameter 'Name'\">''missing''</abbr><sup>[[Template:Infobox Interval| ? ]]</sup>", | ||
}) | }) | ||
| 282行目: | 282行目: | ||
if harmonic_entropy_switch then | if harmonic_entropy_switch then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[ハーモニックエントロピー]]<br>(Shannon, <math>\\sqrt{nd}</math>)", | ||
"~" .. utils._round(he.harmonic_entropy(cents), 6) .. " bits", | "~" .. utils._round(he.harmonic_entropy(cents), 6) .. " bits", | ||
}) | }) | ||
| 317行目: | 317行目: | ||
local S_expressions = rat.find_S_expression(ratio) | local S_expressions = rat.find_S_expression(ratio) | ||
if #S_expressions > 0 then | if #S_expressions > 0 then | ||
local caption = "[[ | local caption = "[[S式]]" | ||
if #S_expressions > 1 then | if #S_expressions > 1 then | ||
caption = caption .. "s" | caption = caption .. "s" | ||
| 369行目: | 369行目: | ||
query = mw.uri.encode(query) | query = mw.uri.encode(query) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"<span style=\"font-size: 75%;\">[https://www.yacavone.net/xen-calc/?q=" .. query .. " | "<span style=\"font-size: 75%;\">[https://www.yacavone.net/xen-calc/?q=" .. query .. "''xen-calc''で聴く]</span>", | ||
}) | }) | ||
end | end | ||