Difference between revisions of "Template:DisplayRatings"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
| 1 = | | 1 = | ||
| 2 <!-- 2 or more, display average rating --> | | 2 <!-- 2 or more, display average rating --> | ||
− | | #default = '''Average Rating''': {{#show: {{FULLPAGENAME}} | ?Has averageRating }} - [[image:{{#show: {{FULLPAGENAME}} | ?Has averageRating }}star.png|100px|link=Template:Rate|alt={{#show: {{FULLPAGENAME}} | ?Has averageRating }}]] from {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}} reviews}} | + | | #default = '''Average Rating''': {{#show: {{FULLPAGENAME}} | ?Has averageRating }} - [[image:{{#show: {{FULLPAGENAME}} | ?Has averageRating }}star.png|100px|link=Template:Rate|alt={{#show: {{FULLPAGENAME}} | ?Has averageRating }}]] from {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}} reviews}} |
− | |||
− | |||
{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]] | {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]] | ||
|?-Has subobject | |?-Has subobject | ||
Line 17: | Line 15: | ||
|sort=Has publicationDate | |sort=Has publicationDate | ||
|template=DisplayRatings/Output | |template=DisplayRatings/Output | ||
− | |userparam={{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count | + | |userparam={{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}} |
}}</includeonly> | }}</includeonly> |
Revision as of 05:05, 10 April 2016
This is intended for use on pages in the document: namespace (or later, the main namespace). It makes a list of ratings of that page.
It currently has no parameters, but this may change.
If you wish to display a list of ratings on your userpage, you should use Template:Ratings.