Difference between revisions of "Template:Mabs/doc"

From blackwiki
Jump to navigation Jump to search
imported>Dmcq
(→‎See also: generate single | character)
imported>Gadget850
m (null edit)
Line 6: Line 6:
 
The template if designed for use in the {{tl|math}} template and avoids having to use two <nowiki>{{!}}</nowiki> marks and makes the meaning more clear.
 
The template if designed for use in the {{tl|math}} template and avoids having to use two <nowiki>{{!}}</nowiki> marks and makes the meaning more clear.
  
== Usage ==
+
==Usage==
 
Use this to wrap an expression. For example:
 
Use this to wrap an expression. For example:
  
Line 17: Line 17:
 
We know that {{math|1={{mabs|''a''}} ≥ 0}}.
 
We know that {{math|1={{mabs|''a''}} ≥ 0}}.
  
== See also ==
+
==See also==
 
* {{tl|math}} which formats its argument as mathematics
 
* {{tl|math}} which formats its argument as mathematics
*{{tl|!}} which generates a single | character
+
* {{tl|!}} which generates a single | character
  
 
<includeonly>
 
<includeonly>

Revision as of 13:17, 2 April 2011

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