Jump to content

Template:Recipe: Difference between revisions

From Stardew Valley Wiki
imported>Katzeus
mNo edit summary
imported>Katzeus
mNo edit summary
Line 4: Line 4:
|48=qualitycontainer
|48=qualitycontainer
|#default=qualitycontainer
|#default=qualitycontainer
}}"><div id="qualityimage"><div id="recipeimage">[[File:{{{1|}}}.png|{{#if:{{{2|}}}|{{{2|}}}px{{!}}|}}|center|link=]]</div>[[File:Recipe_Overlay.png|link=]]</div></div></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
}}" style="margin:auto;"><div id="qualityimage"><div id="recipeimage">[[File:{{{1|}}}.png|{{#if:{{{2|}}}|{{{2|}}}px{{!}}|}}|link=]]</div>[[File:Recipe_Overlay.png|link=]]</div></div></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 21:26, 6 March 2016

Description

This template overlays a recipe icon over an image. The background image will be rendered semi-transparent.

Parameters

Parameter Notes
First (unnamed) parameter Name of background image (without extension such as .png)
Second (unnamed) parameter Desired display width of background image (do not include "px")
Valid values: 48, 36, 32, 24 (other values will be accepted, but may produce undesired results)
Default value: 24
Third (unnamed) parameter center, if the image is to be displayed in a table cell. Adding this parameter will center the image in the cell.

Examples

Template Call Result
{{Recipe|Bread}}
[[File:Bread.png
link=]]
{{Recipe|Complete Breakfast|48}}
48px link=
{{Recipe|Barrel Brazier|36|center}}
36px link=
{{Recipe|Wicked Statue|32|center}}
32px link=