Template:MC/Convert/doc
More actions
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
- {{convert|12|game tick|redstone tick}}: Template:Convert
- {{convert|2400|game tick|minute|separator=->}}: Template:Convert
- {{convert|12|second|game tick|redstone tick|separator==}}: Template:Convert
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