Difference between revisions of "Template:RecipeInfobox"

From ChatWars Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{#vardefine: recipeSource | {{{source|{{PAGENAME}}}}} }}<!--
 
{{#vardefine: recipeSource | {{{source|{{PAGENAME}}}}} }}<!--
 
-->{{#vardefine: alignment | float{{{align|right}}} }}<!--
 
-->{{#vardefine: alignment | float{{{align|right}}} }}<!--
-->{{#vardefine: collaps | {{#ifeq: {{{collapsible|}}} | true | mw-collapsible mw-collapsed | }} }}
+
-->{{#vardefine: collaps | {{#ifeq: {{{collapsible|}}} | true | mw-collapsible mw-collapsed" id="mw-customcollapsible-recipeCollaps" | }} }}<!--
 +
-->{{#if: {{{collapsible|}}} | <span class="mw-customtoggle-recipeCollaps" style="cursor:pointer; color:highlight">(Toggle Recipe)</span> }}
 
<div class="recipe_template {{#var: collaps}}">
 
<div class="recipe_template {{#var: collaps}}">
 
{| class="wikitable {{#var: alignment}}" style="width:350px; font-size:100%;"
 
{| class="wikitable {{#var: alignment}}" style="width:350px; font-size:100%;"
Line 57: Line 58:
  
 
|}
 
|}
</div>
+
</div><!--</div>-->
 
<noinclude>
 
<noinclude>
 
__NOTOC__
 
__NOTOC__

Revision as of 13:45, 26 July 2018

Info: RecipeInfobox
Mana Mana.png
Chatcommand
Recipe
Ingredient Amount


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.