Template:Function uma/doc: Difference between revisions

From Japanese Mahjong Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
|oka      =  
|oka      =  
|uma      =  
|uma      =  
|round    =
}}
}}
</pre>
</pre>
Line 14: Line 15:
* targetpts = 30000; for this line, always include a value as the expression produces an error when empty.  Change the target value if needed.
* 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
* uma = 0
* round = blank.  If end score values are to be rounded to the nearest integer, then input "yes".


[[Category:Functions]]
[[Category:Functions]]
[[Category:Mahjong templates]]
[[Category:Mahjong templates]]

Revision as of 01:45, 18 January 2015

{{function uma
|rawscore  = 
|targetpts = 30000
|oka       = 
|uma       = 
|round     = 
}}

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 = blank. If end score values are to be rounded to the nearest integer, then input "yes".