Template:Incode/doc

来自Terraria Wiki
跳到导航 跳到搜索

For use primarily in item infoboxes as the damage value when the source code lists one value, and then manipulates it later in the code. For example, in the 1.3.0.1 update, several weapons' damage values were buffed further down in the code by multiplying by 1.15. Less-experienced code-checkers are less likely to change the damage value back to the "old" value when they see this used.

Usage

{{incode|math formula}}

Example

This code Results in
damage = {{incode|44*1.15}} {{icon|desktop}} / 44 {{icon|console}}{{icon|mobile}} damage = 50 电脑版 / 44 主机版移动版