Jump to content

Template:Quality/doc: Difference between revisions

From Stardew Valley Wiki
imported>Mndarrr
No edit summary
imported>Margotbean
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Description==
==Description==
This template is used to insert a quality star over an image.
This template overlays a quality star icon (silver, gold, or iridium) over an image.  


==Usage==
==Parameters==
This template can be used by entering the following onto a relevant page.
{|class="wikitable"
 
|-
<pre>
!Parameter
{{Quality
!Notes
|image=Image name assuming the image is a .png (image)
|-
|quality=denotes the star color (silver/gold)
|First (unnamed) parameter
|size=size of the image (24/32/48)
|Name of background image (without extension such as .png)
}}
|-
</pre>
|Second (unnamed) parameter
|Quality star to display<br />Valid values: normal, 0, silver, 1, gold, 2, iridium, 4
|-
|Third (unnamed) parameter
|Desired display width of background image (do not include "px")<br />Valid values: 48, 36, 32, 24 (other values will be accepted, but may produce undesired results)<br />Default value: 24
|-
|Fourth (unnamed) parameter
|<samp>center</samp>, if the image is to be displayed in a table cell. Adding this parameter will center the image in the cell.
|-
|}


==Examples==
==Examples==
<pre>{{Quality|Parsnip|silver|32}}</pre>
{|class="wikitable"
Result: {{Quality|Parsnip|silver|32}}
|-
<pre>{{Quality|Kale|gold|48}}</pre>
!Template Call
Result: {{Quality|Kale|gold|48}}
!Result
 
|-
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
|<code><nowiki>{{Quality|Parsnip|iridium}}</nowiki></code>
|{{Quality|Parsnip|iridium}}
|-
|<code><nowiki>{{Quality|Parsnip|silver|24|center}}</nowiki></code>
|{{Quality|Parsnip|silver|24|center}}
|-
|<code><nowiki>{{Quality|Sunfish|normal|36}}</nowiki></code>
|{{Quality|Sunfish|normal|36}}
|-
|<code><nowiki>{{Quality|Red Plate|gold|36|center}}</nowiki></code>
|{{Quality|Red Plate|gold|36|center}}
|-
|<code><nowiki>{{Quality|Beer|gold|48}}</nowiki></code>
|{{Quality|Beer|gold|48}}
|-
|<code><nowiki>{{Quality|Large Goat Milk ES|gold|32|center}}</nowiki></code>
|{{Quality|Large Goat Milk ES|gold|32|center}}
|-
|}<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 04:05, 14 February 2023

Description

This template overlays a quality star icon (silver, gold, or iridium) over an image.

Parameters

Parameter Notes
First (unnamed) parameter Name of background image (without extension such as .png)
Second (unnamed) parameter Quality star to display
Valid values: normal, 0, silver, 1, gold, 2, iridium, 4
Third (unnamed) parameter Desired display width of background image (do not include "px")
Valid values: 48, 36, 32, 24 (other values will be accepted, but may produce undesired results)
Default value: 24
Fourth (unnamed) parameter center, if the image is to be displayed in a table cell. Adding this parameter will center the image in the cell.

Examples

Template Call Result
{{Quality|Parsnip|iridium}}
{{Quality|Parsnip|silver|24|center}}
{{Quality|Sunfish|normal|36}}
{{Quality|Red Plate|gold|36|center}}
{{Quality|Beer|gold|48}}
{{Quality|Large Goat Milk ES|gold|32|center}}