Difference between revisions of "Template:PracticeLog/TranslateDuration"

From West Of Vipers Gate
(Created page with "{{#switch: {{{2}}} | hours = {{{1}}} | days = {{#expr: 24 * {{{1}}} }} | weeks = {{#expr: 168 * {{{1}}} }} <!-- 24 * 7 --> | months = {{#expr: 720 * {{{1}}} }} <!-- 24...")
 
m
 
Line 1: Line 1:
 
{{#switch: {{{2}}}
 
{{#switch: {{{2}}}
 +
| hour
 
| hours  = {{{1}}}
 
| hours  = {{{1}}}
 +
| day
 
| days  = {{#expr:  24 * {{{1}}} }}
 
| days  = {{#expr:  24 * {{{1}}} }}
 +
| week
 
| weeks  = {{#expr:  168 * {{{1}}} }} <!-- 24 * 7 -->
 
| weeks  = {{#expr:  168 * {{{1}}} }} <!-- 24 * 7 -->
 +
| month
 
| months = {{#expr:  720 * {{{1}}} }} <!-- 24 * 30 -->
 
| months = {{#expr:  720 * {{{1}}} }} <!-- 24 * 30 -->
 +
| year
 
| years  = {{#expr: 8640 * {{{1}}} }} <!-- 24 * 30 * 12-->
 
| years  = {{#expr: 8640 * {{{1}}} }} <!-- 24 * 30 * 12-->
 
}}
 
}}

Latest revision as of 18:44, 4 May 2022