.
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 2: | Line 2: | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
|<span style="white-space:nowrap" title="{{{1}}}/{{{2}}} stars">{{#ifexpr:{{{1}}}>=1 | |<span style="white-space:nowrap" title="{{{1}}}/{{{2}}} stars">{{#ifexpr:{{{1}}}>=1 | ||
|[[Image:Star full. | |[[Image:Star full.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]]{{Loop15 | ||
|{{#expr:floor{{{1}}}-1}} | |{{#expr:floor{{{1}}}-1}} | ||
|[[File:Star full. | |[[File:Star full.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|alt=]] | ||
}} | }} | ||
|{{#ifexpr:{{{1}}}>0 | |{{#ifexpr:{{{1}}}>0 | ||
|[[Image:Star half. | |[[Image:Star half.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]] | ||
|[[Image:Star empty. | |[[Image:Star empty.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|{{{1}}}/{{{2}}} stars]] | ||
}} | }} | ||
}}{{#ifexpr:{{{1}}}>1and{{{1}}}!=ceil{{{1}}} | }}{{#ifexpr:{{{1}}}>1and{{{1}}}!=ceil{{{1}}} | ||
|[[Image:Star half. | |[[Image:Star half.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|alt=]] | ||
}}{{Loop15 | }}{{Loop15 | ||
|{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}} | |{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}} | ||
|[[Image:Star empty. | |[[Image:Star empty.png|{{#ifexpr:{{{2}}}>6|7|11}}px|link=|alt=]] | ||
}}</span> | }}</span> | ||
|Please specify a rating. | |Please specify a rating. | ||
Revision as of 21:49, 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.
}}
