Changes

Jump to: navigation, search

Template:Convert

2,034 bytes added, 16:41, 29 February 2020
no edit summary
<includeonly>{{ #ifeqvardefine:unit-from | {{ #switch: {sortable|{lc:{{{2}}}}} |onminute |minutes | min | mins = minute | second | seconds | sec | secs = second | tick | ticks | game tick | game ticks | #default = game tick | redstone tick | redstone ticks = redstone tick | in-game day | in-game days = in-game day }}}}{{ntsh #vardefine: unit-to |{{FORMATNUM #switch:{{lc:{1{{3}}}}} |Rminute | minutes | min | mins = minute | second | seconds | sec | secs = second | tick | ticks | game tick | game ticks = game tick | redstone tick | redstone ticks = redstone tick | in-game day | in-game days = in-game day | #default = {{#switch: {{#var: unit-from}}| second = game tick | #default = second }} }}}}{{convert/{1}}} {{ #ifswitch:1{{#var: unit-from}} |game tick | redstone tick | in-game day = {{ #if: {2{#var: convert-link-from-{{#var: unit-from}}| }} | {{#var: unit-from}} |[[{{FORMATNUM#var:unit-from}}]]{{#vardefine: convert-link-from-{1}{#var: unit-from}}|Rtrue }} }} |second | minute = {{#ifeqvar:unit-from}}}}{{#exprifeq:{{{3|01}}}*0}}|01 |0|s }}{{ #switch: {{{sep|{{{3seperator|}}}}}} || () | brackets = &#32;( | ; | : | , = {{{4sep|{{{seperator}}}}}}&#32; |br | <br> = <br>( | #default = {{{5sep|{{{seperator}}}|}}}}}{{formatnum:{6{ #vardefineecho: conversion |{{ #expr: {{{1}}}|{{ #switch: {7|{#var: unit-from}}, {{#var: unit-to}} |second, game tick = *20 | game tick, second = /20 | second, redstone tick = *10 | redstone tick, second = /10 | minute, game tick = *20*60 | game tick, minute = /20/60 | minute, redstone tick = *10*60 | redstone tick, minute = /10/60 | in-game day, minute = *20 | minute, in-game day = /20 | mile, kilometer = *20*60 | second, in-game day = /20/60 | in-game day, game tick = *24000 | game tick, in-game day = /24000  }} }}}} }} {{ #switch: {8|}{#var: unit-to}} |rgame tick | redstone tick | in-game day ={{ #ifeqif:{{#var: convert-link-to-{sp}{#var: unit-to}}|uk|re|er}} |d=L{{{lk|off#var: unit-to}}}A | [[{{#switchvar:unit-to}}]]{{#vardefine: convert-link-to-{abbr{#var: unit-to}}| true }} }} |off=nonesecond |defminute =off|{{{abbr|off#var: unit-to}}}}}D{{#ifeq: {disp|b{#var: conversion}}| 1 ||s}S}{{ #switch: {{{adjsep|{{{singseperator|off}}}}}} |s| () | brackets | br | <br> ={{{sigfig) |}}}#default =}}</includeonly><noinclude>{{Documentationdocumentation}}<!-- Put categories/interwiki on the documentation page --></noinclude>



Navigation menu