Difference between revisions of "Template:Recipe"

From ChatWars Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>
 
 
<div class="recipe_template">
 
<div class="recipe_template">
 
{| class="wikitable floatright" style="width:350px; font-size:100%;"
 
{| class="wikitable floatright" style="width:350px; font-size:100%;"
Line 19: Line 18:
 
| colspan="2" style="background: lightgrey;  text-align:center"| '''Recipe'''  
 
| colspan="2" style="background: lightgrey;  text-align:center"| '''Recipe'''  
 
|-
 
|-
test
+
|colspan="2" |
 
{{#ask:  
 
{{#ask:  
 
  [[-Has subobject::{{PAGENAME}}]]  
 
  [[-Has subobject::{{PAGENAME}}]]  
Line 31: Line 30:
 
  |? Qty
 
  |? Qty
 
}}
 
}}
|-
 
 
|}
 
|}
 
</div>
 
</div>
</includeonly>
 
 
<noinclude>
 
<noinclude>
 
__NOTOC__
 
__NOTOC__
Line 40: Line 37:
 
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.
 
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.
  
==Usage==
 
The template is using the following variables, the links to the item pages are added automatically:
 
<nowiki>
 
{{Recipe
 
|name=
 
|icon=
 
|skill=
 
|skilllevel=
 
|mana=
 
|chatcommand=
 
|ingredient1=
 
|amount1=
 
|ingredient2=
 
|amount2=
 
|ingredient3=
 
|amount3=
 
|ingredient4=
 
|amount4=
 
|ingredient5=
 
|amount5=
 
|ingredient6=
 
|amount6=
 
|ingredient7=
 
|amount7=
 
|ingredient8=
 
|amount8=
 
|ingredient9=
 
|amount9=
 
|ingredient10=
 
|amount10=
 
}}
 
</nowiki>
 
  
==Example==
 
<nowiki>
 
{{Recipe
 
|name=Champion Sword
 
|icon=Workshop
 
|skill=Crafting (Skill)
 
|skilllevel=3
 
|mana=150
 
|chatcommand=/craft_w28
 
|ingredient1=Champion Sword Recipe
 
|amount1=1
 
|ingredient2=Champion Blade
 
|amount2=3
 
|ingredient3=Ruby
 
|amount3=3
 
|ingredient4=Steel Mold
 
|amount4=3
 
|ingredient5=Coke
 
|amount5=41
 
|ingredient6=Metal Plate
 
|amount6=41
 
|ingredient7=Silver Alloy
 
|amount7=27
 
|ingredient8=
 
|amount8=
 
|ingredient9=
 
|amount9=
 
|ingredient10=
 
|amount10=
 
}}
 
</nowiki>
 
Results in:
 
 
{{Recipe
 
|name=Champion Sword
 
|icon=Workshop
 
|skill=Crafting (Skill)
 
|skilllevel=3
 
|mana=150
 
|chatcommand=/craft_w28
 
|ingredient1=Champion Sword Recipe
 
|amount1=1
 
|ingredient2=Champion Blade
 
|amount2=3
 
|ingredient3=Ruby
 
|amount3=3
 
|ingredient4=Steel Mold
 
|amount4=3
 
|ingredient5=Coke
 
|amount5=41
 
|ingredient6=Metal Plate
 
|amount6=41
 
|ingredient7=Silver Alloy
 
|amount7=27
 
|ingredient8=
 
|amount8=
 
|ingredient9=
 
|amount9=
 
|ingredient10=
 
|amount10=
 
}}
 
</noinclude>
 
  
 
[[Category:Template]]
 
[[Category:Template]]

Revision as of 19:35, 14 July 2018

Info: {{{name}}}
Mana {{{mana}}} Mana.png
Chatcommand {{{chatcommand}}}
Recipe


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.