Difference between revisions of "Template:RecipeInfobox"
(added recipeSource variable for entering an optional source argument to the template. if left out, template uses {{PAGENAME}} to show current page's recipe, if entered it shows recipe of target page) |
(added optional parameter for aligning table to left or right (default: right)) |
||
Line 1: | Line 1: | ||
− | {{#vardefine: recipeSource | {{{source|{{PAGENAME}}}}} }} | + | {{#vardefine: recipeSource | {{{source|{{PAGENAME}}}}} }}<!-- |
− | <div class="recipe_template"> | + | -->{{#ifeq: {{floatRight|true}} | true | {{#vardefine: alignment | floatright}} | {{#vardefine: alignment | floatleft}} }}<!-- |
− | {| class="wikitable | + | --><div class="recipe_template"> |
+ | {| class="wikitable {{#var: alignment}}" style="width:350px; font-size:100%;" | ||
|- | |- | ||
| colspan="2" style="background: lightgrey; text-align:center"| {{Emoticon|emoticon={{#show: {{PAGENAME}} |?CraftIcon}}}} '''Info:''' '''{{PAGENAME}}''' | | colspan="2" style="background: lightgrey; text-align:center"| {{Emoticon|emoticon={{#show: {{PAGENAME}} |?CraftIcon}}}} '''Info:''' '''{{PAGENAME}}''' |
Revision as of 11:46, 26 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.