Home
Random
Log in
Settings
About the Deadlock Wiki
Search
Editing
Template
:
HeroStreetBrawlItems/doc
Give feedback
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
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): <pre>== Street Brawl == {{HeroStreetBrawlItems|HERO NAME}}</pre> {| class="wikitable" ! Parameter !! Required !! Description |- | <code>1</code> || Yes || The hero's in-game display name, e.g. <code>Holliday</code> or <code>Seven</code>. |- | <code>id</code> || No || Anchor id for the collapsible "Show all items" gate. Defaults to <code>sb-items</code>; give each transclusion a unique id if a single page has more than one. |} === Examples === <code><nowiki>{{HeroStreetBrawlItems|Holliday}}</nowiki></code> <code><nowiki>{{HeroStreetBrawlItems|Seven|id=seven-brawl}}</nowiki></code> == 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 <code>:target</code> toggle, which is what the <code>id</code> anchors point at, so the <code>id</code> must 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. == Localization == The template carries no hardcoded English. Every visible string is looked up at render time, and the language is taken from the page title suffix, so <code><nowiki>{{HeroStreetBrawlItems|Abrams}}</nowiki></code> on ''Abrams/ru'' renders in Russian with no extra parameters. [[Module:StreetBrawlItems]] itself holds no display text β all labels are passed in by this template. The hero name in the intro and in the counter note goes through <code><nowiki>{{HeroIcon|β¦|no-file=true|no-link=true}}</nowiki></code>, which yields the localized hero name with no icon and no self-link. The Legendary tier label reuses Valve's own string via <code><nowiki>{{#invoke:Lang|get_string|Citadel_ItemDraft_Legendary}}</nowiki></code>, so it is already translated everywhere. The remaining strings live in [[Data:Dictionary]]: {| class="wikitable" ! Key !! English !! Notes |- | <code>HeroStreetBrawlItemsIntro</code> || ''(intro paragraph)'' || <code><nowiki>{{{1}}}</nowiki></code> is the hero name. Contains a link to [[Street Brawl]]; translations should point at the localized page. |- | <code>HeroStreetBrawlItemsHighChance</code> || High chance || Column heading |- | <code>HeroStreetBrawlItemsAverageChance</code> || Average chance || Column heading |- | <code>HeroStreetBrawlItemsLowChance</code> || Low chance || Column heading |- | <code>HeroStreetBrawlItemsTier</code> || Tier <nowiki>{{{1}}}</nowiki> || <code><nowiki>{{{1}}}</nowiki></code> is the tier number 1β4; word order may be changed freely |- | <code>HeroStreetBrawlItemsCounterHeading</code> || Counter items || Section heading |- | <code>HeroStreetBrawlItemsCounterNote</code> || ''(counter note)'' || <code><nowiki>{{{1}}}</nowiki></code> is the hero name |- | <code>HeroStreetBrawlItemsShowAll</code> || Show all items || Expand link; keep it short |- | <code>HeroStreetBrawlItemsHide</code> || Hide || Collapse link; keep it short |} Only English values exist so far. Until a language is filled in, that language falls back to English and the string is tagged with {{tl|NeedsTranslationTooltip}}. <includeonly><!-- Categories for the template itself go below this line --> </includeonly>
Summary:
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Page included on this page:
Template:Tl
(
edit
)