Template:Rating: Difference between revisions
From The Elvis Costello Wiki
Jump to navigationJump to search
(test) |
(changed to version from wikipedia) |
||
Line 1: | Line 1: | ||
{{#if:{{{1|}}} | |||
|{{#if:{{{2|}}} | |||
|<span style="white-space:nowrap" title="{{{1}}}/{{{2}}} stars">{{#ifexpr:{{{1}}}>=1 | |||
|[[File:Star full.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]]{{Loop15 | |||
|{{#expr:floor{{{1}}}-1}} | |||
|[[File:Star full.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|link=]] | |||
}} | |||
|{{#ifexpr:{{{1}}}>0 | |||
|[[File:Star half.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]] | |||
|[[File:Star empty.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]] | |||
}} | |||
}}{{#ifexpr:{{{1}}}>1and{{{1}}}!=ceil{{{1}}} | |||
|[[File:Star half.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|link=]] | |||
}}{{Loop15 | |||
|{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}} | |||
|[[File:Star empty.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|link=]] | |||
}}</span> | |||
|Please specify a rating. | |||
}} | |||
|Please specify a rating. | |||
}}<noinclude> | |||
{{pp-template}} | |||
{{documentation}} | |||
</noinclude> |
Revision as of 22:46, 19 September 2009
Please specify a rating. Template:Documentation