Difference between revisions of "Template:Recipe"

From SpiralKnights

Jump to: navigation, search
m
m (test ":" instead of "-")
 
(47 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{| cellpadding="5" cellspacing="2" style="background-color: transparent; margin: 10px 0px 10px 0px;"
+
<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}}}
|-
+
|0 =
! bgcolor="#93add4" align="left" | Name
+
|1 = 250
! bgcolor="#93add4" | Amount
+
|2 = 1,000
|- {{#if: {{{mat1|}}} || style="display: none;"}}
+
|3 = 4,000
| bgcolor="#f5f5ff" | [[Image:Crafting-{{{mat1}}}.png|18px]] [[{{{mat1}}}]]
+
|4 = 10,000
| bgcolor="#f5f5ff" align="right" | {{{mat1amount}}}
+
|5 = 25,000
|- {{#if: {{{mat2|}}} || style="display: none;"}}
+
}} crowns)|}}</includeonly><noinclude>
| bgcolor="#f5f5ff" | [[Image:Crafting-{{{mat2}}}.png|18px]] [[{{{mat2}}}]]
+
{{documentation}}[[Category:Linking Templates]]</noinclude>
| bgcolor="#f5f5ff" align="right" | {{{mat2amount}}}
+
|- {{#if: {{{mat3|}}} || style="display: none;"}}
+
| bgcolor="#f5f5ff" | [[Image:Crafting-{{{mat3}}}.png|18px]] [[{{{mat3}}}]]
+
| bgcolor="#f5f5ff" align="right" | {{{mat3amount}}}
+
|- {{#if: {{{mat4|}}} || style="display: none;"}}
+
| bgcolor="#f5f5ff" | [[Image:Crafting-{{{mat4}}}.png|18px]] [[{{{mat4}}}]]
+
| bgcolor="#f5f5ff" align="right" | {{{mat4amount}}}
+
|- {{#if: {{{mat5|}}} || style="display: none;"}}
+
| bgcolor="#f5f5ff" | [[Image:Crafting-{{{mat5}}}.png|18px]] [[{{{mat5}}}]]
+
| bgcolor="#f5f5ff" align="right" | {{{mat5amount}}}
+
|- {{#if: {{{mat6|}}} || style="display: none;"}}
+
| bgcolor="#f5f5ff" | [[Image:Crafting-{{{mat6}}}.png|18px]] [[{{{mat6}}}]]
+
| bgcolor="#f5f5ff" align="right" | {{{mat6amount}}}
+
|- {{#if: {{{special|}}} || style="display: none;"}}
+
| bgcolor="#ffd29e" colspan="2" | [[Image:Equipment-{{{special}}}_icon.png]] [[{{{special}}}]] (Level {{{speciallevel}}})
+
|}<noinclude>
+
{| align="center" width="50%" style="background-color: transparent;"
+
|+ '''Use the following to display a recipe table.'''
+
|-
+
| <pre>
+
{{Recipe
+
| mat1 = (First material name)
+
| mat1amount = (First material amount)
+
| mat2 = (Second material name)
+
| mat2amount = (Second material amount)
+
| mat3 = (Third material name)
+
| mat3amount = (Third material amount)
+
| mat4 = (Fourth material name)
+
| mat4amount = (Fourth material amount)
+
| mat5 = (Fifth material name)
+
| mat5amount = (Fifth material amount)
+
| mat6 = (Sixth material name)
+
| mat6amount = (Sixth material amount)
+
| special = (Name of special item)
+
| speciallevel = (Level necessary for special item)
+
}}
+
</pre>
+
|}
+
</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