Difference between revisions of "Test:Ratings"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
{{Ratings}} | {{Ratings}} | ||
==Average Rating:== | ==Average Rating:== | ||
− | + | ||
− | + | {{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|0|| value if different [[Has averageRating::{{#ask:[[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]| ?Has value| format=average}}}}}} | |
− | | ?Has value | + | |
− | | format=average | + | {{#if: [[Has averageRating::{{FULLPAGENAME}}]]|Average rating=[[Has averageRating::{{FULLPAGENAME}}]}} |
− | }} |
Revision as of 16:26, 9 April 2016
For testing Template:Rate & Template:DisplayRatings
Display Ratings
Ratings
Average Rating:
{{#ifeq: 0|0|| value if different 0}}}}
{{#if: [[Has averageRating::Test:Ratings"}}}}</br></br>{{#if:HasaverageRating::Test:Ratings" can not be assigned to a declared number type with value 0.|Average rating=[[Has averageRating::Test:Ratings]}}