Template:Real-life size

来自Terraria Wiki
跳到导航 跳到搜索
Template-info.svg 文档 以下文档来自Template:Real-life size/doc。(编辑 | 历史

This template is used to display the real-life equivalent of a length of something in Terraria. It converts Terraria's pixel lengths into real-life units of measurement. The basis for this conversion is the assumption that the player character (48 pixels in height) is 1.75 meters tall, i.e. a conversion factor of 175/48 from pixels to centimeters.

Usage

{{ real-life size | <pixels> | meters/feet/yards }}

参数描述类型状态
Pixel input1
In-game length in pixels; 16 pixels = 1 tile
单行文本
必填
Output unit2
The unit of the output
建议值:
{ [1] = meters,[2] = feet,[3] = yards,}
默认值:
meters
单行文本
推荐

此模板首选参数行内格式。

Examples

Code Result
{{real-life size|48|feet}} ({{real-life size|48|meters}} m) 5′ 9″ (1.75 m)
{{real-life size|195*16|yards}} yards ({{real-life size|195*16|meters}} m) 124.4 yards (113.75 m)
Assuming that the player is at {{real-life size|48|feet}} ({{real-life size|48|meters}} m) in terms of height, the Eye of Cthulhu would be about {{real-life size|{{npcinfo|Eye of Cthulhu|height}}|feet}} ({{real-life size|{{npcinfo|Eye of Cthulhu|height}}|meters}} m) tall. Assuming that the player is at 5′ 9″ (1.75 m) in terms of height, the Eye of Cthulhu would be about 13′ 2″ (4.01 m) tall.