[go: nahoru, domu]

본문으로 이동

틀:이전 시간/설명문서: 두 판 사이의 차이

위키백과, 우리 모두의 백과사전.
내용 삭제됨 내용 추가됨
편집 요약 없음
 
(사용자 9명의 중간 판 31개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{설명문서 안내}}
{{틀 설명 소개하기}}<onlyinclude><includeonly>{{틀 설명 연결하기}}</includeonly>
이 '''이전 시간''' 틀은 어떤 시간으로부터 지금까지 얼마나 지났는지 계산해주는 틀입니다.
The '''Time ago''' template calculates the amount of time which has passed since a provided timestamp. The result is a string similar to one of the examples below. This template ''should not'' be used with "subst" unless you don't want the stamp to change as the user refreshes the page.

Note that due to Wikipedia's caching mechanisms, you may need to [[WP:PURGE|purge]] a page using this template to update the dynamic value.


=== 사용법 ===
=== 사용법 ===
* <code><nowiki>{{</nowiki>'''이전 시간'''|''timestamp''<nowiki>}}</nowiki></code>
* <code><nowiki>{{</nowiki>'''이전 시간'''|계산할 시간<nowiki>}}</nowiki></code>


*'''한글은 적용되지 않습니다. 되도록 20080611과 같이 연월일이 생략된 형태를 써주세요.'''
The timestamp can be almost any solid, readable format but to avoid ambiguity mistakes, one of the styles below is preferred.

* <code>magnitude</code> 변수는 can be set to explicitly use certain unit. Allowed values are: <code>초</code>, <code>minutes</code>, <code>hours</code>, <code>days</code>, <code>weeks</code>, <code>months</code> <code>년</code>.
* <code>min_magnitude</code> 변수는 can be set to user certain unit or bigger units. Allowed values are: <code>seconds</code>, <code>minutes</code>, <code>hours</code>, <code>days</code>, <code>months</code> and <code>years</code>.
* <code>ago</code> 변수는 can be set to override the default usage of the text "<code>ago</code>".


=== 예 ===
=== 예 ===
* <tt><nowiki>{{이전 시간| -83 minutes}}</nowiki></tt> → '''{{이전 시간|-83 }}'''
* <code><nowiki>{{이전 시간| -83 minutes}}</nowiki></code> → '''{{이전 시간|-83 minutes}}'''
* <tt><nowiki>{{이전 시간| -334 minutes}}</nowiki></tt> → '''{{이전 시간|-334 }}'''
* <code><nowiki>{{이전 시간| -334 minutes}}</nowiki></code> → '''{{이전 시간|-334 minutes}}'''
* <tt><nowiki>{{이전 시간|{{REVISIONTIMESTAMP}}}}</nowiki></tt> → '''{{이전 시간|{{REVISIONTIMESTAMP}}}}'''
* <code><nowiki>{{이전 시간|{{REVISIONTIMESTAMP}}}}</nowiki></code> → '''{{이전 시간|{{REVISIONTIMESTAMP}}}}'''
* <tt><nowiki>{{이전 시간| Jan 21, 2001 3:45 PM}}</nowiki></tt> → '''{{이전 시간|2001년 1월 21일 3:45 PM}}'''
* <code><nowiki>{{이전 시간| 20081106}}</nowiki></code> → '''{{이전 시간|20081106}}'''
* <tt><nowiki>{{이전 시간| Nov 6 2008}}</nowiki></tt> → '''{{이전 시간|2008년 11월 6일}}'''
* <code><nowiki>{{이전 시간| 20081106|magnitude=주}}</nowiki></code> → '''{{이전 시간|20081106|magnitude=주}}'''
* <tt><nowiki>{{이전 시간| Nov 6 2008|magnitude=weeks}}</nowiki></tt> → '''{{이전 시간|2008년 11월 6일|magnitude=}}'''
* <code><nowiki>{{이전 시간| 20081106|min_magnitude=}}</nowiki></code> → '''{{이전 시간|20081106|min_magnitude=}}'''
* <tt><nowiki>{{이전 시간| Nov 6 2008|min_magnitude=days}}</nowiki></tt> → '''{{이전 시간|2008년 11월 6일|min_magnitude=}}'''
* <code><nowiki>{{이전 시간| 20081106|min_magnitude=}}</nowiki></code> → '''{{이전 시간|20081106|min_magnitude=}}'''
* <tt><nowiki>{{이전 시간| Nov 6 2008|min_magnitude=years}}</nowiki></tt> → '''{{이전 시간|2008년 11월 6일|min_magnitude=년}}'''
* <tt><nowiki>{{이전 시간| Nov 6 2008|ago=in the past}}</nowiki></tt> → '''{{이전 시간|2008년 11월 6일|ago=in the past}}'''


=== 같이 보기 ===
=== 같이 보기 ===
28번째 줄: 20번째 줄:


<includeonly>
<includeonly>
[[분류:날짜 계산용 틀]]
[[Category:Mathematical time and date function templates]]
</includeonly>

[[af:Sjabloon:Tyd_gelede]]
<!-- 여기에 분류와 인터위키를 넣어주세요. -->

</includeonly></onlyinclude>

2020년 9월 9일 (수) 10:34 기준 최신판

이전 시간 틀은 어떤 시간으로부터 지금까지 얼마나 지났는지 계산해주는 틀입니다.

사용법

[편집]
  • {{이전 시간|계산할 시간}}
  • 한글은 적용되지 않습니다. 되도록 20080611과 같이 연월일이 생략된 형태를 써주세요.

[편집]
  • {{이전 시간| -83 minutes}}83분 전
  • {{이전 시간| -334 minutes}}5시간 전
  • {{이전 시간|{{REVISIONTIMESTAMP}}}}3년 전
  • {{이전 시간| 20081106}}15년 전
  • {{이전 시간| 20081106|magnitude=주}}820주 전
  • {{이전 시간| 20081106|min_magnitude=일}}15년 전
  • {{이전 시간| 20081106|min_magnitude=년}}15년 전

같이 보기

[편집]