Module:Convert: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(config option for testing with sandbox versions; tweak some comments) |
(clean up, typos fixed: , → , (3) using AWB) |
||
Line 903: | Line 903: | ||
-- 1/2 : sign, numerator, denominator |
-- 1/2 : sign, numerator, denominator |
||
-- 1+2/3 : signed_wholenumber, numerator, denominator |
-- 1+2/3 : signed_wholenumber, numerator, denominator |
||
'<span class="frac nowrap">%s<sup>%s</sup> |
'<span class="frac nowrap">%s<sup>%s</sup>⁄<sub>%s</sub></span>', |
||
'<span class="frac nowrap">%s<sup> %s</sup> |
'<span class="frac nowrap">%s<sup> %s</sup>⁄<sub>%s</sub></span>', |
||
}, |
}, |
||
{ -- Like {{sfrac}} (fraction horizontal bar). |
{ -- Like {{sfrac}} (fraction horizontal bar). |
||
Line 915: | Line 915: | ||
-- 1///2 : sign, numerator, denominator |
-- 1///2 : sign, numerator, denominator |
||
-- 1+2///3: signed_wholenumber, sign, numerator, denominator |
-- 1+2///3: signed_wholenumber, sign, numerator, denominator |
||
'<span style="white-space:nowrap">%s<sup>%s</sup> |
'<span style="white-space:nowrap">%s<sup>%s</sup>⁄<sub>%s</sub></span>', |
||
'<span class="frac nowrap">%s<s style="display:none">%s</s><sup>%s</sup> |
'<span class="frac nowrap">%s<s style="display:none">%s</s><sup>%s</sup>⁄<sub>%s</sub></span>', |
||
}, |
}, |
||
} |
} |
||
Line 938: | Line 938: | ||
-- 2 + 3 / 8 2.375, '2(3/8)' -1.625, '−2(−3/8)' |
-- 2 + 3 / 8 2.375, '2(3/8)' -1.625, '−2(−3/8)' |
||
-- 2 - 3 / 8 1.625, '2(−3/8)' -2.375, '−2(3/8)' |
-- 2 - 3 / 8 1.625, '2(−3/8)' -2.375, '−2(3/8)' |
||
-- 1 + 20/8 3.5 |
-- 1 + 20/8 3.5, '1/(20/8)' 1.5, '−1/(−20/8)' |
||
-- 1 - 20/8 -1.5., '1(−20/8)' -3.5 |
-- 1 - 20/8 -1.5., '1(−20/8)' -3.5, '−1(20/8)' |
||
-- Wherever an integer appears above, numbers like 1.25 or 12.5e-3 |
-- Wherever an integer appears above, numbers like 1.25 or 12.5e-3 |
||
-- (which may be negative) are also accepted (like old template). |
-- (which may be negative) are also accepted (like old template). |