Template:Mabs

From Template Wiki, a repository of MediaWiki templates.
Jump to navigation Jump to search

|{{{1}}}|

Template documentation[view] [edit] [history] [purge]

The mabs template wraps its argument in two pipe marks. These are used to delimit an absolute value or modulus function in mathematics.

The template if designed for use in the {{math}} template and avoids having to use two {{!}} marks and makes the meaning more clear.

Usage

Use this to wrap an expression. For example:

We know that {{math|1={{mabs|''a''}} ≥ 0}}.

produces:

We know that |a| ≥ 0.

See also

  • {{math}} which formats its argument as mathematics
  • {{!}} which generates a single | character
Wikipedia logo This template uses material from the Wikipedia template Template:Mabs, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).