Dark and Light Wiki
Dark and Light Wiki
Xianith (talk | contribs)
Xianith (talk | contribs)
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
 
<pre style="overflow: auto;">
 
<pre style="overflow: auto;">
{{item icon|ITEM NAME|SIZE(Default 30px, OPTIONAL)|desc=y/nl/TEXT(OPTIONAL)}}
+
{{item icon|ITEM NAME|SIZE|desc=|quality=|link=}}
 
</pre>
 
</pre>
   
  +
'''SIZE''', '''desc=''', '''link=''' and '''quality=''' are all optional entries. The default size is 30px.
===Example===
 
If ''des=y'' will display text behind the icon for the name of the icon.
 
{{item icon|apple|55px|desc=y}}
 
<code><nowiki>{{item icon|apple|55px|desc=y}}</nowiki></code>
 
<hr>
 
   
  +
{| class="wikitable"
  +
|+Description field examples
  +
!Explenation
  +
!Code
  +
!Result
  +
|-
 
|If ''des=y'' will display text behind the icon for the name of the icon.
 
|<pre>{{item icon|apples|35px|desc=y}}</pre>
 
|{{item icon|apples|35px|desc=y}}
  +
|-
 
|If ''desc=nl'' then the text will be displayed on a new line
 
|<pre>{{item icon|apples|35px|desc=nl}}</pre>
 
|{{item icon|apples|35px|desc=nl}}
  +
|-
 
|If ''desc=TEXT'' will display the text next to the icon instead of the icons name.
 
|<pre>{{item icon|apples|35px|desc=This is not an apple!}}</pre>
 
|{{item icon|apples|35px|desc=This is not an apple!}}
  +
|-
 
|If ''desc'' is not included.
  +
|<pre>{{item icon|apples|35px}}</pre>
  +
|{{item icon|apples|35px}}
  +
|-
  +
! colspan="3" | Link Param
  +
|-
  +
|If ''link=TEXT'' the icon and text will link to a page that is listed.
  +
|<pre>{{item icon|apples|35px|link=goblin|desc=y}}</pre>
  +
|{{item icon|apples|35px|link=goblin|desc=y}}
  +
|-
  +
|If ''link=n'' the icon will not link to anything.
  +
|<pre>{{item icon|apples|35px|link=n}}</pre>
  +
|{{item icon|apples|35px|link=n}}
  +
|-
  +
|If ''link'' is not included, the icon will link to the text page.
  +
|<pre>{{item icon|apples|35px}}</pre>
  +
|{{item icon|apples|35px}}
  +
|-
  +
! colspan="3" | Other Params
  +
|-
  +
|If ''quality='' will display [[Item Quality|quality]] in the description
  +
|<pre>{{item icon|apples|35px|desc=y|quality=e}}</pre>
  +
|{{item icon|apples|35px|desc=y|quality=e}}
  +
|}
   
  +
<b style="color:red; font-size:30px;">Important!</b><br/>
If ''desc=nl'' then the text will be displayed on a new line
 
 
Be sure that an icon exists for the item (ex. Icon sulphur ore.png)
{{item icon|apple|55px|desc=nl}}
 
<code><nowiki>{{item icon|apple|55px|desc=nl}}</nowiki></code>
 
<hr>
 
   
 
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 ==
If ''desc=TEXT'' will display the text next to the icon instead of the icons name.
 
 
Check the [[Item icon missing]] category to see what icons need to be added or corrected.
{{item icon|apple|55px|desc=This is not an apple!}}
 
<code><nowiki>{{item icon|apple|55px|desc=This is not an apple!}}</nowiki></code>
 
<hr>
 
   
  +
== Related ==
  +
[[Template: Ingredient]]
   
  +
[[Template: Quality]]
If ''desc'' is not included.
 
{{item icon|apple|55px}}
 
<code><nowiki>{{item icon|apple|55px}}</nowiki></code>
 
 
== 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.
 
 
{{clear}}
 
{{clear}}
 
{{doc/end}}
 
{{doc/end}}
  +
{{Xianith sig}}

Latest revision as of 21:50, 11 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=|link=}}

SIZE, desc=, link= 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 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
Link Param
If link=TEXT the icon and text will link to a page that is listed.
{{item icon|apples|35px|link=goblin|desc=y}}
If link=n the icon will not link to anything.
{{item icon|apples|35px|link=n}}
Icon apples.png
If link is not included, the icon will link to the text page.
{{item icon|apples|35px}}
Icon apples.png
Other Params
If quality= will display quality in the description
{{item icon|apples|35px|desc=y|quality=e}}

Important!
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 to be added or corrected.

Related

Template: Ingredient

Template: Quality

Author

Originally created by Xianith

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