Dark and Light Wiki
Dark and Light Wiki
Xianith (talk | contribs)
Xianith (talk | contribs)
Line 15: Line 15:
 
|-
 
|-
 
|If ''des=y'' will display text behind the icon for the name of the icon.
 
|If ''des=y'' will display text behind the icon for the name of the icon.
|<pre>{{item icon|apples|55px|desc=y}}</pre>
+
|<pre>{{item icon|apples|35px|desc=y}}</pre>
|{{item icon|apples|55px|desc=y}}
+
|{{item icon|apples|35px|desc=y}}
 
|-
 
|-
 
|If ''quality='' will display [[Item Quality|quality]] in the description
 
|If ''quality='' will display [[Item Quality|quality]] in the description
|<pre>{{item icon|apples|55px|desc=y|quality=e}}</pre>
+
|<pre>{{item icon|apples|35px|desc=y|quality=e}}</pre>
|{{item icon|apples|55px|desc=y|quality=e}}
+
|{{item icon|apples|35px|desc=y|quality=e}}
 
|-
 
|-
 
|If ''desc=nl'' then the text will be displayed on a new line
 
|If ''desc=nl'' then the text will be displayed on a new line
|<pre>{{item icon|apples|55px|desc=nl}}</pre>
+
|<pre>{{item icon|apples|35px|desc=nl}}</pre>
|{{item icon|apples|55px|desc=nl}}
+
|{{item icon|apples|35px|desc=nl}}
 
|-
 
|-
 
|If ''desc=TEXT'' will display the text next to the icon instead of the icons name.
 
|If ''desc=TEXT'' will display the text next to the icon instead of the icons name.
|<pre>{{item icon|apples|55px|desc=This is not an apple!}}</pre>
+
|<pre>{{item icon|apples|35px|desc=This is not an apple!}}</pre>
|{{item icon|apples|55px|desc=This is not an apple!}}
+
|{{item icon|apples|35px|desc=This is not an apple!}}
 
|-
 
|-
 
|If ''desc'' is not included.
 
|If ''desc'' is not included.
|<pre>{{item icon|apples|55px}}</pre>
+
|<pre>{{item icon|apples|35px}}</pre>
|{{item icon|apples|55px}}
+
|{{item icon|apples|35px}}
 
|}
 
|}
   

Revision as of 19:33, 6 October 2017

Template-info.png Documentation

This is a item icon that can be liked to the items page as well as display an icon.

Usage

{{item icon|ITEM NAME|SIZE|desc=|quality=}}

SIZE, desc=, and quality= are all optional entries. The default size is 30px.

Description field examples
Explenation Code Result
If des=y will display text behind the icon for the name of the icon.
{{item icon|apples|35px|desc=y}}
If quality= will display quality in the description
{{item icon|apples|35px|desc=y|quality=e}}
If desc=nl then the text will be displayed on a new line
{{item icon|apples|35px|desc=nl}}
If desc=TEXT will display the text next to the icon instead of the icons name.
{{item icon|apples|35px|desc=This is not an apple!}}
If desc is not included.
{{item icon|apples|35px}}
Icon apples.png

Important Note!

Be sure that an icon exists for the item (ex. Icon sulphur ore.png)

If one does exist, then one simply needs to name it properly. The extension MUST be PNG and there MUST be the word Icon (capitol I) infront of the name.

Missing Icons

Check the Item icon missing category to see what icons need updating.

Author

Originally created by Xianith

If you have questions or if this isn't working right, please leave a note here