Шаблон:Icon

Материал из Revelation Wiki
Перейти к навигацииПерейти к поиску
Документация

<onlyinclude>;Description :Creates an item icon with a stack count overlay.

Syntax
{{Icon|icon graphic|stack count}}

The icon graphic will link to [[File:<icon graphic>.png]].

Example
{{Icon|Forage medium grade.jpg|5}}
Result
Forage medium grade.jpg55

Advanced parameters

There are a number of advanced, named parameters not listed above and strongly not recommended for general use:

|float=
float of the icon itself
|margin=
margin of the icon itself
|ext=
file extension of the icon itself (if not .png)
|size=
from 1 (the default) to 4 (the smallest).
|width=
instead of |size=, in pixels
|blacknum=true
to display the stack number in black font instead of white font

Advanced examples

{{Icon|Forage medium grade|ext=.jpg|1|size=1}} up to size=4
Forage medium grade.jpg11
Forage medium grade.jpg22
Forage medium grade.jpg33
Forage medium grade.jpg44
{{Icon|Forage medium grade|ext=.jpg|5|blacknum=true}}
Forage medium grade.jpg55