模板: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 主機版移動版