Template:Mset/doc

维基百科,自由的百科全书

这是Template:Mset/doc当前版本,由imported>A2569875编辑于2022年12月9日 (五) 13:58 (增加或調整分類)。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
跳转到导航 跳转到搜索

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 clarifies the template's output and avoids a need to use the magic word {{!}} or the character-substituting templates {{(}} and {{)}}.

Usage[编辑]

Use this template to wrap an expression. For example,

{{math |1={{mset|0 .. 9}} = {{mset|''n'' | 0 ≤ ''n'' ≤ 9}}}}

produces:

{0 .. 9} = {n | 0 ≤ n ≤ 9}

See also[编辑]

  • {{math}}, which formats its argument as mathematics.
  • the "magic word" {{!}}.
  • {{abs}}
  • {{norm}}
  • {{braces}}