Template:Uma compare: Difference between revisions

From Japanese Mahjong Wiki
Jump to navigation Jump to search
(Created page with "{| class="wikitable" !colspan=3|Raw score conversion !!rowspan=6| !!colspan=2| Score comparison |- ! Raw scores !! Rounded to nearest 1000 !! Div by 1000 (A) !! End score (B) ...")
 
mNo edit summary
Line 4: Line 4:
! Raw scores !! Rounded to nearest 1000 !! Div by 1000 (A) !! End score (B) !! End score diff (B - A)
! Raw scores !! Rounded to nearest 1000 !! Div by 1000 (A) !! End score (B) !! End score diff (B - A)
|-
|-
| {{{score1|25000}}}||align=center| {{#expr:{{{score1|25000}}} round 1000}} ||align=center| {{#expr:({{{score1|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = {{#switch:{{{firstplace|no}}}|yes={{#expr:4*({{{targetpts|30000}}}-{{{startpts|25000}}})}}|no=0}}|uma      = {{{uma1|20}}}|round    = yes}} ||align=right| 46 - 36 = '''+10'''
| {{{score1|25000}}}||align=center| {{#expr:{{{score1|25000}}} round 1000}} ||align=center| {{#expr:({{{score1|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = {{#expr:4*({{{targetpts|30000}}}-{{{startpts|25000}}})}}|uma      = {{{uma1|20}}}|round    = yes}} || '''{{#expr:{{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = {{#expr:4*({{{targetpts|30000}}}-{{{startpts|25000}}})}}|uma      = {{{uma1|20}}}|round    = yes}} - {{#expr:({{{score1|25000}}} round 1000)/1000}}}}'''
|-
|-
| {{{score2|25000}}} ||align=center| {{#expr:{{{score2|25000}}} round 1000}} ||align=center| {{#expr:({{{score2|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = {{#switch:{{{firstplace|no}}}|yes={{#expr:4*({{{targetpts|30000}}}-{{{startpts|25000}}})}}|no=0}}|uma      = {{{uma1|20}}}|round    = yes}} ||align=right| 12 - 32 = '''-20'''
| {{{score2|25000}}} ||align=center| {{#expr:{{{score2|25000}}} round 1000}} ||align=center| {{#expr:({{{score2|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = 0|uma      = {{{uma2|10}}}|round    = yes}} || '''{{#expr:{{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = 0|uma      = {{{uma2|10}}}|round    = yes}} - {{#expr:({{{score2|25000}}} round 1000)/1000}}}}'''
|-
|-
| {{{score3|25000}}} ||align=center| {{#expr:{{{score3|25000}}} round 1000}} ||align=center| {{#expr:({{{score3|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = {{#switch:{{{firstplace|no}}}|yes={{#expr:4*({{{targetpts|30000}}}-{{{startpts|25000}}})}}|no=0}}|uma      = {{{uma1|20}}}|round    = yes}} ||align=right| -18 - 22 = '''-40'''
| {{{score3|25000}}} ||align=center| {{#expr:{{{score3|25000}}} round 1000}} ||align=center| {{#expr:({{{score3|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka       = 0|uma       = {{{uma3|-10}}}|round    = yes}} || '''{{#expr:{{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = 0|uma      = {{{uma3|-10}}}|round    = yes}} - {{#expr:({{{score3|25000}}} round 1000)/1000}}}}'''
|-
|-
| {{{score4|25000}}} ||align=center| {{#expr:{{{score4|25000}}} round 1000}} ||align=center| {{#expr:({{{score4|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = {{#switch:{{{firstplace|no}}}|yes={{#expr:4*({{{targetpts|30000}}}-{{{startpts|25000}}})}}|no=0}}|uma      = {{{uma1|20}}}|round    = yes}} ||align=right| -40 - 10 = '''-50'''
| {{{score4|25000}}} ||align=center| {{#expr:{{{score4|25000}}} round 1000}} ||align=center| {{#expr:({{{score4|25000}}} round 1000)/1000}} ||align=center| {{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka       = 0|uma       = {{{uma4|-20}}}|round    = yes}}||'''{{#expr:{{function uma|rawscore  = {{{score1|25000}}}|targetpts = {{{targetpts|30000}}} |oka      = 0|uma      = {{{uma4|-20}}}|round    = yes}} - {{#expr:({{{score4|25000}}} round 1000)/1000}}}}'''
|}
|}<noinclude>{{documentation}}</noinclude>

Revision as of 02:38, 18 January 2015

Raw score conversion Score comparison
Raw scores Rounded to nearest 1000 Div by 1000 (A) End score (B) End score diff (B - A)
25000 25000 25 35 10
25000 25000 25 5 -20
25000 25000 25 -15 -40
25000 25000 25 -25 -50
Documentation icon Template documentation[view] [edit] [history] [purge]
{{uma compare|
<!--player scores-->
|score1 = 
|score2 = 
|score3 = 
|score4 = 
<!--uma settings-->
|uma1 = 20
|uma2 = 10
|uma3 = -10
|uma4 = -20
|startpts  = 25000
|targetpts = 30000
}}

Inputs

Ideally, the scores are arranged in order with "score1" being the points leader while "score4" is last place. Out of the 4, only score1 is affected by the oka, as it is implied as first place. The uma values may be changed accordingly, and the same goes for the startpts and targetpts.