Template talk:Stars
From WikiEducator
Documentation
Purpose
{{stars}} —To display star ratings within the professional reviews section of Album infobox.
Usage
This template accepts up to 10 unnamed parameters having one of the values shown below:
Symbol | Result | Description |
---|---|---|
* | Full star | |
¾ | Three quarters star | |
½ | Half star | |
¼ | Quarter star | |
- | No star |
The size of the stars in pixels can be given using the named parameter size. The default size is 11 pixels. An alternative text for the images may be supplied with the parameter alt. If no alternative text is given, the star symbols are concatenated to form an alt. text like "***--".
Not all users can easily type the vulgar fraction symbols. Instead, one may copy and paste them from the table above, or copy the following code and edit as needed:
{{stars|*|¾|½|¼|-}}
Example
Code | Result |
---|---|
{{stars|*}} | |
{{stars|*|*|*}} | |
{{stars|*|*|*|*|*}} | |
{{stars|-|-|-|-|-}} | |
{{stars|*|*|½|-|-}} | |
{{stars|*|*|*|*|*|*|*|*|*|*}} | |
{{stars|size=25|alt=(1/3)|*|-|-}} | |
{{stars|size=25|*|¾|½|¼|-}} |
See also
History
- Created
- Ilmari Karonen (talk) 23:39, 5 January 2006 (UTC)
Discussion
Contents
Old discussions
- [View source↑]
- [History↑]
There are no threads on this page yet.