Template:Function uma/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<pre>{{function uma |rawscore = |targetpts = |startpts = |oka = |uma = }} </pre> result = (((rawscore + oka - (targetpts - startpts))/1000) + uma Category:Fu...") |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre>{{function uma | <pre>{{function uma | ||
|rawscore = | |rawscore = | ||
|targetpts = | |targetpts = 30000 | ||
| | |oka = | ||
| | |uma = | ||
| | |round = yes | ||
}} | }} | ||
</pre> | </pre> | ||
result = (((rawscore + oka - (targetpts - startpts))/1000) + uma | 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. | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Mahjong templates]] | [[Category:Mahjong templates]] |
Latest revision as of 01:45, 18 January 2015
{{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.