Difference between revisions of "Template:RecipeInfobox"
m (formatting) |
m |
||
Line 56: | Line 56: | ||
|? Qty | |? Qty | ||
}} | }} | ||
− | + | {{#ifeq: {{#var: incomplete}} | true | |
+ | | {{!}} style="text-align: right;" {{!}} [[??]] ([[??]]) {{!}}{{!}} [[??]] | ||
+ | }} | ||
{{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[Personalized::Yes]] }} | {{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[Personalized::Yes]] }} | ||
| {{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[PersonalizedSetNr::1]] }} | | {{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[PersonalizedSetNr::1]] }} | ||
Line 71: | Line 73: | ||
|? Crafting ingredient | |? Crafting ingredient | ||
|? Qty | |? Qty | ||
− | }} | + | }}{{#ifeq: {{#var: incomplete}} | true |
+ | | {{!}} style="text-align: right;" {{!}} [[??]] ([[??]]) {{!}}{{!}} [[??]] | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[PersonalizedSetNr::2]] }} | -->{{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[PersonalizedSetNr::2]] }} | ||
Line 86: | Line 90: | ||
|? Crafting ingredient | |? Crafting ingredient | ||
|? Qty | |? Qty | ||
− | }} | + | }}{{#ifeq: {{#var: incomplete}} | true |
+ | | {{!}} style="text-align: right;" {{!}} [[??]] ([[??]]) {{!}}{{!}} [[??]] | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[PersonalizedSetNr::3]] }} | -->{{#if: {{#ask: [[-Has subobject::{{#var: recipeSource}}]] [[PersonalizedSetNr::3]] }} | ||
Line 101: | Line 107: | ||
|? Crafting ingredient | |? Crafting ingredient | ||
|? Qty | |? Qty | ||
− | }} | + | }}{{#ifeq: {{#var: incomplete}} | true |
+ | | {{!}} style="text-align: right;" {{!}} [[??]] ([[??]]) {{!}}{{!}} [[??]] | ||
+ | }} | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
|}</div><!--COMMENTED OUT, IS END TAG FOR CUSTOM TOGGLE FOR COLLAPSE/EXPAND</div>--> | |}</div><!--COMMENTED OUT, IS END TAG FOR CUSTOM TOGGLE FOR COLLAPSE/EXPAND</div>--> |
Revision as of 21:34, 2 October 2020
Documentation
The template is used to create a table with an overview for crafting/brewing recipes. The template can be used in two modes:
- No arguments: 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.
- Using arguments: possible arguments are
source
,align
andcollapsible
.source
defines which page the template should fetch the recipe from (default {{PAGENAME}});alignment
defines to where the table should be aligned (default: right);collapsible
makes the table collapse (collapsed per default) with an [Expand]/[Collapse] button (default: empty, use "true" for activating). While the arguments can be mixed however you want (for example to just show the recipe of page X on page Y), but they have been made to be used in the Usage lists (Template:UsageList & Template:UsageListRow). There the template gets the arguments source=$AllItemPagesUsingThatResource (several {{PAGENAME}}), align=left, collapsible=true.