String Interpolation

In WARFRAME, some localized messages use string interpolation in order to embed variable values in the game's UI text.
==Syntax==
WARFRAME uses the variable name in all caps surrounded by vertical bar characters (|) in order to embed them in localized messages. For example, internally, the EN localized message for the Armor stat description is stored as:
Reduces damage to Health by |AMOUNT|%.
Shields are not affected by Armor
where |AMOUNT| is the calculated Damage Reduction percentage gained from Armor.
==Examples==
According to Public Export's contents,
*Warframe passive descriptions
*Warframe ability descriptions
Other known usage of string interpolation include:
*Stat tooltip descriptions
*Dialog subtitlesSee WARFRAME Wiki:Audio Files
*Sortie mission flavor text
Known variables:
*|AMOUNT|
*|PLAYER_NAME| (e.g. used in Lieutenant Lech Kril's subtitles)
*|PLAYER_WARFRAME|
*|LOCAL_PLAYER_NAME|
*|BOSS_TAG| (boss name, used in Death Mark)
*|UNFINISHED_MAP_NODES| (from Arbitrations vendor)
*|STACKS|https://overframe.gg/items/arsenal/368/power-throw/
*|CONDITION|
*|TIME|
*|NAME|
==Trivia==
*Very rarely the in-game UI bugs out and players will be exposed to the raw localized message which is how this implementation was discovered.
==Media==
==Patch History==
==References==
==See Also==
*Text Icons, for a similar concept but embedding image icons in text instead.
==External Links==
*https://en.wikipedia.org/wiki/String_interpolation
Category:Mechanics