Difference between revisions of "Template:RecipeInfobox"
m (fixed formatting) |
(updated how ingredients are ordered) |
||
Line 18: | Line 18: | ||
| colspan="2" style="background: lightgrey; text-align:center"| '''Recipe''' | | colspan="2" style="background: lightgrey; text-align:center"| '''Recipe''' | ||
|- | |- | ||
+ | |||
+ | {{#ask: | ||
+ | [[-Has subobject::{{PAGENAME}}]] [[Crafting ingredient.ItemType::Recipe (Item)]] | ||
+ | | mainlabel=- | ||
+ | | headers=hide | ||
+ | |format=list | ||
+ | |template=RecipeRow | ||
+ | |? Crafting ingredient | ||
+ | |? Qty | ||
+ | }} | ||
+ | |||
+ | {{#ask: | ||
+ | [[-Has subobject::{{PAGENAME}}]] [[Crafting ingredient.ItemType::Piece of Equipment]] | ||
+ | | mainlabel=- | ||
+ | | headers=hide | ||
+ | |format=list | ||
+ | |template=RecipeRow | ||
+ | |? Crafting ingredient | ||
+ | |? Qty | ||
+ | }} | ||
+ | |||
{{#ask: | {{#ask: | ||
− | [[-Has subobject::{{PAGENAME}}]] | + | [[-Has subobject::{{PAGENAME}}]] [[Crafting ingredient.ItemType::!Recipe (Item)]] [[Crafting ingredient.ItemType::!Piece of Equipment]] |
| mainlabel=- | | mainlabel=- | ||
| headers=hide | | headers=hide | ||
|format=list | |format=list | ||
|template=RecipeRow | |template=RecipeRow | ||
− | |sort= | + | |sort=Crafting ingredient |
− | |order= | + | |order=asc |
|? Crafting ingredient | |? Crafting ingredient | ||
|? Qty | |? Qty | ||
}} | }} | ||
+ | |||
|} | |} | ||
</div> | </div> |
Revision as of 01:45, 15 July 2018
Documentation
The template is used to create a table with an overview for crafting/brewing recipes. Using the template results in a table on the right hand side of the page, text wrapping around. It is advised to put that template directly in the beginning of a page to get the recipe as infobox.