Template:Recipe/doc

Revision as of 19:05, April 5, 2025 by PolyFox (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description edit

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

Parameters edit

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 edit

Template Call Result
{{Recipe|Bread}} <templatestyles src="Template:Overlayimg/styles.css" />
{{Recipe|Complete Breakfast|48}} <templatestyles src="Template:Overlayimg/styles.css" />
{{Recipe|Barrel Brazier|36|center}} <templatestyles src="Template:Overlayimg/styles.css" />
{{Recipe|Wicked Statue|32|center}} <templatestyles src="Template:Overlayimg/styles.css" />