Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search
|
|
Line 1: |
Line 1: |
| {{#if:{{{1|}}}
| | <div class="noprint">{{Rating {{{1|}}}/{{{2|}}}}}</div><noinclude>[[Category:Templates]]</noinclude> |
| |{{#if:{{{2|}}}
| |
| |<span style="white-space:nowrap" title="{{{1}}}/{{{2}}} stars">{{#ifexpr:{{{1}}}>=1
| |
| |[[Image:Star full.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]]{{Loop15
| |
| |{{#expr:floor{{{1}}}-1}}
| |
| |[[Image:Star full.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|alt=]]
| |
| }}
| |
| |{{#ifexpr:{{{1}}}>0
| |
| |[[Image:Star half.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]]
| |
| |[[Image:Star empty.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]]
| |
| }}
| |
| }}{{#ifexpr:{{{1}}}>1and{{{1}}}!=ceil{{{1}}}
| |
| |[[Image:Star half.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|alt=]]
| |
| }}{{Loop15
| |
| |{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
| |
| |[[Image:Star empty.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|alt=]]
| |
| }}</span>
| |
| |Please specify a rating.
| |
| }}
| |
| |Please specify a rating.
| |
| }}<noinclude>
| |
| [[Category:Templates]] | |
| </noinclude> | |
Revision as of 22:27, 22 December 2010