Template:Icon
Jump to navigation
Jump to search
Returns an icon based on the input. Primary used in other Lua templates.
Dependencies:
This template uses Module:Icon.
Syntax
{{Icon
|NAME OF ITEM
|size = Define a different image size. (optional)
|link = Define a different image link. (optional)
|note = Appended a note after the link. (optional)
|x = Define an amount of the item. (optional)
|ext = Define a different image file. (optional)
|nolink = When this is set to true, the name of the item will appear, but will not link to the corresponding page. (optional)
|notext = When this is set to true, the name of the item will not appear, but the icon will still link to the corresponding page. (optional)
|br = When this is set to true, the template will add a line break
}}
Examples
Variables | Syntax | Example |
---|---|---|
Basic | {{Icon|Apple}} |
|
Size | {{Icon|Apple|size=70}} |
|
Link | {{Icon|Apple|link=Carrot}} |
|
Note | {{Icon|Apple|note=This is a shiny apple.}} |
|
Amount | {{Icon|Apple|x=2}} |
|
Extension | {{Icon|Sprinkles|ext=gif}} |
|
No Link | {{Icon|Claude Wedding Ring|nolink=true}} |
|
No Text | {{Icon|Claude Wedding Ring|notext=true}} |
|
Line break | {{Icon|Claude Wedding Ring|br=true}} This is text after the item. |
This is text after the item. |
Many | {{Icon|Apple|size=10|link=carrot|note=Tiny Apple.|x=2}} |