Template:Mvarb
{{{1}}}
| This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
The {{mvarb}} template is the bold-formatting counterpart to the italics-set {{mvar}}. {{mvarb}} makes the first parameter (required) bold and formats as mathematics. It is used to refer to individual variables in normal running text. It should not be used within a {{math}} template.
Note that digits in a variable name are conventionally not bold, so {{mvarb}} accepts a 2nd parameter as an undecorated subscript (but it will still be formatted in the same mathematics font as {{math}}). For example, {{mvarb|x|1}} is a convenient shorthand for {{math|''x''<sub>1</sub>}} to produce x1.
Functions and variables made up of multiple letters are conventionally set in upright letters so {{math}} should be used in that case too; for example {{math|cos}} to produce cos.
Usage
[edit]| Markup | Renders as |
|---|---|
Let {{mvarb|x}} be ... |
Let x be ... |
{{mvarb|A|1}} is ... |
A1 is ... |
{{mvarb|V|+}} is the ... |
V+ is the ... |
TemplateData
[edit]TemplateData for Mvarb
Marks text as a variable and formats it as bold math, with optional subscript
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| variable | 1 | no description | Line | required |
| subscript | 2 | no description | String | optional |
See also
[edit]- {{mvar}}, for mathematical variables in italics
- {{var}}, for non-mathematical variables
- {{math}}, which formats its argument as mathematics
- {{bigmath}}, the same as {{math}} but makes it bigger
- {{tmath}}, which wraps a TeX math expression in
<math>tags