Difference between revisions of "Template:MyRatings"

From Wikispooks
Jump to navigation Jump to search
m (Robin moved page Template:Myratings to Template:MyRatings)
(fix redundant names)
Line 6: Line 6:
 
'''Example:'''<br/>
 
'''Example:'''<br/>
 
{{t|<nowiki>==Ratings==</nowiki>}}<br/>
 
{{t|<nowiki>==Ratings==</nowiki>}}<br/>
{{t|<nowiki>{{myratings}}</nowiki> }}
+
{{t|<nowiki>{{MyRatings}}</nowiki> }}
 
</noinclude><includeonly><div style="border-color:black; border-width:3px; border-style:groove;">{{#ask: [[Constitutes::Rating]][[-Has subobject::{{FULLPAGENAME}}]]
 
</noinclude><includeonly><div style="border-color:black; border-width:3px; border-style:groove;">{{#ask: [[Constitutes::Rating]][[-Has subobject::{{FULLPAGENAME}}]]
 
|?Has target#NOWIKI
 
|?Has target#NOWIKI
Line 15: Line 15:
 
|format=template
 
|format=template
 
|sort=Has publicationDate
 
|sort=Has publicationDate
|template=Ratings/Output
+
|template=MyRatings/Output
 
}}</div></includeonly>
 
}}</div></includeonly>

Revision as of 16:23, 3 July 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 currently has no parameters, but this may change.
Targets of ratings (i.e. SMWObjects) should use Template:DisplayRatings.

Example:
==Ratings==
{{MyRatings}}