Skip to main content

Shop and ranking tags

item-shop-card and ranking-window are data-bound tags that belong to the item shop and ranking clients rather than to the wiki.

item-shop-card​

AttributeRequirementDefaultConstraints/Notes
idRequirednoneItem shop item ID (integer). Must match an item loaded in ItemShopStore.
Base AttributesOptionalnoneInherits all common base attributes.

Renders a full ItemShopDisplayItem widget (200×145) with icon, name, price, quantity selector, and purchase button. The item data is pulled from ItemShopStore by id. The purchase button calls into the host window's interface module.

CAUTION

Should not contain any child elements. The item shop must be loaded (store populated) before this element renders correctly.

Code Example
<item-shop-card id="7" />

ranking-window​

AttributeRequirementDefaultConstraints/Notes
ranking-typeRequirednoneThe ranking to subscribe to.
widthRequirednoneWindow width, or auto.
heightRequirednoneWindow height.
rowsOptional10Number of rows shown.
show-paginationOptionaltruefalse hides the pagination controls.
more-infoOptionalfalsetrue adds a "more info" button at the bottom.
more-info-textOptionalMore InfoText of that button.
Base AttributesOptionalnoneInherits all common base attributes.

A self-contained ranking ladder: it subscribes to the ranking data when it is created and unsubscribes when the element is destroyed or rebuilt.

CAUTION

Should not contain any child elements.

Code Example
<ranking-window align="center" ranking-type="example_ranking" rows="2" width="auto" height="200" show-pagination="false" more-info="true"/>