Difference between revisions of "ConvertRating"

From Sega Retro

Line 101: Line 101:
 
===0-4s===
 
===0-4s===
 
{| class="prettytable" style="width:auto;"
 
{| class="prettytable" style="width:auto;"
|{{ConvertRating|0-4s|0}}{{#var:displayRating}}
 
|{{#var:score}}
 
 
|-
 
|-
|{{ConvertRating|0-4s|1}}{{#var:displayRating}}
+
{{ConvertRating|0-4s|0}}
|{{#var:score}}
+
|0||{{#var:displayRating}}||{{#var:score}}
 
|-
 
|-
|{{ConvertRating|0-4s|2}}{{#var:displayRating}}
+
{{ConvertRating|0-4s|1}}
|{{#var:score}}
+
|1||{{#var:displayRating}}||{{#var:score}}
 
|-
 
|-
|{{ConvertRating|0-4s|3}}{{#var:displayRating}}
+
{{ConvertRating|0-4s|2}}
|{{#var:score}}
+
|2||{{#var:displayRating}}||{{#var:score}}
 
|-
 
|-
|{{ConvertRating|0-4s|4}}{{#var:displayRating}}
+
{{ConvertRating|0-4s|3}}
|{{#var:score}}
+
|3||{{#var:displayRating}}||{{#var:score}}
 +
|-
 +
{{ConvertRating|0-4s|4}}
 +
|4||{{#var:displayRating}}||{{#var:score}}
 
|-
 
|-
 
|}
 
|}

Revision as of 03:52, 20 April 2020

Clock.svg
This task is unfinished
This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of Sega Retro:Todo until this message is removed.

A template for converting a rating, as printed in a magazine into:

  • something nice to display ({{#var:displayRating}})
  • a value out of 100 for use in Sega Retro averages ({{#var:score}})


multiple instances of the above (e.g. support "1,2,3,4" for EGM)

added text. e.g. later issues of the UK Official Dreamcast magazine, 7 = "good".


it should be able to detect if a given value is invalid. Some magazines could be using multiple systems depending on context.

The user should not be expected to calculate anything.


Working values

0-4s

0 ☆☆☆☆ 0
1 ★☆☆☆ 25
2 ★★☆☆ 50
3 ★★★☆ 75
4 ★★★★ 100