Jump to content

Template:DisplayAverageRating: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
No edit summary
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 1: Line 1:
<noinclude>[[Category:Document Templates]][[category:Rating Templates]]'''This is intended for use on pages at the top of an infobox. It displays the average rating of that page, and links to the ratings section.'''<br/></noinclude><includeonly>
<includeonly></includeonly><noinclude>
{{#switch: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}
Icon and rating queries removed. They needed Semantic MediaWiki.
| 0 =<!-- 1 or more, display average rating -->
</noinclude>
| #default =[[image:{{#show: {{FULLPAGENAME}} | ?Has averageRating }}star.png|100px|link=Rating|alt={{#show: {{FULLPAGENAME}} | ?Has averageRating }}]]<!-- Simpler not to
{{#show: {{FULLPAGENAME}} | ?Has averageRating }}-->{{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|1|| from {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}} reviews}}}}</includeonly>

Latest revision as of 22:34, 24 September 2026

Icon and rating queries removed. They needed Semantic MediaWiki.