Template:Pars: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) Template for scaled parentheses |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{ | <includeonly>{{#if: {{{1|}}}|<span style{{=}}"display: inline-block; margin: {{#expr: 4 * ({{{2|1.8}}} - 1)}}px 0px {{#expr: 4 * ({{{2|1.8}}} - 1)}}px 0px; transform: scale(1, {{{2|1.8}}});">(</span>{{{1}}}<span style{{=}}"display: inline-block; margin: {{#expr: 4 * ({{{2|1.8}}} - 1)}}px 0px {{#expr: 4 * ({{{2|1.8}}} - 1)}}px 0px; transform: scale(1, {{{2|1.8}}});">)</span>|}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 20:43, 24 May 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''}}}} |
(x/y) |