|
Tags: Blanking Manual revert |
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}}
| |
| <templatedata>
| |
| {
| |
| "params": {
| |
| "1": {},
| |
| "2": {},
| |
| "nosep": {},
| |
| "r": {}
| |
| }
| |
| }
| |
| </templatedata>
| |
|
| |
| ==See also==
| |
| *{{tl|Sum}}
| |
|
| |
| <includeonly>{{sandbox other||
| |
| <!-- Categories below this line, please; interwikis at Wikidata -->
| |
| [[Category:Mathematical function templates]]
| |
| }}</includeonly>
| |