Module:Infobox interval: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 313: | Line 313: | ||
end | end | ||
if regular and rational | if regular and rational then | ||
local query = '' | |||
if small then | |||
query = ratio_string | |||
else | |||
query = '|' .. rat.as_ket(ratio, nil, false, true) .. '>' | |||
end | |||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
'<small>[https://www.yacavone.net/xen-calc/?q=' .. | '<small>[https://www.yacavone.net/xen-calc/?q=' .. query .. ' open this interval in \'\'xen-calc\'\']</small>' | ||
}) | }) | ||
end | end | ||