Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 00:50, 6 December 2024 by imported>The triple g
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header Template: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

  • Template:P: value to convert (e.g., 2400)
  • Template:P: full name of unit to convert from (e.g., game tick)
  • Template:P: full name of unit to convert to (e.g., second)
  • Template:P: optional, another full name of unit to convert to (e.g. minute)
  • Template:P: optional separator (defaults to a space with brackets)

Available units

  • 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

TemplateData

<templatedata> { "params": { "1": { "label": "Value", "description": "Value to convert", "type": "number", "required": true }, "2": { "label": "Convert from", "description": "Full name of unit to convert from", "type": "string", "suggestedvalues": [ "game tick", "redstone tick", "in-game day", "second", "minute" ], "required": true }, "3": { "label": "Convert to", "description": "Full name of unit to convert to", "type": "string", "suggestedvalues": [ "game tick", "redstone tick", "in-game day", "second", "minute" ], "required": true }, "4": { "label": "Convert to (2)", "description": "Convert to another unit", "type": "string", "suggestedvalues": [ "game tick", "redstone tick", "in-game day", "second", "minute" ] }, "separator": { "label": "Separator", "description": "Optional separator", "type": "string", "suggestedvalues": [ "=", "->" ], "default": "A space with brackets" } }, "description": "Converts Minecraft terms to real-life units and vice versa", "format": "inline", "paramOrder": [ "1", "2", "3", "4", "separator" ] } </templatedata>


fr:Modèle:Convertir/doc ja:テンプレート:Convert/doc pt:Predefinição:Conversão/doc uk:Шаблон:Конвертувати/док zh:Template:Convert/doc