Audio migration in progress. Some responses pages / audio files may have broken file links.

Template:Cosmetic/doc

From Dota 2 Wiki
Jump to: navigation, search
Lua logo.svg
▶️ Swapsies!
This template uses Lua.
Its code can be found under Module:Cosmetic.


Usage[edit]

{{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}}

How this looks if used incorrectly:

TemplateData[edit]

Displays a cosmetic item's icon and rarity.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Cosmetic1

The cosmetic item's name.

Default
empty
Example
Dragonclaw Hook
Auto value
empty
Stringrequired
Icon Size2userparam

no description

Default
100px
Example
empty
Auto value
empty
Stringoptional
Linklink

Modify the link destination

Default
empty
Example
Inscribed Gem#Axe
Auto value
empty
Stringoptional
Link Texttext

Modify the link text.

Default
empty
Example
Autograph: Dendi
Auto value
empty
Stringoptional

See also[edit]