Difference between revisions of "Template:MyRatings"

From Wikispooks
Jump to navigation Jump to search
(Add sort params)
Line 5: Line 5:
 
|sort=Has publicationDate (defaults to 'Has value')<br/>
 
|sort=Has publicationDate (defaults to 'Has value')<br/>
 
|order=random (defaults to 'descending')<br/>
 
|order=random (defaults to 'descending')<br/>
<nowiki>}}</nowiki>
+
<nowiki>}}</nowiki><br/>
}}
 
 
''Targets of ratings (i.e. [[SMWObject]]s) should use [[Template:DisplayRatings]].''<br/>
 
''Targets of ratings (i.e. [[SMWObject]]s) should use [[Template:DisplayRatings]].''<br/>
 
<br/>
 
<br/>

Revision as of 14:53, 9 September 2016

This is intended for use on pages in the user: namespace. It makes a list of all that users' ratings.
If the user has no ratings, it draws a thin stripey black line. It calls Template:MyRatings/Output to format output.
It currently has one optional parameter, the sort key:
{{MyRatings
|sort=Has publicationDate (defaults to 'Has value')
|order=random (defaults to 'descending')
}}
Targets of ratings (i.e. SMWObjects) should use Template:DisplayRatings.

Example:
==Ratings==
{{MyRatings|sort=Has publicationDate}}