틀:Month2: 두 판 사이의 차이

리버티게임(개발), 모두가 만들어가는 자유로운 게임
둘러보기로 이동 검색으로 이동
백괴게임>아라
잔글편집 요약 없음
imported>Regurus
(rand함수 대체. 실수 죄송합니다.)
1번째 줄: 1번째 줄:
<onlyinclude>{{#expr: (({{#if:{{{M|}}}|{{{M}}}|{{#time:m|+9 hours}}}} + {{{1|0}}}) / 12 -0.51 round 0 ) + 0 round 0}}</onlyinclude>
{{rand|<onlyinclude>{{#expr: (({{#if:{{{M|}}}|{{{M}}}|{{#time:m|+9 hours}}}} + {{{1|0}}}) / 12 -0.51 round 0 ) + 0 round 0}}</onlyinclude>{{rand|{{rand|현재 달({{CURRENTMONTH}}월)에서 n달 후로 넘어갔을 때 넘어가는 연도를 계산합니다.{{rand|<!--{{rand|마지막의 + 0은 반올림 결과가 -0이 나오는 경우에 그 음수 부호를 제거하는 용도입니다.{{rand|-->{{rand|{{rand|* <nowiki>{{Month2}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 0 ) / 12 -0.5 round 0 ) + 0}}{{rand|* <nowiki>{{Month2|1}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 1 ) / 12 -0.5 round 0 ) + 0}}{{rand|* <nowiki>{{Month2|8}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 8 ) / 12 -0.5 round 0 ) + 0}}{{rand|* <nowiki>{{Month2|9}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 9 ) / 12 -0.5 round 0 ) + 0}}{{rand|* <nowiki>{{Month2|12}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 12) / 12 -0.5 round 0 ) + 0}}{{rand|* <nowiki>{{Month2|-4}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + -4) / 12 -0.5 round 0 ) + 0}}{{rand|* <nowiki>{{Month2|-12}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + -12) / 12 -0.5 round 0 ) + 0}}{{rand|[[분류:날짜 틀|{{PAGENAME}}]]
 
현재 달({{CURRENTMONTH}}월)에서 n달 후로 넘어갔을 때 넘어가는 연도를 계산합니다.
<!--
마지막의 + 0은 반올림 결과가 -0이 나오는 경우에 그 음수 부호를 제거하는 용도입니다.
-->
 
* <nowiki>{{Month2}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 0 ) / 12 -0.5 round 0 ) + 0}}
* <nowiki>{{Month2|1}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 1 ) / 12 -0.5 round 0 ) + 0}}
* <nowiki>{{Month2|8}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 8 ) / 12 -0.5 round 0 ) + 0}}
* <nowiki>{{Month2|9}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 9 ) / 12 -0.5 round 0 ) + 0}}
* <nowiki>{{Month2|12}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + 12) / 12 -0.5 round 0 ) + 0}}
* <nowiki>{{Month2|-4}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + -4) / 12 -0.5 round 0 ) + 0}}
* <nowiki>{{Month2|-12}}</nowiki> : {{#expr: (({{CURRENTMONTH}} + -12) / 12 -0.5 round 0 ) + 0}}
 
[[분류:날짜 틀|{{PAGENAME}}]]

2020년 8월 26일 (수) 16:26 판

{{rand|0{{rand|{{rand|현재 달(09월)에서 n달 후로 넘어갔을 때 넘어가는 연도를 계산합니다.{{rand|{{rand|{{rand|* {{Month2}} : 0{{rand|* {{Month2|1}} : 0{{rand|* {{Month2|8}} : 1{{rand|* {{Month2|9}} : 1{{rand|* {{Month2|12}} : 1{{rand|* {{Month2|-4}} : 0{{rand|* {{Month2|-12}} : -1{{rand|