Difference between revisions of "Template:DisplayRatings"

From Wikispooks
Jump to navigation Jump to search
(better explanation)
m (t)
Line 1: Line 1:
 
<noinclude>'''This is intended for use on pages in the {{NS|document}} (or later, the main namespace). It makes a list of ratings of that page.'''<br/>
 
<noinclude>'''This is intended for use on pages in the {{NS|document}} (or later, the main namespace). It makes a list of ratings of that page.'''<br/>
 
It currently has no parameters, but this may change.<br/>
 
It currently has no parameters, but this may change.<br/>
''If you wish to display a list of ratings on your userpage, you should use [[Template:Ratings]].''</noinclude><includeonly>{{#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}}
{{#switch: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}
 
 
  | 0 =
 
  | 0 =
 
  | 1  
 
  | 1  
 
  | 2 = {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
 
  | 2 = {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
|?-Has subObject
+
|?-Has subobject
 
|?Has value
 
|?Has value
 
|?Has publicationDate
 
|?Has publicationDate
Line 15: Line 14:
 
|template=Ratings/Output}}
 
|template=Ratings/Output}}
 
  | #default = {{DisplayRatingsAverage}}{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
 
  | #default = {{DisplayRatingsAverage}}{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]
|?-Has subObject
+
|?-Has subobject
 
|?Has value
 
|?Has value
 
|?Has publicationDate
 
|?Has publicationDate

Revision as of 15:21, 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.