This is the documentation page for Module:Icon
Icon returns the in-game icon of a particular item.
On this Wiki, Icon is used in:
Usage
Template
In template: {{#invoke:Icon|function|input1|input2|...}}
In articles: {{Icon|Type|input1|input2|...}}
Module
local p = {}
local Icon = require('Module:Icon')
local function func(iconname, textexist, imagesize)
return Icon._Item(iconname, textexist, imagesize)
end
Documentation
Package items
Other items
Item(iconname, textexist, imagesize)(function)- Returns the icon for an item.
- Parameters:
iconnameItem name (string)textexistIf set to 'Text' or 'text', text is added after icon (string; optional)imagesizeImage size, defaults to 'x26' (string; optional)
- Returns: The icon's image in wikitext (string)
_Item(iconname, textexist, imagesize)(function)- Returns the icon for an item.
- Parameters:
iconnameItem name (string)textexistIf set to 'Text' or 'text', text is added after icon (string; optional)imagesizeImage size, defaults to 'x26' (string; optional)
- Returns: The icon's image in wikitext (string)
HUD(iconname, textexist, imagesize)(function)- Returns the icon for a HUD element.
- Parameters:
iconnameHUD element name (string)textexistIf set to 'Text' or 'text', text is added after icon (string; optional)imagesizeImage size, defaults to 'x20' (string; optional)
- Returns: The icon's image in wikitext (string)
Flag(iconname, tooltip, dest, textexist)(function)- Returns the icon for a real-world country flag.
- Parameters:
iconnameHUD element name (string)tooltipIf set to 'Text' or 'text', text is added after icon (string)destName of a destination article for linking purposes (string)textexistIf set to 'Text' or 'text', text is added after icon (string; optional)
- Returns: The icon's image in wikitext (string)
Buff(iconname, textexist, imagesize)(function)- Returns the icon for a HUD buff or debuff.
- Parameters:
iconnameBuff name (string)textexistIf set to 'Text' or 'text', text is added after icon (string; optional)imagesizeImage size, defaults to 'x40' (string; optional)
- Returns: The icon's image in wikitext (string)
Clan(iconname, imagesize)(function)- Returns the icon for a Clan tier.
- Parameters:
iconnameClan tier name (string)imagesizeImage size, defaults to 'x26' (string; optional)
- Returns: The icon's image in wikitext (string)
_Clan(iconname, imagesize)(function)- Returns the icon for a Clan tier.
- Parameters:
iconnameClan tier name (string)imagesizeImage size, defaults to 'x26' (string; optional)
- Returns: The icon's image in wikitext (string)
- Created with Docbunto
See Also