Jump to content
Toggle menu
  • 12,3 E szócikkek
  • 21,5 E fájlok
  • 4 felhasználók
  • 63,9 E szerkesztések
SCWIKI
Toggle preferences menu
Toggle personal menu
Nem vagy bejelentkezve
Your IP address will be publicly visible if you make any edits.

Renders an at-a-glance summary of where an entity can be acquired in-game, followed by a collapsible card of shop terminal prices. Designed to sit further down an entity page as body content, separate from the Template:Entity infobox at the top. Reads the same upstream API data via Module:Entity/Data, so the cache is shared with any other Entity-family template on the page.

Items only today — shop pricing comes from UEX via the items endpoint. The summary grid always renders; the shop card renders a "No shop data in UEX" notice when prices are missing.

Usage

Explicit UUID:

{{Entity/Availability|uuid=80ee3b95-5665-4548-9e2d-d2067895c0ac}}

When Template:Entity has been invoked earlier on the page, the UUID can be omitted — it falls back to the value stored in SMW on the current page:

{{Entity}}

== Availability ==
{{Entity/Availability}}

Editor overrides for the summary flags (only set when the API-derived value is wrong or unknown):

{{Entity/Availability|canLoot=no|canCraft=yes}}

Parameters

Renders an at-a-glance summary of where an entity can be acquired in-game, followed by a collapsible card of shop terminal prices. Designed to sit further down an entity page as body content, separate from the Template:Entity infobox at the top. Reads the same upstream API data via Module:Entity/Data, so the cache is shared with any other Entity-family template on the page.

Sablonparaméterek

Ennek a sablonnak ajánlott egy sorba írni a paramétereit.

ParaméterLeírásTípusÁllapot
UUIDuuid

UUID of the entity to render. If omitted, defaults to the UUID stored in SMW (set by Template:Entity on a prior parse). Required if Template:Entity hasn't been invoked.

Példa
80ee3b95-5665-4548-9e2d-d2067895c0ac
Karakterláncnem kötelező
Can buycanBuy

Override for the Buy summary card. Set to no when UEX has stale prices for an item that's been removed from shops.

Példa
no
Logikainem kötelező
Can rentcanRent

Whether the entity is rentable. Items aren't structurally rentable, so the Rent card is hidden by default — set this only when an item exposes a real rental mechanic. Vehicles will default-on once Module:Entity/Vehicle lands.

Példa
yes
Logikainem kötelező
Can lootcanLoot

Whether the entity is lootable. Override for the Loot summary card. Use when the API tag is missing or wrong.

Példa
yes
Logikainem kötelező
Can craftcanCraft

Whether the entity is craftable. Override for the Craft summary card.

Példa
no
Logikainem kötelező
Can pledgecanPledge

Whether the entity is pledgable. Override for the Pledge summary card. Use when the item is buyable in the pledge store but not flagged as promotional.

Példa
yes
Logikainem kötelező

Behavior

  • Renders a responsive 5-card summary grid: Buy, Rent (only when set), Loot, Craft, Pledge. Each card shows the category icon, label, and a yes/no/unknown state communicated through icon and color (success / muted / warning).
  • Below the summary, a collapsible 🛒 Shops card lists UEX shop terminal prices in a sortable table — System, Location, Buy, Sell, Updated, Version. Both location columns are wikilinked to their parent locations. Prices use thousands separators (123,456). The version column is trimmed from the full 4.7.2-LIVE.11674325 to just the marketing portion (4.7.2) so players can gauge how stale a row is.
  • The shop card's subtitle summarises the data: N locations · Buy <range> · Sell <range>. Single-sided markets are labelled accordingly (Buy <range> · Not sellable).
  • When UEX has no data for the item, the shop card collapses to a static "No shop data in UEX" header — same visual shell, no expand affordance.
  • Editor canX flags accept any Module:Yesno input (yes, 1, true, no, 0, false, etc.). When unset, each flag falls back to its API-derived value (or Unknown when the API can't tell).
  • Footer line credits UEX: Data from UEX Corp.

See also