Difference between revisions of "Template:DisplayRatings"

From Wikispooks
Jump to navigation Jump to search
(Display ratings)
 
m
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''This template displays ratings. It is current used only by [[Template:Document]].'''</noinclude><includeonly>{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}
+
<noinclude>[[Category:Document Templates]][[category:Rating Templates]]'''This makes a list of ratings that a page has.''' It uses [[Template:DisplayRatings/Output]]<br/>
{{#switch: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}
+
It currently has no parameters, althought this may possibly change.<br/>
| 0 =
+
''To display a list of the pages you have rated on your userpage, you should use [[Template:MyRatings]].''</noinclude><includeonly>{{#ifexpr: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}} >0|
| 1
+
<br/>
| 2 = {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
+
 
|?-Has subObject
+
== {{spz|{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|Rating|Ratings|ERROR}} ==
 +
 
 +
{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
 +
|?-Has subobject
 
|?Has value
 
|?Has value
 
|?Has publicationDate
 
|?Has publicationDate
 
|?Has summary
 
|?Has summary
|?Description2
+
|?Description
 
|format=template
 
|format=template
 
|sort=Has publicationDate
 
|sort=Has publicationDate
|template=DisplayRating/Output}}
+
|template=DisplayRatings/Output
| #default = {{DisplayAverageRating}}{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
+
|userparam={{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}}}}}</includeonly>
|?-Has subObject
 
|?Has value
 
|?Has publicationDate
 
|?Has summary
 
|?Description2
 
|format=template
 
|sort=Has publicationDate
 
|template=DisplayRating/OutputBrief}}
 
}}</includeonly>
 

Latest revision as of 18:46, 6 October 2021

This makes a list of ratings that a page has. It uses Template:DisplayRatings/Output
It currently has no parameters, althought this may possibly change.
To display a list of the pages you have rated on your userpage, you should use Template:MyRatings.