Template:Pars: Difference between revisions

From Xenharmonic Wiki
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}}});">&#40;</span>{{{1}}}<span style="display: inline-block; margin: {{#expr: 4 * ({{{2}}} - 1)}}px 0px {{#expr: 4 * ({{{2}}} - 1)}}px 0px; transform: scale(1, {{{2}}});">&#41;</span>|}}</includeonly><noinclude>
<includeonly><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}}});">&#40;</span>{{{1|1.8}}}<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}}});">&#41;</span></includeonly><noinclude>
{{documentation}}
{{documentation}}


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 19:07, 24 May 2025

Template documentation[view] [edit] [history] [purge]
English Wikipedia has an article on:

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)