Jump to content

Template:Qualityprice/doc: Difference between revisions

From Stardew Valley Wiki
imported>Vg-tal
→Usage: iridium parameter
imported>Vg-tal
Line 24: Line 24:
<pre>
<pre>
{{Qualityprice|Pumpkin|100}}
{{Qualityprice|Pumpkin|100}}
</pre>


{{Qualityprice|Pumpkin|100}}


<pre>
{{Qualityprice|Leek|60|iridium}}
{{Qualityprice|Leek|60|iridium}}
</pre>
</pre>
{{Qualityprice|Pumpkin|100}}


{{Qualityprice|Leek|60|iridium}}
{{Qualityprice|Leek|60|iridium}}
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 01:01, 6 October 2016

Description

This template is used to provide a template that takes the base cost of each item, calculates the silver and gold quality costs, and displays it in a table. The cost calculation is silver=(basecost)*1.25 and gold=(basecost)*1.50. It always rounds down to the nearest whole number.

Note that this intentionally doesn't show the money icon as to not clutter the page with multiple icons.

Additionally, a sortkey is provided allowing correct sorting in tables where a column contains multiple instances of this template.

Usage

This template can be used by entering the following onto a relevant page.

{{Qualityprice|item name|item base cost|iridium quality}}

parameters

item name

This parameter accepts an item name.

item base cost

This parameter accepts the item's base cost.

iridium quality

If this parameter exist, iridium quality will be added.

Example

{{Qualityprice|Pumpkin|100}}

data-sort-value="100"

100g
125g
150g
200g
{{Qualityprice|Leek|60|iridium}}

data-sort-value="60"

60g
75g
90g
120g