Template:Real-life size

From Terraria Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Real-life size/doc. (edit | history)

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 }}

ParameterDescriptionTypeStatus
Pixel input1
In-game length in pixels; 16 pixels = 1 tile
Line
required
Output unit2
The unit of the output
Suggested values:
{ [1] = meters,[2] = feet,[3] = yards,}
Default:
meters
Line
suggested

This template prefers inline formatting of parameters.

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.