Dota 2 Wiki
Advertisement
Lua logo
▶️ Swapsies!
This template uses Lua.
Its code can be found under Module:Cosmetic.


Usage[]

{{Cosmetic}} creates an cosmetic item element suitable for use in a cosmetic item navbox. The border is color coded by rarity.

{{Cosmetic|Tickled Tegu}}

The template accepts one additional parameter as second, which controls the width of the element. The width defaults to 100px.

{{Cosmetic|Garments of the Peace-Bringer Set|160px}}

If this template is used in SMW queries, the width can also be set with userparam.

{{Cosmetic|Garments of the Peace-Bringer Set|userparam=130px}}

If not used correctly, a red border and red text will be shown.

TemplateData[]

Displays a cosmetic item's icon and rarity.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Cosmetic1

The cosmetic item's name.

Example
Dragonclaw Hook
Stringrequired
Icon Size2 userparam

no description

Default
100px
Stringoptional
Linklink

Modify the link destination

Example
Inscribed Gem#Axe
Stringoptional
Link Texttext

Modify the link text.

Example
Autograph: Dendi
Stringoptional

See also[]

Advertisement