Template:Function uma: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#expr:(({{{rawscore|25000}}} + {{{oka|0}}} - {{{targetpts|30000}}})/1000) + {{{uma|0}}}}} | {{#expr:(({{{rawscore|25000}}} + {{{oka|0}}} - {{{targetpts|30000}}})/1000) + {{{uma|0}}} {{#switch:{{{round|default}}}|yes=round 0|default=+0}} }} | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Revision as of 01:43, 18 January 2015
-5
{{function uma |rawscore = |targetpts = 30000 |oka = |uma = |round = yes }}
result = (((rawscore + oka - (targetpts - startpts))/1000) + uma
Defaults
- rawscore = 25000
- oka = 5000
- targetpts = 30000; for this line, always include a value as the expression produces an error when empty. Change the target value if needed.
- uma = 0
- round = yes. If the end score values retain one decimal place, then leave blank.
The above documentation is transcluded from Template:Function uma/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |