Difference between revisions of "Template:Recipe/doc"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) (update) |
||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | This template | + | This template overlays a recipe icon over an image. The background image will be rendered semi-transparent. |
− | == | + | ==Parameters== |
− | + | {|class="wikitable" | |
− | + | |- | |
− | + | !Parameter | |
− | + | !Notes | |
− | |image | + | |- |
− | | | + | |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")<br />Valid values: 48, 36, 32, 24 (other values will be accepted, but may produce undesired results)<br />Default value: 24<br /><span style="font-size: smaller;">''Note that this is a change from the previous version of this template, where the default value was 48''</span> | ||
+ | |- | ||
+ | |Third (unnamed) parameter | ||
+ | |<samp>center</samp>, if the image is to be displayed in a table cell. Adding this parameter will center the image in the cell. | ||
+ | |- | ||
+ | |} | ||
==Examples== | ==Examples== | ||
− | < | + | {|class="wikitable" |
− | + | |- | |
− | < | + | !Template Call |
− | + | !Result | |
− | + | |- | |
− | <includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | + | |<code><nowiki>{{Recipe|Bread}}</nowiki></code> |
+ | |{{Recipe|Bread}} | ||
+ | |- | ||
+ | |<code><nowiki>{{Recipe|Complete Breakfast|48}}</nowiki></code> | ||
+ | |{{Recipe|Complete Breakfast|48}} | ||
+ | |- | ||
+ | |<code><nowiki>{{Recipe|Barrel Brazier|36|center}}</nowiki></code> | ||
+ | |{{Recipe|Barrel Brazier|36|center}} | ||
+ | |- | ||
+ | |<code><nowiki>{{Recipe|Wicked Statue|32|center}}</nowiki></code> | ||
+ | |{{Recipe|Wicked Statue|32|center}} | ||
+ | |- | ||
+ | |}<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 21:53, 9 February 2023
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 Note that this is a change from the previous version of this template, where the default value was 48 |
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}}
|
![]() ![]() |
{{Recipe|Complete Breakfast|48}}
|
![]() ![]() |
{{Recipe|Barrel Brazier|36|center}}
|
![]() ![]() |
{{Recipe|Wicked Statue|32|center}}
|
![]() ![]() |