Difference between revisions of "Template:Item/doc"

From Krafties
Jump to navigation Jump to search
m
(added a #switch. Now the default is "n/a" if not filled out)
Line 17: Line 17:
 
*<code>image=</code> file-name of image (skipping it will display Krafties logo instead)
 
*<code>image=</code> file-name of image (skipping it will display Krafties logo instead)
 
*<code>desc=</code> adds short description, such as what happens when consumed
 
*<code>desc=</code> adds short description, such as what happens when consumed
====parameters that can be skipped (will then display ''default'' choice)====
+
====parameters====
*<code>alchemy=</code> ''default:no,'' else you write how much [[Experience]] you get when converting this item
+
*<code>alchemy=</code> write how much [[Experience]] you get when converting this item (default: Not Convertible)
*<code>ingredient=</code> ''default:n/a,'' else you list all the recipes this ingredient is part of
+
*<code>ingredient=</code> list all the recipes this ingredient is part of
*<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)
+
;yes/no parameters
*<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>loot=</code> answer <code>yes</code>, <code>no</code> or remove the parameter for default <code>n/a</code>
*<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>craft=</code> answer <code>yes</code>, <code>no</code> or remove the parameter for default <code>n/a</code>
*<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)
+
*<code>enchant=</code> answer <code>yes</code>, <code>no</code> or remove the parameter for default <code>n/a</code>
 +
*<code>consume=</code> answer <code>yes</code>, <code>no</code> or remove the parameter for default <code>n/a</code>
  
 
<includeonly>
 
<includeonly>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</includeonly>
 
</includeonly>

Revision as of 10:27, 9 May 2017

This is a documentation subpage for Template:Item.
It contains usage information, categories and other content that is not part of the original template page.
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=
| image=
| desc=
| alchemy=
| ingredient=
| loot=
| craft=
| enchant=
| consume=
}}
  • name= name of item
  • 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