Template:Pars/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:


; <code>{{{<nowiki />2}}}</code>
; <code>{{{<nowiki />2}}}</code>
: The scale factor, used to stretch or compress the parentheses.
: The scale factor, used to stretch or compress the parentheses vertically. Defaults to 1.8.


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

Latest revision as of 20:42, 24 May 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 vertically. Defaults to 1.8.

Usage

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