Module:Infobox interval: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
S-expressions added
Line 149: Line 149:
comma
comma
})
})
end
if comma and rational then
local S_expressions = rat.find_S_expression(ratio)
if #S_expressions > 0 then
local caption = 'S-expression'
if #S_expressions > 1 then
caption = caption .. 's'
end
table.insert(infobox_data, {
'[[Square superparticular|' .. caption .. ']]',
table.concat(S_expressions, ',<br/>')
})
end
end
end
if comma and rational then
if comma and rational then