Template:Multiply: Difference between revisions

From MCM Combat Operations
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
Multiplies two numbers.
<syntaxhighlight lang="wikitext">{{multiply | ''x'' | ''y'' | r= | nosep= }}</syntaxhighlight>
'''Parameters'''
* <code>r</code> – Option to remove separators from input numbers: 1,000 → 1000
* <code>nosep</code> – Option to remove separators from the output result
These two parameters correspond to the <code>R</code> and <code>NOSEP</code> options for the <code><nowiki>{{</nowiki>[[mw:Help:Magic words#Formatting|formatnum:]]}}</code> parser function.
==Examples==
<code><nowiki>{{multiply|4|5}}</nowiki></code> – {{multiply|4|5}}
<code><nowiki>{{multiply|1000|1000|nosep=1}}</nowiki></code> – {{multiply|1000|1000|nosep=1}}
<code><nowiki>{{multiply|1,000|1,000|r=1}}</nowiki></code> – {{multiply|1,000|1,000|r=1}}
<code><nowiki>{{multiply|1,000|1,000|r=1|nosep=1}}</nowiki></code> – {{multiply|1,000|1,000|r=1|nosep=1}}
<code><nowiki>{{multiply|1.5|10}}</nowiki></code> – {{multiply|1.5|10}}
<code><nowiki>{{multiply|400|200}}</nowiki></code> – {{multiply|400|200}}
<code><nowiki>{{multiply|3/2|10}}</nowiki></code> – {{multiply|3/2|10}}
<code><nowiki>{{multiply|pi|1}}</nowiki></code> – {{multiply|pi|1}}
==TemplateData==
{{TemplateDataHeader}}
{{TemplateDataHeader}}
<templatedata>
<templatedata>
Line 10: Line 41:
}
}
</templatedata>
</templatedata>
==See also==
*{{tl|Sum}}
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Mathematical function templates]]
}}</includeonly>

Revision as of 09:46, 27 May 2024

Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

{{multiply|1000|1000|nosep=1}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

{{multiply|1,000|1,000|r=1}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

{{multiply|1,000|1,000|r=1|nosep=1}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

{{multiply|1.5|10}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

{{multiply|400|200}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

{{multiply|3/2|10}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

{{multiply|pi|1}}Template:Documentation subpage

Usage

Multiplies two numbers.

<syntaxhighlight lang="wikitext">Template loop detected: Template:Multiply</syntaxhighlight>

Parameters

  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{multiply|4|5}}Template loop detected: Template:Multiply

{{multiply|1000|1000|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1}}Template loop detected: Template:Multiply

{{multiply|1,000|1,000|r=1|nosep=1}}Template loop detected: Template:Multiply

{{multiply|1.5|10}}Template loop detected: Template:Multiply

{{multiply|400|200}}Template loop detected: Template:Multiply

{{multiply|3/2|10}}Template loop detected: Template:Multiply

{{multiply|pi|1}}Template loop detected: Template:Multiply

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also

Template:Sandbox other

TemplateData

Template:TemplateDataHeader <templatedata> { "params": { "1": {}, "2": {}, "nosep": {}, "r": {} } } </templatedata>

See also