Jump to content

Template:RatingAsStars: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
m t
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
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: |[[image:star.png|link={{{pagename|}}}|Rated /5|{{#if: {{{size|}}}|{{{size}}}|80px}}]]}}</includeonly>

Latest revision as of 22:35, 24 September 2026

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)