Template:Pars: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) Template for scaled parentheses |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{2|}}}|<span style="display: inline-block; margin- | <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>|(}}{{#if: {{{1|}}}|<span style="padding-left: 0.1em; padding-right: 0.1em; white-space: nowrap;">{{{1}}}</span>|}}{{#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><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Revision as of 18:52, 17 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''}}}} |
(x/y) |