Difference between revisions of "Template:Star"
From SpiralKnights
m (Switch to {{documentation}}) |
m (Test color) |
||
Line 1: | Line 1: | ||
− | <big>{{#switch: {{{1|3}}}|0=☆☆☆☆☆|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|☆☆☆☆☆=☆☆☆☆☆|★☆☆☆☆=★☆☆☆☆|★★☆☆☆=★★☆☆☆|★★★☆☆=★★★☆☆|★★★★☆=★★★★☆|★★★★★=★★★★★}}</big><noinclude>{{documentation}}</noinclude> | + | <big>{{#switch: {{{1|3}}} |
+ | |0=<font color="#{{{color|000000}}}">☆☆☆☆☆</font> | ||
+ | |1=<font color="#{{{color|000000}}}">★☆☆☆☆</font> | ||
+ | |2=<font color="#{{{color|000000}}}">★★☆☆☆</font> | ||
+ | |3=<font color="#{{{color|000000}}}">★★★☆☆</font> | ||
+ | |4=<font color="#{{{color|000000}}}">★★★★☆</font> | ||
+ | |5=<font color="#{{{color|000000}}}">★★★★★</font> | ||
+ | |☆☆☆☆☆=<font color="#{{{color|000000}}}">☆☆☆☆☆</font> | ||
+ | |★☆☆☆☆=<font color="#{{{color|000000}}}">★☆☆☆☆</font> | ||
+ | |★★☆☆☆=<font color="#{{{color|000000}}}">★★☆☆☆</font> | ||
+ | |★★★☆☆=<font color="#{{{color|000000}}}">★★★☆☆</font> | ||
+ | |★★★★☆=<font color="#{{{color|000000}}}">★★★★☆</font> | ||
+ | |★★★★★=<font color="#{{{color|000000}}}">★★★★★</font> | ||
+ | }}</big><noinclude>{{documentation}}</noinclude> |
Revision as of 13:56, 15 January 2011
★★★☆☆[edit] [ ] Template documentation
This template is for graphically showing the star rating of items. It has an optional variable to choose the color of the stars.
Usage
To use this template simply put {{star|#}} and replace # with the number of stars.
Example:
{{star|3}}
will render as ★★★☆☆
Optional color example:
{{star|3|color=6cb0b9}}
★★★☆☆
The above documentation is transcluded from Template:Star/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |