Template:Abs/doc: Difference between revisions
ArrowHead294 (talk | contribs) Created page with "{{dochead}}{{wikipedia}} This template is designed to typeset the absolute value of a variable. === Usage === Typing <pre>{{abs|''x''}}</pre> gives {{abs|''x''}}" |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 2: | Line 2: | ||
This template is designed to typeset the absolute value of a variable. | This template is designed to typeset the absolute value of a variable. | ||
=== | === Parameters === | ||
; <code>{{{<nowiki />1}}}</code> | |||
: The expression to be enclosed. | |||
< | ; <code>{{{<nowiki />2}}}</code> | ||
: The scale factor, used to stretch or compress the absolute value bars. | |||
=== Usage === | |||
{| class="wikitable" | |||
{{abs|''x''}} | |- | ||
! You type !! You get | |||
|- | |||
| {{plaincode|<nowiki>{{abs|''x''}}</nowiki>}} || {{abs|''x''}} | |||
|- | |||
| {{plaincode|<nowiki>{{abs|{{sfrac|''x''|''y''}}|1.8}}</nowiki>}} || {{abs|{{sfrac|''x''|''y''}}|1.8}} | |||
|} | |||