Jump to content

Template:RecipeRow: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
Created page with "<includeonly> |- |{{#if:{{{image|}}} | [[File:{{{image|}}}.png]] | [[File:{{PAGENAME}}.png]]}} |{{#if:{{{name|}}} | [[{{{name|}}}]] | [[{{PAGENAME}}]] }} |{{{description|}}} |..."
 
imported>Margotbean
No edit summary
Line 5: Line 5:
|{{{description|}}}
|{{{description|}}}
|{{{ingredients|}}}
|{{{ingredients|}}}
|[[File:Energy.png|24px|link=]] {{#expr:ceil({{{edibility|}}}*2.5)}}
|data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}}[[File:Energy.png|24px|link=]] {{#expr:ceil({{{edibility|}}}*2.5)}}
|[[File:Health.png|24px|link=]] {{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}}
|data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}}[[File:Health.png|24px|link=]] {{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}}
{{#if:{{{buff|}}} | {{!}}{{{buff|}}} |}} {{#if:{{{duration|}}} | {{Duration|{{{duration|}}}}} | }}
{{#if:{{{buff|}}} | {{!}}{{{buff|}}} |}} {{#if:{{{duration|}}} | {{Duration|{{{duration|}}}}} | }}
|{{{recipe|}}}
|{{{recipe|}}}
|{{Price|{{{sellprice|}}}}}
|data-sort-value="{{padleft:{{{sellprice|}}}|4}}"{{!}}{{Price|{{{sellprice|}}}}}
|-</includeonly>
|-</includeonly>
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 10:42, 14 April 2017

Description

This template creates a row in a recipe 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}}
{{:Autumn's Bounty|RecipeRow}}
{{:Fried Egg|RecipeRow}}
{{Recipes|footer}}

Example

Image Name Description Ingredients Energy / Health Buff(s) Buff Duration Recipe Source(s) Sell Price
File:Autumn's Bounty.png.png Autumn's Bounty A taste of the season. Yam (1) Pumpkin (1) 220 99 Foraging (+2) Defense (+2) 7m 41s

Demetrius (Mail - 7+ )

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

Other Languages

In languages other than English, the name of the recipe page needs to be in the native language, as shown below:

German Example

{{Recipes|header}}
{{:Herbstfülle|RecipeRow}}
{{:Spiegelei|RecipeRow}}
{{Recipes|footer}}

Japanese Example

{{Recipes|header}}
{{:秋のめぐみ|RecipeRow}}
{{:目玉焼き|RecipeRow}}
{{Recipes|footer}}