Difference between revisions of "Template:Rating"
From MansonWiki, the Marilyn Manson encyclopedia
m (collapsed?) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#vardefine:R|{{{1|0}}}}}{{#vardefine:M|{{{2|5}}}}}<span style="white-space:nowrap" title="{{#var:R}}/{{#var:M}} stars">{{#ifexpr:{{#var:R}}>=1 |
− | {{#vardefine:R|{{{1|0}}}}} | + | |
− | {{#vardefine:M|{{{2|5}}}}} | + | |
− | <span style="white-space:nowrap" title="{{#var:R}}/{{#var:M}} stars">{{#ifexpr:{{#var:R}}>=1 | + | |
|[[File:Star full.png|{{#ifexpr:{{#var:M}}>6|7|11}}px|link=|{{#var:R}}/{{#var:M}} stars]]{{Loop15 | |[[File:Star full.png|{{#ifexpr:{{#var:M}}>6|7|11}}px|link=|{{#var:R}}/{{#var:M}} stars]]{{Loop15 | ||
|{{#expr:floor{{#var:R}}-1}} | |{{#expr:floor{{#var:R}}-1}} | ||
Line 16: | Line 13: | ||
|{{#expr:{{#var:M}}-ceil{{#var:R}}{{#ifexpr:{{#var:R}}=0|-1}}}} | |{{#expr:{{#var:M}}-ceil{{#var:R}}{{#ifexpr:{{#var:R}}=0|-1}}}} | ||
|[[File:Star empty.png|{{#ifexpr:{{#var:M}}>6|7|11}}px|link=|alt=]] | |[[File:Star empty.png|{{#ifexpr:{{#var:M}}>6|7|11}}px|link=|alt=]] | ||
− | }}</span> | + | }}</span></includeonly> |
− | </includeonly> | + |