Dungeon Boss Wiki
Advertisement
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Icon/doc to edit this documentation. (How does this work?)

This template creates an Icon followed by text or link. The syntax is

 {{Icon|<keyword>|<parameter>|<more parameters>}}

The following keywords can be used for keyword and the Icon template. The additional parameters depend on the chosen keyword.

Heroes

Type {{Icon|<hero id>}}
Provides a way to include an image of the unascended hero icon while providing a link to the hero page. The size of the image is set to 25px around all edges, which is unclickable. The id of the hero should be in lower case but can be capitalized (usually it's the hero's name). For example, the following code:

 {{Icon|Tsume}} produces Tsume token 0.png Tsume

You can add the size for the Icon as 2nd parameter like in this example:

 {{Icon|Tsume|50px}} produces Tsume token 0.png Tsume

Check for whitespace robustness:

 {{Icon| Tsume}} produces 25px ?? tsume??

The code returns an empty result if the template is empty or there's no matching hero:

 {{Icon|}} produces 
 {{Icon}} produces 

See Module:Hv/data for a list of heroes and icons that exist on this wiki.

hero+

Type {{Icon|<hero+>|<hero id>}}
The key word hero+ adds the categories/tags of the given hero to the name:

 {{Icon|hero+|Tsume}} produces Tsume token 0.png Tsume (Demon/Warrior/Gold)

Like in the hero example above you can add a size for the Icon as 2nd parameter:

 {{Icon|hero+|Tsume|50px}} produces Tsume token 0.png Tsume (Demon/Warrior/Gold)

Check for whitespace robustness:

 {{Icon|hero+|Tsume|50px}} produces 50pxpx ??tsume ?? (??tsume ??/Lua error in Module:Herobox at line 364: attempt to index local 'hero' (a nil value)./??tsume ??)

Abilities

Type {{Icon|<ability>|<ability id>}}
If the first parameter is not a hero's name but the keyword ability followed by an ability's id from Module:Abilities/data then the icon, the name and a tooltip with the ability's description is created.

 {{Icon|ability|Soul Shred}} produces Soul Shred Icon.png Soul Shred

The size of the image is 25px.

Effects

Type {{Icon|<effect>|<effect id>|<link text>}}
If the first parameter is not a hero's name but the keyword effect followed by an effect's id from Module:Effects/data then the icon, the name and a tooltip with the effects's description is created.

 {{Icon|effect|diseased}} produces 

Diseased Icon.png Diseased

The default size of the image is x25px (=25 pixel in height) but can specified with the optioal named arg size. The optional arg3 (link text) is a text that replaced the name of the effect:

 {{Icon|effect|paralysis|paralysed heroes can't move|size=50px}} produces

Paralysis Icon.png paralysed heroes can't move

Elements

Type {{Icon|<element>|<alternative text>}}
If the first parameter is an element (fire, nature, water, light, or dark) then this template creates an icon for that Element:

 {{Icon|dark}} produces Dark.png dark

The second parameter can be an alternative text including wiki markup and links.

 {{Icon|fire|[[Abigail the Brutal]]}} produces Fire.png Abigail the Brutal

The size is fixed.

Epic

Type {{Icon|<epic>|<epic id>|<size>}}
If the first parameter is the keyword epic followed by an Epic's id from Module:Epics/data then an icon and the name with a link is created.

 {{Icon|epic|angelic blade}} produces Angelic Blade.png Angelic Blade

Default size is 25px. The size can be changed with 3rd parameter:

 {{Icon|epic|angelic blade|50px}} produces Angelic Blade.png Angelic Blade

Epic Hero

Type {{Icon|<epic hero>|<hero id>|<size>}}
If the first parameter is the keyword epic hero followed by an Hero's id (usually the name in lower case) from Module:Hv/data then an icon and the name with a link is created.

 {{Icon|epic hero|Archangel Emily}} produces
Emily token 2.png Archangel Emily (Angelic Blade.png Angelic Blade)

Default size is 25px. The size can be changed with 3rd parameter:

 {{Icon|epic hero|Archangel Emily|50px}} produces
Emily token 2.png Archangel Emily (Angelic Blade.png Angelic Blade)

Evos

Type {{Icon|<evo>|<evo name>|<size>}}
If the first parameter is the keyword evo followed by an Evos's name from Template:Evos then the icon, the name and a tooltip with the Evo's description is created.

 {{Icon|evo|Nature Evo}} produces Nature Evo.png Nature Evo

Default size is 25px. The size can be changed with 3rd parameter, see. Epic.

Hero Skin

Type {{Icon|<hero skin>|<skin id>|<size>}}
If the first parameter is the keyword hero skin followed by an Skin's id (usually the skin's name in lower case) from Module:Skins/data and optional the size. Then the hero icon, the hero name is created.

 {{Icon|hero skin|hawk angel emily|50px}} produces
Hawk Angel Emily token.png Hawk Angel Emily

Default size is 25px and optional, it can be omitted.

Misc

Type {{Icon|<blessing>}}
first parameter is the keyword blessing. An icon for Blessing of the Seeker will be created:

 {{Icon|blessing}} produces Blessing of the Seeker.png

The small size is fixed.

Advertisement