Difference between revisions of "GetAverageScore2"

From Sega Retro

(eeehhhhh)
Line 1: Line 1:
<includeonly>{{#cargo_query:
+
<includeonly>{{#vardefine:result|}}{{#cargo_query:
 
tables=ratings
 
tables=ratings
 
|fields=avg(ratings.score)
 
|fields=avg(ratings.score)
 
|where=ratings.name="{{{1|}}}" and ratings.format="{{{2|}}}"
 
|where=ratings.name="{{{1|}}}" and ratings.format="{{{2|}}}"
 
|limit=10
 
|limit=10
}}</includeonly><noinclude>Template to get Sega Retro average score:
+
|format=template
 +
|template=GetAverageScore2/Cargo
 +
}}</includeonly>{{#var:result}}<noinclude>Template to get Sega Retro average score:
  
 
<pre>{{GetAverageScore2|688 Attack Sub|MD}}</pre>
 
<pre>{{GetAverageScore2|688 Attack Sub|MD}}</pre>

Revision as of 10:33, 3 May 2020

Template to get Sega Retro average score:

{{GetAverageScore2|688 Attack Sub|MD}}

76.05357142857136