Jump to content

Template:RecipeRow/NoBuffs: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
Created page with "<includeonly> |- |[[File:{{{image|}}}|center]] |{{#if:{{{name|}}} | [[{{{name|}}}]] | [[{{PAGENAME}}]] }} |{{{description|}}} |{{{ingredients|}}} {{#if:{{{edibility|}}} | {{!}..."
 
imported>Margotbean
+health parameter
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|{{{description|}}}
|{{{description|}}}
|{{{ingredients|}}}
|{{{ingredients|}}}
{{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}}[[File:Energy.png|24px|link=]] {{#expr:ceil({{{edibility|}}}*2.5)}} | {{!}}style="text-align: center;"{{!}}N/A }}
{{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}}[[File:Energy.png|24px|link=]] {{#expr:ceil({{{edibility|}}}*2.5)}}<br />[[File:Health.png|24px|link=]] {{#if:{{{health|}}}|{{{health|}}}|{{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}}}}| {{!}}style="text-align: center;"{{!}}N/A}}
{{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}}[[File:Health.png|24px|link=]] {{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}} | {{!}}style="text-align: center;"{{!}}N/A }}
|{{{recipe|}}}
|{{{recipe|}}}
|data-sort-value="{{padleft:{{{sellprice|}}}|4}}"{{!}}{{Price|{{{sellprice|}}}}}
|data-sort-value="{{padleft:{{{sellprice|}}}|4}}"{{!}}{{Price|{{{sellprice|}}}}}
|-</includeonly>
|-</includeonly>
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Latest revision as of 21:25, 28 May 2021

This template is a derivation of Template:RecipeRow, which creates a row in a recipe table. This template omits the "Buff(s)" and "Duration" columns in the table.

It requires transclusion tags in the infobox on the page to be included. For an example, please see Template:Infobox cooking. For information on transclusion tags, please see https://www.mediawiki.org/wiki/Transclusion

Credit to Lilly for creating the sandbox template.

This template is intended to be used in conjunction with Template:Recipes, which provides the table header and footer, as shown:

{{Recipes|header|hide=buff,duration}}
{{:Autumn's Bounty|RecipeRow/NoBuffs}}
{{:Fried Egg|RecipeRow/NoBuffs}}
{{Recipes|footer}}

Example

Image Name Description Ingredients Energy / Health Recipe Source(s) Sell Price
Autumn's Bounty A taste of the season. Yam (1) Pumpkin (1) 220
99

Demetrius (Mail - 7+ )

data-sort-value="350">350g
Fried Egg Sunny-side up. Egg (1) 50
22
Starter data-sort-value="35">35g