Template:Quality/doc

This template displays an image with a superimposed quality star, i.e., a star colored to match the item's quality (Silver, Gold, Iridium).

Syntax
Basic usage:

Complete argument list:

Parameters
There are two unnamed, required parameters, item_name and quality. All other parameters are named and optional. Default value for all arguments is empty, unless specified otherwise.


 * item_name
 * First unnamed parameter, required
 * The name of an item, or more specifically the name of the image (without .png)
 * Note that there must be no spaces following the item_name -- the "|" symbol must come immediately afterwards, or the template will fail (due to quirks of how mediawiki templates process arguments)
 * There is technically a default value, Blank_Icon, solely to make the template not generate errors in the default display on other languages.
 * The template will automatically handle certain language-specific images. Namely in French, Japanese, Spanish, and Portuguese, all 4 Milk icons will be replaced with language-appropriate ones (where the "M" for cow milk or "G" for goat milk are replaced with more appropriate letters). The coding intentionally avoids using the expensive ifexist parser function because this template is frequently used dozens of times on a page. As a result, only specific known cases are recognized.


 * quality
 * Second unnamed parameter, required
 * Possible values are Silver, Gold, Iridium. Not case-sensitive. All other values are ignored (i.e., no star is displayed). If missing, no star is displayed.
 * On other languages, the translated terms are also recognized.


 * size=px
 * Size of icons in pixels. Default value is 24.
 * Standard values are 24, 32, and 48. Other values will work, but the size of the overlay region is always one of the standard values (e.g., there may be extra white space around the image).
 * Only the number should be provided (do not append "px").
 * For backwards compatibility, the size can also be provided as a third unnamed argument (e.g.,  ).

Examples
Result: Result: Result: Result: