Difference between revisions of "Template:DisplayRatings"

From Wikispooks
Jump to navigation Jump to search
m (testing)
m (userparam)
Line 3: Line 3:
 
''If you wish to display a list of ratings on your userpage, you should use [[Template:Ratings]].''</noinclude><includeonly>{{#switch: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}
 
''If you wish to display a list of ratings on your userpage, you should use [[Template:Ratings]].''</noinclude><includeonly>{{#switch: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}
 
  | 0 =
 
  | 0 =
  | 3
+
  | 1
  | 2 = {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
+
  | 2
 +
| #default = {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
 
|?-Has subobject
 
|?-Has subobject
 
|?Has value
 
|?Has value
Line 12: Line 13:
 
|format=template
 
|format=template
 
|sort=Has publicationDate
 
|sort=Has publicationDate
|template=DisplayRatings/Output}}
+
|template=DisplayRatings/Output
| #default = {{DisplayRatingsAverage}}{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
+
|userparam={{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}}}
|?-Has subobject
 
|?Has value
 
|?Has publicationDate
 
|?Has summary
 
|?Description2
 
|format=template
 
|sort=Has publicationDate
 
|template=DisplayRatings/OutputBrief}}
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:26, 30 January 2015

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.