Template:Pars: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{2|}}}|<span style="display: inline-block; margin: {{#expr: 4 * ({{{2}}} - 1)}}px 0px {{#expr: 4 * ({{{2}}} - 1)}}px 0px; transform: scale(1, {{{2}}});">(</span> | <includeonly>{{#if: {{{2|}}}|<span style="display: inline-block; margin: {{#expr: 4 * ({{{2}}} - 1)}}px 0px {{#expr: 4 * ({{{2}}} - 1)}}px 0px; transform: scale(1, {{{2}}});">(</span>{{{1}}}<span style="display: inline-block; margin: {{#expr: 4 * ({{{2}}} - 1)}}px 0px {{#expr: 4 * ({{{2}}} - 1)}}px 0px; transform: scale(1, {{{2}}});">)</span>|}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Revision as of 14:39, 18 April 2025
This template is designed to typeset parentheses, but with the ability to scale them to accommodate expressions with fractions.
Parameters
{{{1}}}
- The expression to be enclosed.
{{{2}}}
- The scale factor, used to stretch or compress the parentheses vertically. Defaults to 1.8.
Usage
You type | You get |
---|---|
{{pars|{{sfrac|''x''|''y''}}}} |