Template:Pars: Difference between revisions

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


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

Latest revision as of 20:43, 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)