Difference between revisions of "Test:Ratings"

From Wikispooks
Jump to navigation Jump to search
(round to 1 dp)
Line 8: Line 8:
 
{{Ratings}}
 
{{Ratings}}
 
==Average Rating:==
 
==Average Rating:==
{{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|0||[[Has averageRating::{{#ask:[[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]| ?Has value| format=average}}]]}}
+
{{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|0||[[Has averageRating::{{#expr: {{#ask:[[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]| ?Has value| format=average}} round 1}}]]}}

Revision as of 16:35, 9 April 2016

For testing Template:Rate & Template:DisplayRatings

Display Ratings

Ratings

Template:Ratings

Average Rating: