Difference between revisions of "Template:Item"

From Krafties
Jump to navigation Jump to search
Line 28: Line 28:
 
*<code>image=</code> file-name of image
 
*<code>image=</code> file-name of image
 
*<code>desc=</code> adds short description, such as what happens when consumed
 
*<code>desc=</code> adds short description, such as what happens when consumed
 
+
*<code>margin=</code> (OPTIONAL) can use this to change the left side margin. Example: <code>margin=none</code>
;If you skip the commands below, then they will display the default. You can write <code>yes</code>, <code>no</code> or <code>unknown</code> (or any other [[Template:Table Cell Templates|Table Cell Templates]] can work)
+
====Commands that can be skipped (will then display ''default'' choice)====
*<code>loot=</code> ''default:yes''
 
*<code>craft=</code> ''default:no,''  
 
*<code>enchant=</code> ''default:no,''
 
*<code>consume=</code> ''default:no,''
 
 
*<code>alchemy=</code> ''default:no,'' else you write how much [[Experience]] you get when converting this item
 
*<code>alchemy=</code> ''default:no,'' else you write how much [[Experience]] you get when converting this item
 
*<code>ingredient=</code> ''default:n/a,'' else you list all the recipes this ingredient is part of
 
*<code>ingredient=</code> ''default:n/a,'' else you list all the recipes this ingredient is part of
====Optional Commands====
+
*<code>loot=</code> ''default:yes'' You can write <code>no</code> or <code>unknown</code> (or any other [[Template:Table Cell Templates|Table Cell Templates]] can work)
*<code>margin=</code> can use this to remove the left side margin <code>margin=none</code>
+
*<code>craft=</code> ''default:no,'' You can write <code>yes</code> or <code>unknown</code> (or any other [[Template:Table Cell Templates|Table Cell Templates]] can work)
 +
*<code>enchant=</code> ''default:no,'' You can write <code>yes</code> or <code>unknown</code> (or any other [[Template:Table Cell Templates|Table Cell Templates]] can work)
 +
*<code>consume=</code> ''default:no,'' You can write <code>yes</code> or <code>unknown</code> (or any other [[Template:Table Cell Templates|Table Cell Templates]] can work)
  
 
==See Also==
 
==See Also==
 
{{Useful Templates}}
 
{{Useful Templates}}
 
|}
 
|}

Revision as of 03:42, 29 June 2015

Logo big.png
Loot Yes Consume No Ingredient in Recipes
Crafted No Alchemy Not Convertable N/A
Enchanted No
Documentation icon Template documentation ( view · talk · edit)
Enchanted means if this item can be created through enchanting, not if it's enchanting ingredient. If it is a component for any recipe then add it to the recipe list. Same goes for crafted, it means if this item can be created through crafting.

Usage

{{Item
name= link= (OPTIONAL) image= desc= alchemy= ingredient= loot= craft= enchant= consume=
}}
  • name= name of item
  • link= (OPTIONAL) write page name for link within wiki.
  • image= file-name of image (skipping it will display Krafties logo instead)
  • desc= adds short description, such as what happens when consumed

parameters

  • alchemy= write how much Experience you get when converting this item (default: Not Convertible)
  • ingredient= list all the recipes this ingredient is part of
yes/no parameters
  • loot= answer yes, no or remove the parameter for default n/a
  • craft= answer yes, no or remove the parameter for default n/a
  • enchant= answer yes, no or remove the parameter for default n/a
  • consume= answer yes, no or remove the parameter for default n/a
The above documentation is transcluded from Template:Item/doc.
Editors can experiment in this template's sandbox
Please add categories to the /doc subpage within <includeonly>...</includeonly>

Commands

  • name= name of item
  • image= file-name of image
  • desc= adds short description, such as what happens when consumed
  • margin= (OPTIONAL) can use this to change the left side margin. Example: margin=none

Commands that can be skipped (will then display default choice)

  • alchemy= default:no, else you write how much Experience you get when converting this item
  • ingredient= default:n/a, else you list all the recipes this ingredient is part of
  • loot= default:yes You can write no or unknown (or any other Table Cell Templates can work)
  • craft= default:no, You can write yes or unknown (or any other Table Cell Templates can work)
  • enchant= default:no, You can write yes or unknown (or any other Table Cell Templates can work)
  • consume= default:no, You can write yes or unknown (or any other Table Cell Templates can work)

See Also