Revision 5188329 of "Template:Rating-4" on simplewiki<includeonly>{{#ifexpr: {{{1}}} >= 0 and {{{1}}} <= 4 | [[Image:Stars4{{Rounddown|{{{1}}} }}{{#ifexpr: {{{1}}} - {{Rounddown|{{{1}}} }} > 0 | 5 | 0 }}.svg|44px|{{{1}}}/4 stars]]| '''RATING NOT SPECIFIED''' }}</includeonly><noinclude>
This template is designed to provide a Four Star system of rating.
To use this template add the following:
:<tt><nowiki>{{Rating-4|RATING}}</nowiki></tt>
The field "RATING" refers to its rating out of Four. You can use any decimal or whole number. This will render it at an appropriate size for an infobox. If "RATING" is omitted, such as by writing <tt><nowiki>{{Rating-4}}</nowiki></tt> on its own, a warning, '''RATING NOT SPECIFIED''', will be rendered.
See the following templates for other rating systems:<br />
{{[[Template:Rating-3|Rating-3]]}}
{{[[Template:Rating-5|Rating-5]]}}
{{[[Template:Rating-6|Rating-6]]}}
{{[[Template:Rating-10|Rating-10]]}}
== Examples of ratings ==
*<nowiki>{{Rating-4|0}}</nowiki> displays as [[Image:Stars400.svg|44px|0/4 stars]]
*<nowiki>{{Rating-4|1.8}}</nowiki> displays as [[Image:Stars415.svg|44px|1.8/4 stars]]
*<nowiki>{{Rating-4|2.5}}</nowiki> displays as [[Image:Stars425.svg|44px|2.5/4 stars]]
*<nowiki>{{Rating-4|3.1}}</nowiki> displays as [[Image:Stars435.svg|44px|3.1/4 stars]]
*<nowiki>{{Rating-4|4}}</nowiki> displays as [[Image:Stars440.svg|44px|4/4 stars]]
<!--Categories-->
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
<!--Other languages-->
</noinclude>All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?oldid=5188329.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|