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 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[edit]