Difference between revisions of "Template:RatingAsStars"

From Wikispooks
Jump to navigation Jump to search
(title and link)
m (t)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
It has two parameters:<br/>
 
It has two parameters:<br/>
 
{{t|pagename}}, the name of the page in question<br/>
 
{{t|pagename}}, the name of the page in question<br/>
{{t|size}}, the width of the star icon (defaults to 80px)</noinclude><includeonly>{{#if: {{#show: {{{pagename|}}} | ?Has averageRating }}|[[image:{{#show: {{{pagename|}}} | ?Has averageRating }}star.png|link=pagename|Rated {{#show: {{{pagename|}}} | ?Has averageRating }}/5|{{#if: {{{size|}}}|{{{size}}}|80px}}]]}}</includeonly>
+
{{t|size}}, the width of the star icon (defaults to 80px)</noinclude><includeonly>{{#if: {{#show: {{{pagename|}}} | ?Has averageRating }}|[[image:{{#show: {{{pagename|}}} | ?Has averageRating }}star.png|link={{{pagename|}}}|Rated {{#show: {{{pagename|}}} | ?Has averageRating }}/5|{{#if: {{{size|}}}|{{{size}}}|80px}}]]}}</includeonly>

Latest revision as of 17:38, 29 November 2017

This presents the average rating of a page.
It has two parameters:
pagename, the name of the page in question
size, the width of the star icon (defaults to 80px)