Template:HeroStreetBrawlItems/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Create documentation for Template:HeroStreetBrawlItems (with help from vergir-bot LLM) |
Remove Documentation subpage template (not present on this wiki) (with help from vergir-bot LLM) |
||
| Line 1: | Line 1: | ||
Renders the '''[[Street Brawl]]''' item-chance section for a hero page. For each tier, the Street Brawl item pool is split by how likely each item is to be offered to the hero — '''High''', '''Average''', or '''Low chance''' — followed by any items that counter the hero. Weightings come from [[Data:StreetBrawlData.json]] via [[Module:StreetBrawlItems]]; item names and tiers from [[Data:ItemData.json]], hero names from [[Data:HeroData.json]]. | Renders the '''[[Street Brawl]]''' item-chance section for a hero page. For each tier, the Street Brawl item pool is split by how likely each item is to be offered to the hero — '''High''', '''Average''', or '''Low chance''' — followed by any items that counter the hero. Weightings come from [[Data:StreetBrawlData.json]] via [[Module:StreetBrawlItems]]; item names and tiers from [[Data:ItemData.json]], hero names from [[Data:HeroData.json]]. | ||
Revision as of 23:20, 25 July 2026
Renders the Street Brawl item-chance section for a hero page. For each tier, the Street Brawl item pool is split by how likely each item is to be offered to the hero — High, Average, or Low chance — followed by any items that counter the hero. Weightings come from Data:StreetBrawlData.json via Module:StreetBrawlItems; item names and tiers from Data:ItemData.json, hero names from Data:HeroData.json.
Usage
Place it under a section heading (the template supplies the intro and the per-tier content, but not a top-level heading):
== Street Brawl ==
{{HeroStreetBrawlItems|HERO NAME}}
| Parameter | Required | Description |
|---|---|---|
1 |
Yes | The hero's in-game display name, e.g. Holliday or Seven.
|
id |
No | Anchor id for the collapsible "Show all items" gate. Defaults to sb-items; give each transclusion a unique id if a single page has more than one.
|
Examples
{{HeroStreetBrawlItems|Holliday}}
{{HeroStreetBrawlItems|Seven|id=seven-brawl}}
Notes
- The section is collapsed by default. Readers expand it with the Show all items link and collapse it again with Hide. This is a pure-CSS
:targettoggle, which is what theidanchors point at, so theidmust be unique on the page. - Columns only appear when they hold items: Low chance is dropped when the hero has none, and the Counter items block is omitted when the hero has no counters.
- Legendary (Tier 5) cards omit the redundant tier badge, and all cards render in low-graphics mode to keep these card-heavy pages responsive.
- Styling comes from Template:HeroStreetBrawlItems/styles.css, loaded automatically.