Difference between revisions of "RatingsRowSum"

From Sega Retro

 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><!-- scoreoverride exists for a test of Template:StarRating - it is not essential -->
{{ #if: {{{2|}}} | {{!}}<span itemprop="author">{{{1}}}</span>{{addvar|cumulativeScore|{{{2}}}}}{{incvar|totalReviews}}
+
{{ #if: {{{2|}}} | {{!}}<span itemprop="author">{{{1}}}</span>{{addvar|cumulativeScore|{{#if:{{#var:scoreoverride}}|{{#var:scoreoverride}}|{{{2}}}}}}}{{incvar|totalReviews}}{{#vardefine:scoreoverride|}}
{{!}}class="ratingsscore" style="{{scoreColour|{{{2}}}}}" {{!}}<span itemprop="ratingValue">{{{2}}}</span>
+
{{!}} style="text-align:center; {{scoreColour|{{{2}}}}}" {{!}}<span itemprop="ratingValue">{{#expr:{{{2}}} round 0}}</span>
 
{{!}} {{#if: {{{3|}}} | {{{3}}} | [[Category:Rating without source]] }}
 
{{!}} {{#if: {{{3|}}} | {{{3}}} | [[Category:Rating without source]] }}
 
{{!}}-
 
{{!}}-

Latest revision as of 13:47, 28 June 2019

See Template:Ratings for usage.