[go: nahoru, domu]

본문으로 이동

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

위키백과, 우리 모두의 백과사전.
내용 삭제됨 내용 추가됨
Altostratus(토론)의 6175164판 편집을 되돌림
편집 요약 없음
 
(사용자 9명의 중간 판 19개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{설명문서 안내}}
{{틀 설명 소개하기}}<onlyinclude><includeonly>{{틀 설명 연결하기}}</includeonly>
이 '''이전 시간''' 틀은 어떤 시간으로 부터 지금까지 얼마나 지났는지 계산해주는 틀입니다. 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>'''이전 시간'''|''계산 할 시간''<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. 쓸 수 있는 인자 내용: <code>seconds</code>, <code>minutes</code>, <code>hours</code>, <code>days</code>, <code>weeks</code>, <code>months</code> <code>years</code>.
* <code>min_magnitude</code> 변수는 can be set to user certain unit or bigger units. 쓸 수 있는 인자 내용: <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>".

*'''실험 결과 한글은 적용되지 않습니다 되도록이면 20080611과 같이 연월일이 생략된 형태를 써주세요'''


=== 예 ===
=== 예 ===
* <tt><nowiki>{{이전 시간| -83 minutes}}</nowiki></tt> → '''{{이전 시간|-83 minutes}}'''
* <code><nowiki>{{이전 시간| -83 minutes}}</nowiki></code> → '''{{이전 시간|-83 minutes}}'''
* <tt><nowiki>{{이전 시간| -334 minutes}}</nowiki></tt> → '''{{이전 시간|-334 minutes}}'''
* <code><nowiki>{{이전 시간| -334 minutes}}</nowiki></code> → '''{{이전 시간|-334 minutes}}'''
* <tt><nowiki>{{이전 시간|{{REVISIONTIMESTAMP}}}}</nowiki></tt> → '''{{이전 시간|{{REVISIONTIMESTAMP}}}}'''
* <code><nowiki>{{이전 시간|{{REVISIONTIMESTAMP}}}}</nowiki></code> → '''{{이전 시간|{{REVISIONTIMESTAMP}}}}'''
* <tt><nowiki>{{이전 시간| 20081106}}</nowiki></tt> → '''{{이전 시간|20081106}}'''
* <code><nowiki>{{이전 시간| 20081106}}</nowiki></code> → '''{{이전 시간|20081106}}'''
* <tt><nowiki>{{이전 시간| 20081106|magnitude=주}}</nowiki></tt> → '''{{이전 시간|20081106|magnitude=주}}'''
* <code><nowiki>{{이전 시간| 20081106|magnitude=주}}</nowiki></code> → '''{{이전 시간|20081106|magnitude=주}}'''
* <tt><nowiki>{{이전 시간| 20081106|min_magnitude=일}}</nowiki></tt> → '''{{이전 시간|20081106|min_magnitude=일}}'''
* <code><nowiki>{{이전 시간| 20081106|min_magnitude=일}}</nowiki></code> → '''{{이전 시간|20081106|min_magnitude=일}}'''
* <tt><nowiki>{{이전 시간| 20081106|min_magnitude=년}}</nowiki></tt> → '''{{이전 시간|20081106|min_magnitude=년}}'''
* <code><nowiki>{{이전 시간| 20081106|min_magnitude=년}}</nowiki></code> → '''{{이전 시간|20081106|min_magnitude=년}}'''
* <tt><nowiki>{{이전 시간| 20081106|ago=in the past}}</nowiki></tt> → '''{{이전 시간|20081106|ago=in the past}}'''


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


<includeonly>
<includeonly>
[[Category:날짜 계산용 틀]]
[[분류:날짜 계산용 틀]]
</includeonly>

[[af:Sjabloon:Tyd_gelede]]
[[ar:قالب:Time ago]]
[[es:Plantilla:Edad en tiempo]]
[[id:Templat:Time ago]]
[[ja:Template:Time ago]]
[[hy:Կաղապար:Time ago]]
[[uk:Шаблон:Time ago]]
[[zh:Template:Time ago]]
<!-- 여기에 분류와 인터위키를 넣어주세요. -->

</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년 전

같이 보기

[편집]