현재 한국어 테라리아 위키는 매우 큰 수술이 진행 중입니다!
현재 한국어 테라리아 위키는 콘텐츠, 내부 코드, 게임 내외 번역 전부가 전부 노후화되어 있습니다.
수 년, 어쩌면 10년 이상 인공호흡기만 찬 위키에, 다시 한 번 활기를 되찾아주려 하고 있습니다.
만약 테라리아 공식 위키의 높은 퀄리티의 정보를 한국어로 보러 오신 분들은, 잠시만 다른 커뮤니티를 이용해 주세요.
이 위키를 읽어주신 분들, 관심 가져주시는 분들 전부 감사드립니다!
--Minejango2 (토론) 2026년 3월 11일 (수) 08:43 (UTC)
틀:Duration
둘러보기로 이동
검색으로 이동
Template:Duration 문서를 참조하면, 한국어판에서 누락되었을 수 있는 최신 설명문서도 확인할 수 있습니다.
Format a time value, input in seconds.
Usage
{{ duration | <time in seconds> | <maximum unit> | round = <rounding level> }}
- First unnamed parameter
Number, time in seconds. Any valid {{#[[[:틀:Tl/parser function links]]##expr expr]:}} string is accepted.
- Second unnamed parameter
Greatest unit of the output. Can be any of , seconds (default), minutes, hours, and days, or weeks, s, m, h, and d for short, respectively.
w
- round
Rounding level for decimal seconds, by default.
2
Examples
| Code | Result |
|---|---|
{{duration|41}} |
41 |
{{duration|40.75}} |
40.75 |
{{duration|90}} |
1 30 |
{{duration|1800}} |
30 0 |
{{duration|7201}} |
120 1 |
{{duration|604800}} |
10,080 0 |
{{duration|604800|weeks}} |
1 0 |
{{duration|7201|weeks}} |
2 1 |
{{duration|604800|d}} |
7 0 |
{{duration|7201|w}} |
2 1 |
{{duration|1/3}} |
0.33 |
{{duration|1/3|round=6}} |
0.333333 |
{{duration|(35/11 mod 2) - (10^-2 / pi*3) + ceil(21/6)}} |
4.99 |
{{duration|{{#[[[:틀:Tl/parser function links]]##time time]:U|+3 days 2 hours 44 minutes 23 seconds}}-{{#time:U}}|days}} |
3 2 44 24 |
{{duration|{{#time:U|+2 days 37 hours 98 minutes 63 seconds}}-{{#time:U}}|hours}} |
86 39 4 |
{{duration|-41}} |
−41 |
{{duration|-3601|days}} |
−1 1 |
{{duration|0}} |
0 |
{{duration|0.001}} |
0 |
{{duration|-0.001}} |
−0 |
{{duration|0.001|round=5}} |
0.001 |