Difference between revisions of "Template:Star"

From SpiralKnights

Jump to: navigation, search
(Stars! Hooray!)
 
m (Protected "Template:Star" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''<big><big><big>{{#switch: {{{1|3}}}|1=▪▫▫▫▫|2=▪▪▫▫▫|3=▪▪▪▫▫|4=▪▪▪▪▫|5=▪▪▪▪▪}}</big></big></big>'''<noinclude>
+
<big>{{#switch: {{{1|3}}}
 
+
|0=<font color="#{{{color|000000}}}">☆☆☆☆☆</font>
'''This computer doesn't render stars, so I'll replace them later. But for now, this is relatively easy to use! Just insert <nowiki>{{stars|#}}</nowiki> and the number of stars will appear out of five. For example, <nowiki>{{stars|4}}</nowiki> will render as ▪▪▪▪▫!'''</noinclude>
+
|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>

Latest revision as of 20:27, 17 February 2013

★★★☆☆
[edit] [purge] 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}}

★★★☆☆

Personal tools