.
Template:Rating: Difference between revisions
Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search
Red marquis (talk | contribs) mNo edit summary |
Red marquis (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
< | {{#if:{{{1|}}} | ||
|{{#if:{{{2|}}} | |||
<noinclude> | |<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]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 22:08, 22 December 2010
{{#if:
|{{#if:
|{{#ifexpr:{{{1}}}>=1
|
{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>000|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>001|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>002|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>003|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>004|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>005|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>006|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>007|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>008|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>009|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>010|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>011|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>012|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>013|
}}{{#ifexpr:{{#expr:floor{{{1}}}-1}}
>014|
}}
|{{#ifexpr:{{{1}}}>0
|
|
}}
}}{{#ifexpr:{{{1}}}>1and{{{1}}}!=ceil{{{1}}}
|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>000|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>001|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>002|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>003|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>004|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>005|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>006|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>007|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>008|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>009|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>010|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>011|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>012|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>013|
}}{{#ifexpr:{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}
>014|
}}
|Please specify a rating.
}}
|Please specify a rating.
}}
