Difference between revisions of "RatingsRowSum"
From Sega Retro
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><!-- starscore exists for a test of Template:StarRating - it is not essential --> |
{{ #if: {{{2|}}} | {{!}}<span itemprop="author">{{{1}}}</span>{{addvar|cumulativeScore|{{#if:{{#var:starscore}}|{{#var:starscore}}|{{{2}}}}}}}{{incvar|totalReviews}}{{#vardefine:starscore|}} | {{ #if: {{{2|}}} | {{!}}<span itemprop="author">{{{1}}}</span>{{addvar|cumulativeScore|{{#if:{{#var:starscore}}|{{#var:starscore}}|{{{2}}}}}}}{{incvar|totalReviews}}{{#vardefine:starscore|}} | ||
{{!}} style="text-align:center; {{scoreColour|{{{2}}}}}" {{!}}<span itemprop="ratingValue">{{{2}}}</span> | {{!}} style="text-align:center; {{scoreColour|{{{2}}}}}" {{!}}<span itemprop="ratingValue">{{{2}}}</span> |
Revision as of 14:51, 6 December 2018
See Template:Ratings for usage.