Difference between revisions of "User:Zamiel/GoldToEnergyRow"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> This is a template for the Gold to Energy Ratios page. * The first argument is the name of the item. * The second argument i...")
 
 
Line 19: Line 19:
  
 
</noinclude><includeonly><tr style="background-color: {{#ifexpr:{{{3|}}}=0|gray|{{#ifexpr:{{User:Zamiel/GetRatio|{{{2|}}}|{{{3|}}}|{{{4|}}}}}<=2|green|yellow}}}};">
 
</noinclude><includeonly><tr style="background-color: {{#ifexpr:{{{3|}}}=0|gray|{{#ifexpr:{{User:Zamiel/GetRatio|{{{2|}}}|{{{3|}}}|{{{4|}}}}}<=2|green|yellow}}}};">
<!-- Image                 --><td>{{Quality|{{{1|}}}|{{{4|}}}}}</td>
+
<!-- Image --><td>{{Quality|{{{1|}}}|{{{4|}}}}}</td>
<!-- Name                 --><td>[[{{{1|}}}]]</td>
+
<!-- Name   --><td>[[{{{1|}}}]]</td>
<!-- Gold                 --><td>{{User:Zamiel/GetGold|{{{2|}}}|{{{4|}}}}}g</td>
+
<!-- Gold   --><td>{{User:Zamiel/GetGold|{{{2|}}}|{{{4|}}}}}g</td>
<!-- Energy               --><td>{{User:Zamiel/GetEnergy|{{{3|}}}|{{{4|}}}}}</td>
+
<!-- Energy --><td>{{User:Zamiel/GetEnergy|{{{3|}}}|{{{4|}}}}}</td>
<!-- Ratio                 --><td>{{User:Zamiel/GetRatio|{{{2|}}}|{{{3|}}}|{{{4|}}}}}</td>{{#ifeq:
+
<!-- Ratio --><td>{{User:Zamiel/GetRatio|{{{2|}}}|{{{3|}}}|{{{4|}}}}}</td>{{#ifeq:
 
     {{{5|}}} | crop | <td><!-- Ratio w/ Tiller (10%) -->{{User:Zamiel/GetRatio|{{#expr:{{{2|}}}*1.1}}|{{{3|}}}|{{{4|}}}}}</td>
 
     {{{5|}}} | crop | <td><!-- Ratio w/ Tiller (10%) -->{{User:Zamiel/GetRatio|{{#expr:{{{2|}}}*1.1}}|{{{3|}}}|{{{4|}}}}}</td>
 
}}{{#ifeq:
 
}}{{#ifeq:

Latest revision as of 20:08, 1 January 2022

This is a template for the Gold to Energy Ratios page.

  • The first argument is the name of the item.
  • The second argument is the base sell price (e.g. "sellprice").
  • The third argument is the base edibility (e.g. "edibility").
  • The forth argument is the quality (e.g. "normal", "silver", "gold", or "iridium").
  • The fifth argument is the type of item (e.g. "crop", "fish", or "normalonly"). This is an optional argument.

Example:

{{User:Zamiel/GoldToEnergyRow|Parsnip|35|10|normal|crop}}

Results in:

Image Name Gold Energy RatioRatio w/ Tiller (10%)
Parsnip.png
Parsnip 35g 25 1.41.54