Template:Abs/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
Line 1: Line 1:
{{dochead}}{{wikipedia}}
{{dochead}}{{wikipedia}}
This template is designed to typeset the absolute value of a variable or expression. It is only necessary on fractions or when scaling is necessary; for individual variables you can simply use <code><nowiki>{{!}}x{{!}}</nowiki></code> or <code>{{tlx|pipe}}x{{tlx|pipe}}</code>.
This template is designed to typeset the absolute value of a variable or expression. It is only necessary on fractions or when scaling is necessary; for individual variables you can simply use <code><nowiki>{{!}}x{{!}}</nowiki></code> or <code>{{tl|pipe}}x{{tl|pipe}}</code>.


=== Parameters ===
=== Parameters ===

Revision as of 00:41, 30 May 2025

English Wikipedia has an article on:

This template is designed to typeset the absolute value of a variable or expression. It is only necessary on fractions or when scaling is necessary; for individual variables you can simply use {{!}}x{{!}} or {{pipe}}x{{pipe}}.

Parameters

{{{1}}}
The expression to be enclosed.
{{{2}}}
The scale factor, used to stretch or compress the absolute value bars.

Usage

You type You get
{{abs|''x''}} |x|
{{abs|{{sfrac|''x''|''y''}}|1.8}} |x/y|