Template:Sfrac: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="white-space: nowrap;">{{#if:{{{3|}}}|{{{1}}}<span style="border: 0; clip: rect(0, 0, 0, 0); clip-path: polygon(0px 0px, 0px 0px, 0px 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;">+</span>}}<!-- | <includeonly><span style="white-space: nowrap;">{{#if: {{{3|}}}|{{{1}}}<span style="border: 0; clip: rect(0, 0, 0, 0); clip-path: polygon(0px 0px, 0px 0px, 0px 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;">+</span>}}<!-- | ||
--><span style="display: inline-block; vertical-align: -0.5em; font-size: 85%; text-align: center;"><!-- | --><span style="display: inline-block; vertical-align: -0.5em; font-size: 85%; text-align: center;"><!-- | ||
--><span style="display: block; line-height: 1em; margin: 0.0em 0.1em; border-bottom: 1px solid;">{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}</span><!-- | --><span style="display: block; line-height: 1em; margin: 0.0em 0.1em; border-bottom: 1px solid;">{{#if: {{{3|}}}|{{{2}}}|{{#if: {{{2|}}}|{{{1}}}|1}}}}</span><!-- | ||
--><span style="border: 0; clip: rect(0, 0, 0, 0); clip-path: polygon(0px 0px, 0px 0px, 0px 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;>/</span><!-- | --><span style="border: 0; clip: rect(0, 0, 0, 0); clip-path: polygon(0px 0px, 0px 0px, 0px 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;>/</span><!-- | ||
--><span style="display: block; line-height: 1em; margin: 0.1em 0.1em;">{{{3|{{{2|{{{1|1}}}}}}}}}</span><!-- | --><span style="display: block; line-height: 1em; margin: 0.1em 0.1em;">{{{3|{{{2|{{{1|1}}}}}}}}}</span><!-- |
Revision as of 14:43, 13 August 2024
This template is copied over from Wikipedia's template for vertical fractions, except that the styles are all inline instead of being located in a separate stylesheet. The vertical form is the standard form for writing fractions used in mathematical, engineering, and scientific texts.