Template:Pars/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Documentation page
 
ArrowHead294 (talk | contribs)
mNo edit summary
Line 7: Line 7:


; <code>{{{<nowiki />2}}}</code>
; <code>{{{<nowiki />2}}}</code>
: The scale factor, used to stretch or compress the absolute value bars.
: The scale factor, used to stretch or compress the parentheses.


=== Usage ===
=== Usage ===
Line 14: Line 14:
! You type !! You get
! You type !! You get
|-
|-
| {{plaincode|<nowiki>{{abs|''x''}}</nowiki>}} || {{abs|''x''}}
| {{plaincode|<nowiki>{{pars|''x''}}</nowiki>}} || {{pars|''x''}}
|-
|-
| {{plaincode|<nowiki>{{abs|{{sfrac|''x''|''y''}}|1.8}}</nowiki>}} || {{abs|{{sfrac|''x''|''y''}}|1.8}}
| {{plaincode|<nowiki>{{pars|{{sfrac|''x''|''y''}}|1.8}}</nowiki>}} || {{pars|{{sfrac|''x''|''y''}}|1.8}}
|}
|}

Revision as of 16:04, 17 April 2025

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.

Usage

You type You get
{{pars|''x''}} (x)
{{pars|{{sfrac|''x''|''y''}}|1.8}} (x/y)