Template:Mset

From GM-RKB
Jump to navigation Jump to search

{{{{1}}}}

[edit] [history] [purge] File:Template-info.png Template documentation

The 'mset template wraps its argument or arguments in curly brackets. If two arguments are supplied a pipe mark is placed between them. These are used to delimit a set.

The template is designed for use inside the {{math}} template. It avoids having to use the special templates {{(}}, {{!}}, and {{)}} and makes the meaning more clear.

Usage

Use this to wrap an expression. For example:

For instance {{math|1={{mset|0 .. 9}} = {{mset|''x'' | 0 ≤ ''x'' ≤ 9}}}}.

produces:

For instance {0 .. 9} = {x | 0 ≤ x ≤ 9}.

See also

  • {{math}} which formats its argument as mathematics
  • {{!}} which generates a single | character