Difference between revisions of "Template:Recipe"

From SpiralKnights

Jump to: navigation, search
m (It works, but whoops, it aligns center. Not anymore.)
m (test ":" instead of "-")
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch: {{{star}}}
+
<includeonly>[[File:Recipe-icon {{{2|(Armor, helmet, etc. See documentation for this template)}}}.png|{{{3|36px}}}|link=Recipe]] [[{{{1|ITEM NAME}}}]] Recipe{{#if: {{{star|}}}|&nbsp;<small>({{star|{{{star}}}}}</small>: {{#switch:{{{star|0}}}
| 1 = The 1-star recipe for this item costs 250 [[crowns]]; the [[crafting|alchemy]] cost is 200 crowns and 10 [[energy]]. Below are the materials needed to make the {{PAGENAME}}.
+
|0 =
| 2 = The 2-star recipe for this item costs 1,000 [[crowns]]; the [[crafting|alchemy]] cost is 400 crowns and 50 [[energy]]. Below are the materials needed to make the {{PAGENAME}}.
+
|1 = 250
| 3 = The 3-star recipe for this item costs 4,000 [[crowns]]; the [[crafting|alchemy]] cost is 1,000 crowns and 200 [[energy]]. Below are the materials needed to make the {{PAGENAME}}.
+
|2 = 1,000
| 4 = The 4-star recipe for this item costs 10,000 [[crowns]]; the [[crafting|alchemy]] cost is 2,500 crowns and 400 [[energy]]. Below are the materials needed to make the {{PAGENAME}}.
+
|3 = 4,000
| 5 = The 5-star recipe for this item costs 25,000 [[crowns]]; the [[crafting|alchemy]] cost is 5,000 crowns and 800 [[energy]]. Below are the materials needed to make the {{PAGENAME}}.
+
|4 = 10,000
| #default = [[Category:Needs star]]
+
|5 = 25,000
}}
+
}} crowns)|}}</includeonly><noinclude>
 
+
{{documentation}}[[Category:Linking Templates]]</noinclude>
{| cellpadding="0" cellspacing="4" style="border: 2px solid #496e8b; background: #114255; text-align:center;" class="sortable round"
+
|-  valign="top"
+
| style="background: #ebc94d; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" | '''Name'''
+
| style="background: #ebc94d; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" | '''Amount'''
+
|- {{#if: {{{mat1|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat1}}}.png|18px]] [[{{{mat1}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat1amount}}}
+
|- {{#if: {{{mat2|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat2}}}.png|18px]] [[{{{mat2}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat2amount}}}
+
|- {{#if: {{{mat3|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat3}}}.png|18px]] [[{{{mat3}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat3amount}}}
+
|- {{#if: {{{mat4|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat4}}}.png|18px]] [[{{{mat4}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat4amount}}}
+
|- {{#if: {{{mat5|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat5}}}.png|18px]] [[{{{mat5}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat5amount}}}
+
|- {{#if: {{{mat6|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat6}}}.png|18px]] [[{{{mat6}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat6amount}}}
+
|- {{#if: {{{mat7|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat7}}}.png|18px]] [[{{{mat7}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat7amount}}}
+
|- {{#if: {{{mat8|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat8}}}.png|18px]] [[{{{mat8}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat8amount}}}
+
|- {{#if: {{{mat9|}}} || style="display: none;"}}
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Crafting-{{{mat9}}}.png|18px]] [[{{{mat9}}}]]
+
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |{{{mat9amount}}}
+
|- {{#if: {{{special|}}} || style="display: none;"}}
+
| colspan="2" style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" |[[Image:Equipment-{{{special}}}_icon.png|36px]] [[{{{special}}}]] (Level {{{speciallevel}}})
+
|}
+
 
+
''Note: When crafting using a bound item as a precursor, the upgraded item will also be bound.''<noinclude>{{documentation}}</noinclude>
+

Latest revision as of 12:09, 5 September 2015

[edit] [purge] Template documentation

Usage

To display a recipe and link to the item that recipe is for. The template also links to the recipe page via the icon.

Code

{{recipe|ITEMNAME|TYPE}}

Parameters

Required

|1

The item's name (not item name recipe, just item name. Use capitals etc - the item's true name)

|2

The item's type. Types include:
  • armor
  • helmet
  • shield
  • bomb
  • handgun
  • sword
  • rarity (fire crystals)

Other recipes built in to certain alchemy machines do not have item recipe icons.

Please use lowercase.

Optional

|star

0,1,2,3,4, or 5. Shows the star level in parenthesis, uses Template:Star.

Notes

We could have the recipe icon change to the appropriate item type via a switch containing all items, but that seems silly to maintain when we can just have a type field.

Personal tools