VOOZH about

URL: https://minecraft.wiki/w/Template:Convert

⇱ Template:Convert – Minecraft Wiki


Template:Convert

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template uses Module:Convert, a script written in Lua.

Converts Minecraft terms to real-life units and vice versa. To convert other units, use the corresponding template on Wikipedia, then copy the output to the desired page.

Parameters

[edit source]
  • |1=: value to convert (e.g., 2400)
  • |2=: full name of unit to convert from (e.g., game tick)
  • |3=: full name of unit to convert to (e.g., second)
  • |4=: optional, another full name of unit to convert to (e.g. minute)
  • |separator=: optional separator (defaults to a space with brackets)

Available units

[edit source]
  • game tick (tick, ticks, gt, game ticks or game tick)
  • redstone tick (rt, redstone ticks or redstone tick)
  • in-game day (day, days, igd, in game day or in-game day)
  • second (s, sec, secs, seconds or second)
  • minute (m, min, mins, minutes or minute)

Examples

[edit source]
  • {{|12|game tick|redstone tick}}: 12 game ticks (6 redstone ticks)
  • {{|2400|game tick|minute|separator=->}}: 2400 game ticks -> 2 minutes
  • {{|12|second|game tick|redstone tick|separator==}}: 12 seconds = 240 game ticks = 120 redstone ticks

TemplateData

[edit source]

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Value1

Value to convert

Numberrequired
Convert from2

Full name of unit to convert from

Suggested values
game tick redstone tick in-game day second minute
Stringrequired
Convert to3

Full name of unit to convert to

Suggested values
game tick redstone tick in-game day second minute
Stringrequired
Convert to (2)4

Convert to another unit

Suggested values
game tick redstone tick in-game day second minute
Stringoptional
Separatorseparator

Optional separator

Suggested values
= ->
Default
A space with brackets
Stringoptional
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Convert/doc.
Retrieved from "https://minecraft.wiki/w/Template:Convert?oldid=2456989"

Navigation menu