Difference between revisions of "ConvertRating/GamePro"
From Sega Retro
Line 3: | Line 3: | ||
#vardefine:value3|{{#explode:{{{1}}}|,|2}}}}{{ | #vardefine:value3|{{#explode:{{{1}}}|,|2}}}}{{ | ||
#vardefine:value4|{{#explode:{{{1}}}|,|3}}}}{{ | #vardefine:value4|{{#explode:{{{1}}}|,|3}}}}{{ | ||
− | #vardefine:value5|{{#explode:{{{1}}}|,|4}}}}{{#switch:{{#var:value5}} | + | #vardefine:value5|{{#explode:{{{1}}}|,|4}}}}{{#if:{{#var:value5}}|{{#switch:{{#var:value5}} |
|beg | |beg | ||
|BEG | |BEG | ||
Line 13: | Line 13: | ||
|EXP | |EXP | ||
|adj | |adj | ||
− | |ADJ={{#vardefine: | + | |ADJ={{#vardefine:fiverows|}} |
− | |#default={{#vardefine: | + | |#default={{#vardefine:fiverows|yes}} |
− | }}{{#if:{{#var: | + | }}|{{#vardefine:fiverows|}}}}{{#if:{{#var:fiverows}} |
+ | |{{#vardefine:score|{{#expr:({{#var:value1}}+{{#var:value2}}+{{#var:value3}}+{{#var:value4}}+{{#var:value5}})*4}}}} | ||
|{{#vardefine:score|{{#expr:({{#var:value1}}+{{#var:value2}}+{{#var:value3}}+{{#var:value4}})*5}}}} | |{{#vardefine:score|{{#expr:({{#var:value1}}+{{#var:value2}}+{{#var:value3}}+{{#var:value4}})*5}}}} | ||
− | |||
}}{{#if:{{{date|}}}|{{#vardefine:set|{{dateswitch|date={{{date}}}|1989-01-01=|1996-01-01=1996|1997-01-01=1997}}}}}}{{ | }}{{#if:{{{date|}}}|{{#vardefine:set|{{dateswitch|date={{{date}}}|1989-01-01=|1996-01-01=1996|1997-01-01=1997}}}}}}{{ | ||
#vardefine:displayRating|{{{!}} style="width:auto; margin:0px;" | #vardefine:displayRating|{{{!}} style="width:auto; margin:0px;" | ||
Line 24: | Line 24: | ||
{{!}}style="border: 2px solid #000; padding:0px;"{{!}}[[File:GamePro Rating {{#expr:{{#var:value3}}*10}}{{#if:{{#var:set}}| {{#var:set}}}}.png|35px|Gameplay: {{#var:value3}}]] | {{!}}style="border: 2px solid #000; padding:0px;"{{!}}[[File:GamePro Rating {{#expr:{{#var:value3}}*10}}{{#if:{{#var:set}}| {{#var:set}}}}.png|35px|Gameplay: {{#var:value3}}]] | ||
{{!}}style="border: 2px solid #000; padding:0px;"{{!}}[[File:GamePro Rating {{#expr:{{#var:value4}}*10}}{{#if:{{#var:set}}| {{#var:set}}}}.png|35px|FunFactor: {{#var:value4}}]] | {{!}}style="border: 2px solid #000; padding:0px;"{{!}}[[File:GamePro Rating {{#expr:{{#var:value4}}*10}}{{#if:{{#var:set}}| {{#var:set}}}}.png|35px|FunFactor: {{#var:value4}}]] | ||
− | {{#if:{{#var: | + | {{#if:{{#var:value5}}|{{#if:{{#var:fiverows}} |
− | | | ||
|{{!}}style="border: 2px solid #000; padding:0px;"{{!}}[[File:GamePro Rating {{#expr:{{#var:value5}}*10}}.png|35px|Challenge: {{#var:value5}}]] | |{{!}}style="border: 2px solid #000; padding:0px;"{{!}}[[File:GamePro Rating {{#expr:{{#var:value5}}*10}}.png|35px|Challenge: {{#var:value5}}]] | ||
− | }} | + | |}}|}} |
{{!}}} | {{!}}} | ||
}}</span></includeonly><noinclude> | }}</span></includeonly><noinclude> | ||
Line 38: | Line 37: | ||
{{ConvertRating/GamePro|1,2,3,4,adj|date=1996-12-01}}{{#var:displayRating}}{{#var:score}} | {{ConvertRating/GamePro|1,2,3,4,adj|date=1996-12-01}}{{#var:displayRating}}{{#var:score}} | ||
{{ConvertRating/GamePro|1,2,3,4,adj|date=1997-12-01}}{{#var:displayRating}}{{#var:score}} | {{ConvertRating/GamePro|1,2,3,4,adj|date=1997-12-01}}{{#var:displayRating}}{{#var:score}} | ||
+ | {{ConvertRating/GamePro|4.5,3.5,4,4.5|date=2000-xx-xx}}{{#var:displayRating}}{{#var:score}} | ||
[[Category:Sega Retro templates]]</noinclude> | [[Category:Sega Retro templates]]</noinclude> |