Difference between revisions of "Template:Recipe"

From SpiralKnights

Jump to: navigation, search
m (betterer)
m (test ":" instead of "-")
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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}}}}} - {{#switch:{{{star|0}}}
+
<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 =
 
|0 =
 
|1 = 250
 
|1 = 250
Line 6: Line 6:
 
|4 = 10,000
 
|4 = 10,000
 
|5 = 25,000
 
|5 = 25,000
}} [[crowns]])</small>|}}</includeonly><noinclude>
+
}} crowns)|}}</includeonly><noinclude>
 
{{documentation}}[[Category:Linking Templates]]</noinclude>
 
{{documentation}}[[Category:Linking Templates]]</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