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 the list of vehicles that have this item (typically a vehicle component such as a quantum drive, shield generator, or weapon) installed in their loadout, as a grid of image tiles. Inverse of Template:Entity/Related: Related shows variants and set pieces of an item, UsedBy shows the hosts that equip it. 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 — the vehicles data comes from the items endpoint. Non-item entities, API failures, and items not used by any vehicle all render a muted "No vehicles known to use this item." placeholder so the page layout stays stable.

Usage

Explicit UUID:

{{Entity/UsedBy|uuid=08a5bfdb-1972-421f-83fe-be03b7ac5222}}

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

== Used by ==
{{Entity/UsedBy}}

Parameters

Renders the list of vehicles that have this item installed in their loadout, as a grid of image tiles. Inverse of Template:Entity/Related: Related shows variants and set pieces of an item, UsedBy shows the hosts that equip it.

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
08a5bfdb-1972-421f-83fe-be03b7ac5222
Karakterláncnem kötelező

Behavior

  • Renders a single tile grid sorted by manufacturer code then by name, so vehicles from the same brand (e.g. all Anvil Hornets) cluster naturally without needing explicit sub-headings.
  • Each tile shows the vehicle's page image (resolved via the SMW Page Image property) with the vehicle name overlaid at the bottom and the in-game role (e.g. Medium Fighter) as a small kicker above the name.
  • Tile aspect ratio is 16 / 9 — vehicle hero shots are typically landscape, so the wider crop suits them better than the 3 / 4 ratio Related uses for portrait item renders.
  • The whole tile is clickable. MediaWiki's sanitizer strips raw <a> tags, so each tile uses a "fakelink": a transparent absolutely-positioned [[Page|Page]] wikilink wrapper that stretches to fill the tile.
  • Link target is resolved via the SMW uuid property so disambiguated wiki titles (e.g. Hyperion (quantum drive) for variants in the Related template, or any vehicle whose API name collides with another article) link to the canonical article rather than the disambiguation hit.
  • Vehicles without a Page Image SMW value fall back to the Tiles placeholder so the grid layout stays stable.
  • Empty state: when the upstream fetch fails, the entity isn't an item, or no vehicles equip it, the template renders a single muted line: "No vehicles known to use this item." The container always renders, so the page layout doesn't shift between items that have hosts and items that don't.

See also