Module:Infobox interval: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 117: | Line 117: | ||
if value_provided(ratio_string) then | if value_provided(ratio_string) then | ||
table.insert(infobox_data, { | if rational then | ||
table.insert(infobox_data, { | |||
ratio_string | 'Ratio', | ||
ratio_string | |||
}) | |||
else | |||
table.insert(infobox_data, { | |||
'Expression', | |||
frame:preprocess('<math>' .. ratio_string .. '</math>') | |||
}) | |||
end | |||
end | end | ||
if regular and rational then | if regular and rational then | ||