Difference between revisions of "Template:FairPoints"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Adding special handling for cost=0)
(Adding Silver and Gold point calculations to point calculations table.)
Line 3: Line 3:
 
|[[File:{{{1}}}.png]]
 
|[[File:{{{1}}}.png]]
 
|[[{{{1}}}]]
 
|[[{{{1}}}]]
|{{#ifexpr: {{{2}}} > 0|{{price|{{{2}}}}}|Varies}}
+
|{{{2}}}
|{{#ifexpr: {{{2}}} <= 0|Varies|}}{{#ifexpr: {{{2}}} > 0 AND {{{2}}} < 20 |1|}}{{#ifexpr: {{{2}}} >= 20 AND {{{2}}} < 90 |2|}}{{#ifexpr: {{{2}}} >= 90 AND {{{2}}} < 200 |3|}}{{#ifexpr: {{{2}}} >= 200 AND {{{2}}} < 300 |4|}}{{#ifexpr: {{{2}}} >= 300 AND {{{2}}} < 400 |5|}}{{#ifexpr: {{{2}}} >= 400 |6|}}</includeonly>
+
|{{FairPointsValue|{{{2}}}}}
 +
 
 +
<!-- silver and gold values, if requested -->
 +
{{#ifeq: {{{3}}}|y|
 +
 
 +
{{!}}<!--silver value-->
 +
{{#iferror: {{{2}}} + 1
 +
|
 +
{{{2}}}
 +
|
 +
{{#ifexpr:
 +
{{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.50}}}}}} > 6 | 6 | {{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.50}}}}}}
 +
}}
 +
}}<!-- //end silver value -->
 +
 
 +
{{!}}<!--gold value-->
 +
{{#iferror: {{{2}}} + 1
 +
|
 +
{{{2}}}
 +
|
 +
{{#ifexpr:
 +
{{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.50}}}}}} > 6 | 6 | {{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.50}}}}}}
 +
}}
 +
}}<!-- //end gold value -->
 +
 
 +
|
 +
{{!}}—
 +
{{!}}
 +
}}<!-- //end gold/silver point values --><!--
 +
--></includeonly><noinclude>
 +
Creates a sortable table entry for a given item's value in the Stardew Valley Fair grange display.
 +
First argument is the item name, and the second argument is its value.
 +
The third argument is "y" if the item can have quality stars. It can be omitted or "n" to display dashes in the silver and gold columns.
 +
The point value for silver and gold items is calculated assuming that judging is based on the quality value of the item instead of the base value, i.e. silver items are worth (1 + points(1.25 * base)) instead of just (1 + points(base)).
 +
 
 +
{| class="wikitable sortable"
 +
!Image
 +
!Name
 +
!Value
 +
!Points
 +
!Silver
 +
!Gold
 +
{{FairPoints|Radish|60|y}}
 +
{{FairPoints|Pumpkin|320|y}}
 +
{{FairPoints|Egg|240|n}}
 +
{{FairPoints|Oil of Garlic|???|n}}
 +
|}
 +
 
 +
</noinclude>

Revision as of 18:05, 7 April 2016

Creates a sortable table entry for a given item's value in the Stardew Valley Fair grange display. First argument is the item name, and the second argument is its value. The third argument is "y" if the item can have quality stars. It can be omitted or "n" to display dashes in the silver and gold columns. The point value for silver and gold items is calculated assuming that judging is based on the quality value of the item instead of the base value, i.e. silver items are worth (1 + points(1.25 * base)) instead of just (1 + points(base)).

Image Name Value Points Silver Gold
Radish.png Radish 60 Template:FairPointsValue

Expression error: Unexpected < operator.

Expression error: Unexpected < operator.

Pumpkin.png Pumpkin 320 Template:FairPointsValue

Expression error: Unexpected < operator.

Expression error: Unexpected < operator.

Egg.png Egg 240 Template:FairPointsValue
Oil of Garlic.png Oil of Garlic ??? Template:FairPointsValue