Editing
Template
:
GenericData/doc
Give feedback
Jump to navigation
Jump to search
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!
== Usage == A shorthand wrapper template to retrieve raw technical values from datamined game data via [[Module:GenericData|Module:GenericData]]. This template can retrieve objective parameters, rejuvenator stats, item prices, soul distribution percentages, and [[Street Brawl]] specific parameters. == Parameters == <templatedata> { "params": { "1": { "label": "Function", "description": "The function name to call on Module:GenericData.", "type": "string", "required": true, "example": "get_streetbrawl_param, get_objective_param" }, "2": { "label": "Key", "description": "The data key to retrieve.", "type": "string", "required": true, "example": "m_vecGoldPerRound, Tier1GoldKill" }, "3": { "label": "Index", "description": "Optional. The list index to access if the key's value is an array (e.g. round number or player count).", "type": "number", "required": false, "example": "1" } }, "format": "inline", "paramOrder": ["1", "2", "3"], "description": "Retrieves a raw data value from the game's generic data files." } </templatedata> == Examples == === Street Brawl Data (Single Value) === <code>First team to win {{GenericData|get_streetbrawl_param|m_iScoreToWin}} rounds wins the match.</code> First team to win {{GenericData|get_streetbrawl_param|m_iScoreToWin}} rounds wins the match. === Street Brawl Data (Array Index) === <code>Round 3 soul budget is {{GenericData|get_streetbrawl_param|m_vecGoldPerRound|3}}.</code> Round 3 soul budget is {{GenericData|get_streetbrawl_param|m_vecGoldPerRound|3}}. === Street Brawl Data (Entire Array) === <code>Soul budgets per round: {{GenericData|get_streetbrawl_param|m_vecGoldPerRound}}.</code> Soul budgets per round: {{GenericData|get_streetbrawl_param|m_vecGoldPerRound}}. === Objective Data === <code>Tier 1 gold on kill: {{GenericData|get_objective_param|Tier1GoldKill}}.</code> Tier 1 gold on kill: {{GenericData|get_objective_param|Tier1GoldKill}}. === Item Price === <code>Tier 4 item cost: {{GenericData|get_tiered_item_price|4}}.</code> Tier 4 item cost: {{GenericData|get_tiered_item_price|5}}. === Trooper Gold Share === <code>3 players splitting trooper gold: {{GenericData|get_trooper_gold_share_frac|3}}.</code> 3 players splitting trooper gold: {{GenericData|get_trooper_gold_share_frac|3}}. <includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
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
Pages included on this page:
Template:GenericData
(
edit
)
Module:GenericData
(
edit
)
Data:GenericData.json
(
view source
) (⧼restriction-level-bot+⧽)
Navigation menu
Personal tools
Create account
Log in
associated-pages
Template
Discussion
English
Views
Read
Edit source
History
Tools
Search
Discord
Discord
Navigation
Main page
About us
Random page
Special pages
Recent changes
Neutral
2h ago
·
~2026-LaneFireUrn1085
Souls
2h ago
·
Gammaton32
Neutral
3h ago
·
~2026-LaneFireUrn1085
Victor/Lore
5h ago
·
Roseabrams96
Show more...
Interface Admin
Common CSS
Vector CSS
Minerva CSS
Citizen CSS
Brown theme CSS
Gadgets
Gadgets definition
Editing
How to edit
Style guide
All guides
New files
Unresolved feedback
Tools
What links here
Related changes
Page information