Difference between revisions of "Template:RatingAsStars"
Jump to navigation
Jump to search
(Created page with "<noinclude>category:Rating Templates'''This presents the average rating of a page.'''<br/> It has two parameters:<br/> {{t|pagename}}, the name of the page in question<br/...") |
m (t) |
||
(2 intermediate revisions 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|{{#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)