Шаблон:Rating
{{#if:
|{{#ifexpr:{{{1}}}>=1
|

String Module Error: function rep expects a number as second parameter, received "{{#expr:floor{{{1}}}-1}}"
|{{#ifexpr:{{{1}}}>0
|
|
}}
}}{{#ifexpr:{{{1}}}>1and{{{1}}}<>ceil{{{1}}}
|Грешка при прављењу минијатуре:
}}{{#ifexpr:-1>ceil{{{1}}}
|String Module Error: function rep expects a number as second parameter, received "{{#expr:{{{2}}}-ceil{{{1}}}{{#ifexpr:{{{1}}}=0|-1}}}}"
}}{{#ifexpr:{{{1}}}-floor{{{1}}}<>0and{{{1}}}-floor{{{1}}}<>.5
|{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}
}}
|Молимо унесите оцену.{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }} }}
{{#ifeq:rating |док
|
{{#ifeq:show |show
|| Ово је документациона подстраница за Шаблон:Rating. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:Rating
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
This template is designed to provide an image rating system, defaulting to stars. The template accepts ratings of up to ten, with more than six appearing reduced in size.
When to use this template
The template works with whole and half ratings. Other rating fractions will be rounded and the page on which the template resides will be inserted into the maintenance category Category:Pages with incorrect use of Rating template.
Please only use this template if the rating was originally expressed with the images used. For example, if a reviewer awards something a rating of "4" (expressed in digits not stars) on a scale of 5, you should simply write it as "4" or "4/5" in your article, depending on how it is presented by the source. Do not use {{rating|4|5}} where the source does not use stars, because it is inaccurate and misleading. Note that ratings on a scale of 10 can be hard to read if expressed visually with images.
Default parameters
These are the only parameters you need to show star ratings, the default symbols.
- The first unnamed parameter is the number of the rating received.
- The second unnamed parameter is optional, and is the maximum possible for the rating system. This will show empty or blank elements for the remainder above the rating, and changes the text in the tooltip to add "/x".
- Examples
| {{#if:4 | {{#ifexpr:4>=1 | {{#ifexpr:4>0 | Грешка при прављењу минијатуре: | }}звездица
}}
}}{{#ifexpr:4>1and4<>ceil4
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:5>ceil4
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:5-ceil4{{#ifexpr:4=0|-1}}}}"
}}{{#ifexpr:4-floor4<>0and4-floor4<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}}
}} || | |||
| {{#if:0 | {{#ifexpr:0>=1 | {{#ifexpr:0>0 | Грешка при прављењу минијатуре: | }}звездица
}}
}}{{#ifexpr:0>1and0<>ceil0
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:3>ceil0
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:3-ceil0{{#ifexpr:0=0|-1}}}}"
}}{{#ifexpr:0-floor0<>0and0-floor0<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}}
}} || | |||
| {{#if:3.5 | {{#ifexpr:3.5>=1 | {{#ifexpr:3.5>0 | Грешка при прављењу минијатуре: | }}звездица
}}
}}{{#ifexpr:3.5>1and3.5<>ceil3.5
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:6>ceil3.5
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:6-ceil3.5{{#ifexpr:3.5=0|-1}}}}"
}}{{#ifexpr:3.5-floor3.5<>0and3.5-floor3.5<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}}
}} || | |||
| {{#if:8 | {{#ifexpr:8>=1 | {{#ifexpr:8>0 | Грешка при прављењу минијатуре: | }}звездица
}}
}}{{#ifexpr:8>1and8<>ceil8
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:8>ceil8
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:8-ceil8{{#ifexpr:8=0|-1}}}}"
}}{{#ifexpr:8-floor8<>0and8-floor8<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}}
}} || | |||
| {{#if:5 | {{#ifexpr:5>=1 | {{#ifexpr:5>0 | Грешка при прављењу минијатуре: | }}звездица
}}
}}{{#ifexpr:5>1and5<>ceil5
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:10>ceil5
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:10-ceil5{{#ifexpr:5=0|-1}}}}"
}}{{#ifexpr:5-floor5<>0and5-floor5<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}}
}} || | |||
| {{#if:3 | {{#ifexpr:3>=1 | {{#ifexpr:3>0 | Грешка при прављењу минијатуре: | }}звездица
}}
}}{{#ifexpr:3>1and3<>ceil3
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:-1>ceil3
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:{{{2}}}-ceil3{{#ifexpr:3=0|-1}}}}"
}}{{#ifexpr:3-floor3<>0and3-floor3<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}}
}} || |
Extra parameters
These parameters are optional, and can change the appearance of the rating or its tooltip.
|{{SAFESUBST:#if:score|score=}}is used to change the alt text when mousing over the rating, in the case where "x/x" is not accurate or more information can be added.|{{SAFESUBST:#if:full|full=}},|{{SAFESUBST:#if:half|half=}}and|{{SAFESUBST:#if:empty|empty=}}are used to change the images from the default stars to images you specify for each case. You don't have to fill out parameters for images you won't use, but omitting ones you will use results in stars being used for the unspecified portion (e.g.{{{{#ifeq:rating|rating|rating|rating}}{{#if:2||2|}}{{#if:5||5|}}{{#if:full=Disc Plain red.svg||full=Disc Plain red.svg|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}makes {{#if:2
|{{#ifexpr:2>=1
| |{{#ifexpr:2>0
| }}
}}{{#ifexpr:2>1and2<>ceil2
|Грешка при прављењу минијатуре:
}}{{#ifexpr:5>ceil2
|String Module Error: function rep expects a number as second parameter, received "{{#expr:5-ceil2{{#ifexpr:2=0|-1}}}}"
}}{{#ifexpr:2-floor2<>0and2-floor2<>.5
|{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}
}}
|Молимо унесите оцену.{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }} }}). Just the image name should be used without prepending "File:" or "Image:".
- Important: Image files must be public domain only, as they are not linked back to their image description pages.
|{{SAFESUBST:#if:rating|rating=}}should be used to name the new rating symbol if you change the images.|{{SAFESUBST:#if:rating-plural|rating-plural=}}accepts non-standard pluralization in the tooltip to be used instead of adding "s" in simple cases. For instance, you could use this to change the default "thumb ups" to "thumbs up".|{{SAFESUBST:#if:size|size=}}can be used to adjust the width at which the rating symbols display. The template defaults to symbols 11 pixels wide for up to five images and 7 pixels wide for more than five. Use the amount of pixels with "px" appended (i.e. "15px" not simply "15").
- Examples
| {{#if:3 | {{#ifexpr:3>=1 | {{#ifexpr:3>0 | Грешка при прављењу минијатуре: | 3/5 stars in a 0–5 star scale
}}
}}{{#ifexpr:3>1and3<>ceil3
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:5>ceil3
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:5-ceil3{{#ifexpr:3=0|-1}}}}"
}}{{#ifexpr:3-floor3<>0and3-floor3<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
rating|rating|rating}}{{#if:3||3|}}{{#if:5||5|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|score|score}}|score}}=3/5 stars in a 0–5 star scale||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|score|score}}|score}}=3/5 stars in a 0–5 star scale|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}} | |||
| {{#if:3 | {{#ifexpr:3>=1 | Грешка при прављењу минијатуре: String Module Error: function rep expects a number as second parameter, received "{{#expr:floor3-1}}" | {{#ifexpr:3>0 | }}звездица
}}
}}{{#ifexpr:3>1and3<>ceil3
|
}}{{#ifexpr:5>ceil3
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:5-ceil3{{#ifexpr:3=0|-1}}}}"
}}{{#ifexpr:3-floor3<>0and3-floor3<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
rating|rating|rating}}{{#if:3||3|}}{{#if:5||5|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|size|size}}|size}}=15px||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|size|size}}|size}}=15px|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}} | |||
| {{#if:4 | {{#ifexpr:4>=1 | }}medalString Module Error: function rep expects a number as second parameter, received "{{#expr:floor4-1}}" | {{#ifexpr:4>0 | Грешка при прављењу минијатуре: | }}medal
}}
}}{{#ifexpr:4>1and4<>ceil4
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:5>ceil4
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:5-ceil4{{#ifexpr:4=0|-1}}}}"
}}{{#ifexpr:4-floor4<>0and4-floor4<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
rating|rating|rating}}{{#if:4||4|}}{{#if:5||5|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Gold medal icon blank.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Gold medal icon blank.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=Silver medal icon blank.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=Silver medal icon blank.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=medal||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=medal|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}} | ||
| {{#if:3.5 | {{#ifexpr:3.5>=1 | }}markString Module Error: function rep expects a number as second parameter, received "{{#expr:floor3.5-1}}" | {{#ifexpr:3.5>0 | }}mark | }}mark
}}
}}{{#ifexpr:3.5>1and3.5<>ceil3.5
|
Датотека:U+25D0.svg
}}{{#ifexpr:5>ceil3.5
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:5-ceil3.5{{#ifexpr:3.5=0|-1}}}}"
}}{{#ifexpr:3.5-floor3.5<>0and3.5-floor3.5<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
rating|rating|rating}}{{#if:3.5||3.5|}}{{#if:5||5|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=U+25CF.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=U+25CF.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|half|half}}|half}}=U+25D0.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|half|half}}|half}}=U+25D0.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=U+25CB.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=U+25CB.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=mark||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=mark|}}{{#if:||{{{8}}}|}}}} | ||
| {{#if:2.5 | {{#ifexpr:2.5>=1 | }}markString Module Error: function rep expects a number as second parameter, received "{{#expr:floor2.5-1}}" | {{#ifexpr:2.5>0 | }}mark | }}mark
}}
}}{{#ifexpr:2.5>1and2.5<>ceil2.5
|
Датотека:Cercle rouge 100%.svg
}}{{#ifexpr:5>ceil2.5
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:5-ceil2.5{{#ifexpr:2.5=0|-1}}}}"
}}{{#ifexpr:2.5-floor2.5<>0and2.5-floor2.5<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
rating|rating|rating}}{{#if:2.5||2.5|}}{{#if:5||5|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Disc Plain red.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Disc Plain red.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|half|half}}|half}}=Cercle rouge 100%.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|half|half}}|half}}=Cercle rouge 100%.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=Plain Disc 20% grey.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=Plain Disc 20% grey.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=mark||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=mark|}}{{#if:||{{{8}}}|}}}} | ||
| {{#if:2 | {{#ifexpr:2>=1 | Грешка при прављењу минијатуре: String Module Error: function rep expects a number as second parameter, received "{{#expr:floor2-1}}" | {{#ifexpr:2>0 | Грешка при прављењу минијатуре: | }}thumbs up
}}
}}{{#ifexpr:2>1and2<>ceil2
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:-1>ceil2
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:{{{2}}}-ceil2{{#ifexpr:2=0|-1}}}}"
}}{{#ifexpr:2-floor2<>0and2-floor2<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
rating|rating|rating}}{{#if:2||2|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Symbol thumbs up.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Symbol thumbs up.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=thumb up||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=thumb up|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating-plural|rating-plural}}|rating-plural}}=thumbs up||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating-plural|rating-plural}}|rating-plural}}=thumbs up|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}} | ||
| {{#if:2 | {{#ifexpr:2>=1 | Грешка при прављењу минијатуре: String Module Error: function rep expects a number as second parameter, received "{{#expr:floor2-1}}" | {{#ifexpr:2>0 | Грешка при прављењу минијатуре: | Грешка при прављењу минијатуре:
}}
}}{{#ifexpr:2>1and2<>ceil2
|
Грешка при прављењу минијатуре:
}}{{#ifexpr:6>ceil2
|
String Module Error: function rep expects a number as second parameter, received "{{#expr:6-ceil2{{#ifexpr:2=0|-1}}}}"
}}{{#ifexpr:2-floor2<>0and2-floor2<>.5
|
{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
Молимо унесите оцену.{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}} }} |
rating|rating|rating}}{{#if:2||2|}}{{#if:6||6|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Symbol thumbs up.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|full|full}}|full}}=Symbol thumbs up.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=Symbol thumbs down.svg||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|empty|empty}}|empty}}=Symbol thumbs down.svg|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=thumb up||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating|rating}}|rating}}=thumb up|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating-plural|rating-plural}}|rating-plural}}=thumbs up||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|rating-plural|rating-plural}}|rating-plural}}=thumbs up|}}{{#if:{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|score|score}}|score}}=2 thumbs up, but 4 thumbs down, giving this a rating of 2/6||{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|score|score}}|score}}=2 thumbs up, but 4 thumbs down, giving this a rating of 2/6|}}}} |
TemplateData
TemplateData за Rating
}} <templatedata> {
"description": "A template to provide an image rating system",
"params": {
"1": {
"label": "Received",
"description": "Number of stars (or other images) received",
"type": "number",
"required": true
},
"2": {
"label": "Possible",
"description": "Total possible stars (or other images; defaults to parameter 1)",
"type": "number",
"required": false
},
"score": {
"label": "Score",
"description": "Text displayed when hovering over the rating",
"type": "string",
"required": false
},
"full": {
"label": "Full alternate",
"description": "Alternate image for a full star, without the File: prefix",
"type": "string",
"default": "Star full.svg",
"required": false
},
"half": {
"label": "Half alternate",
"description": "Alternate image for a half star, without the File: prefix",
"type": "string",
"default": "Star half.svg",
"required": false
},
"empty": {
"label": "Empty alternate",
"description": "Alternate image for an empty star, without the File: prefix",
"type": "string",
"default": "Star empty.svg",
"required": false
},
"rating": {
"label": "Rating symbol",
"description": "Unit for alternate images",
"type": "string",
"default": "star",
"required": false
},
"rating-plural": {
"label": "Plural rating symbol",
"description": "Plural form of the rating parameter if it is not just adding an \"s\"",
"type": "string",
"required": false
},
"size": {
"label": "Images size",
"description": "Size of the images, in pixels",
"type": "string",
"default": "11px",
"required": false
}
}
} </templatedata>
See also
- {{Rating-Christgau}} (for ratings by music critic Robert Christgau)
| Овај шаблон употребљава замршене функције викисинтаксе.
Саветује Вам се да се упознате са поставкама за шаблон и парсер функцијама пре уређивања. Ако Ваша измена проузрокује неочекиване проблеме, молимо да је вратите што је пре могуће, зато што се овај шаблон вероватно користи на великом броју страница. Имајте на уму да можете да проводите експерименте и да требате да тестирате сваку евентуалну измену, или на {{#switch: {{#ifexist:Шаблон:Rating/sandbox |sandbox | {{#ifexist:Шаблон:Rating/Sandbox |Sandbox | {{#ifexist:Шаблон:Rating/test sandbox|test sandbox| {{#ifexist:Шаблон:Rating/Test sandbox|Test sandbox| {{#ifexist:Шаблон:Rating/test |test | {{#ifexist:Шаблон:Rating/Test |Test | {{#ifexist:Шаблон:Rating/песак |песак | {{#ifexist:Шаблон:Rating/Песак |Песак | {{#ifexist:Шаблон:Rating/тест песак |тест песак | {{#ifexist:Шаблон:Rating/Тест песак |Тест песак | {{#ifexist:Шаблон:Rating/тест |тест | {{#ifexist:Шаблон:Rating/Тест |Тест | }} }} }} }} }} }} }} }} }} }} }} }} | sandbox = подстраници /sandbox | Sandbox = подстраници /Sandbox | test sandbox = подстраници /test sandbox | Test sandbox = подстраници /Test sandbox | test = подстраници /test | Test = подстраници /Test | песак = подстраници /песак | Песак = подстраници /Песак | тест песак = подстраници /тест песак | Тест песак = подстраници /Тест песак | тест = подстраници /тест | Тест = подстраници /Тест | #default = страници Песак за шаблоне}} или на сопственој корисничкој подстраници. |