Difference between revisions of "Template:RatingAsStars"
Jump to navigation
Jump to search
(title and link) |
(fix link) |
||
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> |
Revision as of 17:27, 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)