Template:Fraction: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
-->| {{{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="font-size: 80%; line-height: 0; vertical-align: super;">{{{2}}}</span>⁄<span style="font-size: 80%; line-height: 0; vertical-align: sub;">{{{3}}}</span><!-- Then 1 2/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="font-size: 80%; line-height: 0; vertical-align: super;">{{{2}}}</span>⁄<span style="font-size: 80%; line-height: 0; vertical-align: sub;">{{{3}}}</span><!-- Then 1 2/3 | ||
-->| {{#if: {{{2|}}}<!-- ElseIf 2 | -->| {{#if: {{{2|}}}<!-- ElseIf 2 | ||
-->| <span style="font-size: 80%; line-height: 0; vertical-align: super;">{{{1}}}</span>& | -->| <span style="font-size: 80%; line-height: 0; vertical-align: super;">{{{1}}}</span>⁄<span style="font-size: 80%; line-height: 0; vertical-align: sub;">{{{2}}}</span><!-- Then 1/2 | ||
-->| {{#if: {{{1|}}}<!-- ElseIf 1 | -->| {{#if: {{{1|}}}<!-- ElseIf 1 | ||
-->| <span style="font-size: 80%; line-height: 0; vertical-align: super;">1</span>& | -->| <span style="font-size: 80%; line-height: 0; vertical-align: super;">1</span>⁄<span style="font-size: 80%; line-height: 0; vertical-align: sub;">{{{1}}}</span><!-- Then 1/1 | ||
-->| ⁄<!-- Else 0, a slash | -->| ⁄<!-- Else 0, a slash | ||
-->}}<!-- EndIf 1 | -->}}<!-- EndIf 1 | ||
Line 14: | Line 14: | ||
This template is the same as Wikipedia's fraction template, except all of the CSS is done inline instead of in a separate sheet. | This template is the same as Wikipedia's fraction template, except all of the CSS is done inline instead of in a separate sheet. | ||
{{Shortcut|frac}} | |||
{{ | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Revision as of 02:01, 24 September 2024
This template is the same as Wikipedia's fraction template, except all of the CSS is done inline instead of in a separate sheet.
Note: You can use {{frac}}
as a shortcut.
![]() |
This template should not be substituted. |
![]() |
This template uses TemplateStyles: |
Note: You can use {{frac}}
as a shortcut.
See also
- Template:Sfrac – for typesetting vertical fractions.