Jump to content

Template:RecipeRow/doc: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
Update documentation
imported>Margotbean
No edit summary
Line 1: Line 1:
This template creates a row in a recipe table.  It requires transclusion tags on the page to be included.  
This template creates a row in a recipe table.  It requires transclusion tags on the page to be included. For information on transclusion tags, please see https://www.mediawiki.org/wiki/Transclusion


On the English language wiki, the transcluded parameters on each page are in the Infobox.  Previously, the transclusion tags were in a "Stats" table that contained the same information as the infobox.
On the English language wiki, the transcluded parameters on each page are in the Infobox.  Previously, the transclusion tags were in a "Stats" table that contained the same information as the infobox.

Revision as of 05:04, 15 April 2017

This template creates a row in a recipe table. It requires transclusion tags on the page to be included. For information on transclusion tags, please see https://www.mediawiki.org/wiki/Transclusion

On the English language wiki, the transcluded parameters on each page are in the Infobox. Previously, the transclusion tags were in a "Stats" table that contained the same information as the infobox.

As of 14 April, 2017, the only Infobox using this template is Template:Infobox cooking.

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
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
Fried Egg Sunny-side up. Egg (1) 50
22
N/A N/A Starter data-sort-value="35">35g