Difference between revisions of "Template:Qualityprice/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
m
Line 20: Line 20:
  
 
{{Qualityprice|Pumpkin|100}}
 
{{Qualityprice|Pumpkin|100}}
 
==Parameters==
 
 
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 08:41, 5 March 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.

Usage

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

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

parameters

item name

This parameter accepts an item name.

item base cost

This parameter accepts the item's base cost.

Example

{{Qualityprice|Pumpkin|100}}

data-sort-value="100"

Pumpkin.png
100g
Pumpkin.png
Silver Quality Icon.png
125g
Pumpkin.png
Gold Quality Icon.png
150g
Pumpkin.png
Iridium Quality Icon.png
200g