Sablon:Entity/UsedBy/doc
More actions
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.
| Paraméter | Leírás | Típus | Állapot | |
|---|---|---|---|---|
| UUID | uuid | 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.
| Karakterlánc | nem 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 Imageproperty) 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 the3 / 4ratio 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
uuidproperty 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 ImageSMW 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
- Template:Entity — the main entity infobox; sets the SMW UUID this template falls back to.
- Template:Entity/Availability — sibling renderer for shop/loot/pledge availability.
- Template:Entity/Description — sibling renderer for the in-game description.
- Template:Entity/Related — sibling renderer for variants and set components.
- Module:Entity/UsedBy — implementation.