Template:CosmeticsItem

From Realm Royale Wiki
Jump to: navigation, search

{{{name}}}


{{{content}}}



Code

{{CosmeticsItem
|name=
|rarity=
|icon=
|content=
|source=
|width=
}}

Usage

  • name: The name of item as it is displayed in game client.
  • icon: Link to a file to use as icon.
  • content: Preview of item. Usually a link to file, or link to list of voice lines for a Voice Pack.
  • rarity: Rarity of the item. Can be one of:
    • Common
    • Rare
    • Epic
    • Legendary
  • source: The way item is obtained.
  • width: Minimal width of item card. Usually 50% for emotes, and 25% for everything else. Defaults to 25%.

It's important that template itself must be placed within a tag with style display set to flex and flex-wrap set to wrap.

Example

<div style="display: flex; flex-wrap: wrap;">{{CosmeticsItem
|name=Warrior
|icon=[[File:Icon Skin Warrior Default.png|150px]]
|content=[[File:Skin Warrior.png|250px]]
|rarity=Common
|source=Free
}}{{CosmeticsItem
|name=Assassin
|icon=[[File:Icon Skin Assassin Default.png|150px]]
|content=[[File:Skin Assassin.png|250px]]
|rarity=Common
|source=Free
}}{{CosmeticsItem
|name=Mage
|icon=[[File:Icon Skin Mage Default.png|150px]]
|content=[[File:Skin Mage.png|250px]]
|rarity=Common
|source=Free
}}{{CosmeticsItem
|name=Hunter
|icon=[[File:Icon Skin Hunter Default.png|150px]]
|content=[[File:Skin Hunter.png|250px]]
|rarity=Common
|source=Free
}}</div>

Result:

Warrior

(Common)

Icon Skin Warrior Default.png

Skin Warrior.png

Free

Assassin

(Rare)

Icon Skin Assassin Default.png

Skin Assassin.png

Free

Mage

(Epic)

Icon Skin Mage Default.png

Skin Mage.png

Free

Hunter

(Legendary)

Icon Skin Hunter Default.png

Skin Hunter.png

Free