Difference between revisions of "Template:Item"

From Krafties
Jump to navigation Jump to search
m
m
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
+
<onlyinclude>{|class=pinktable style="max-width:350px;margin-left:{{{margin|30px}}};font-size:11px;text-align:center;border-width:2px;display:inline-block"
{|class=pinktable style="width:500px;margin-left:30px;font-size:11px;text-align:center;border-width:2px"
+
!colspan=4 style="text-align:left;font-size:12px;"|<h4>{{#if:{{{link|}}}
|+ style="text-align:left;font-size:12px;"|<h4>{{ucfirst:{{{name| }}}}}</h4>
+
|[[{{{link}}}{{!}}{{{name| }}}]]
|colspan=2 style="background-color:#fff;width:100px;border-width:2px;height:100px;"|[[File:{{{image|}}}|100px|link=]]
+
|{{{name| }}}}}</h4>
|colspan=3 valign=top style="text-align:left;text-align:left;padding-left:5px;width:600px;border-width:2px"|{{ucfirst:{{{desc| }}}}}
 
 
|-
 
|-
![[Loot]]
+
|colspan=4 |[[File:{{{image|Logo big.png}}}|left|100x100px|link=]] {{ucfirst:{{{desc| }}}}}
|{{{{{loot|yes}}}}}
+
 
!Consume
 
|{{{{{consume|no}}}|style=width:60px}}
 
!Ingredient in Recipes
 
 
|-
 
|-
![[Crafting Recipes|Crafted]]
+
!style="width:25%"|[[Loot]]
|{{{{{craft|no}}}}}
+
|{{#switch: {{{loot|}}}
 +
|yes={{yes}}
 +
|no={{no}}
 +
|#default={{n/a}}}}
 +
!style="width:25%"|Consumable
 +
|{{#switch: {{{consume|}}}
 +
|yes={{yes}}
 +
|no={{no}}
 +
|#default={{n/a}}}}
 +
|-
 +
![[Crafting Recipes|Craftable]]
 +
|{{#switch: {{{craft|}}}
 +
|yes={{yes}}
 +
|no={{no}}
 +
|#default={{n/a}}}}
 
!rowspan=2|[[Alchemy]]
 
!rowspan=2|[[Alchemy]]
|rowspan=2|{{{alchemy|Not Convertable}}}
+
|rowspan=2 style="width:25%"|{{{alchemy|Not<br>Convertable}}}
|rowspan=2 {{n/a|{{{ingredient|N/A}}}|style=width:450px}}
 
 
|-
 
|-
 
![[Enchanting Recipes|Enchanted]]
 
![[Enchanting Recipes|Enchanted]]
|{{{{{enchant|no}}}}}
+
|{{#switch: {{{enchant|}}}
 +
|yes={{yes}}
 +
|no={{no}}
 +
|#default={{n/a}}}}
 
|-
 
|-
|-
+
|}</onlyinclude>{{clear}}
|}</onlyinclude>
+
{{Documentation}}
{|{{Template Explanation}}[[Category:Templates]]
 
 
 
===<nowiki>{{Item|name=|image=|desc=}}</nowiki>===
 
*<code>name=</code> name of item
 
*<code>image=</code> file-name of image
 
*<code>desc=</code> adds short description, such as what happens when consumed
 
;Variables you only add when answer is different than default (delete the command otherwise)
 
*<code>loot=</code> ''default:yes'' '''only add when item is NOT lootable''', just write <code>loot=no</code>
 
*<code>craft=</code> ''default:no,'' '''only add when item can be crafted''', just write <code>craft=yes</code>
 
*<code>enchant=</code> ''default:no,'' '''only add if item is enchanted''', just write <code>enchant=yes</code>
 
*<code>consume=</code> ''default:no,'' '''only add when item is consumable''', just write <code>consume=yes</code>
 
*<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
 
 
 
==See Also==
 
{{Useful Templates}}
 
|}
 

Latest revision as of 16:36, 9 May 2017

Logo big.png
Loot N/A Consumable N/A
Craftable N/A Alchemy Not
Convertable
Enchanted N/A
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[edit]

{{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[edit]

  • 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>