Difference between revisions of "Module:Decimals/doc"
(Added documentation of the new 'error' parameter. Note that it's not implemented in the _main function.) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 22:41, 24 October 2018
This Lua module is used on approximately 5,600 pages, so changes to it will be widely noticed. Please test any changes in the module's /sandbox or /testcases subpages. Please consider discussing changes on the talk page before implementing them. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
Usage
From other Lua modules
<syntaxhighlight lang="lua"> local roundAndPad = require('Module:Decimals')._main result = roundAndPad(n, decimals) </syntaxhighlight>
From wikitext
{{#invoke:Decimals|main|n|decimals[|error=string to display instead of error message]}}
For more information, see Template:Decimals.