틀:이전 시간/설명문서
보이기
< 틀:이전 시간
이 문서는 틀:이전 시간에 대한 설명입니다. 여기에는 틀 사용법, 분류 등 원래의 틀 문서에는 포함되지 않는 내용을 담고 있습니다. |
이 이전 시간 틀은 어떤 시간으로 부터 얼마나 지났는지 계산해주는 틀입니다. 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 purge a page using this template to update the dynamic value.
사용법
{{이전 시간|계산 할 시간}}
The timestamp can be almost any solid, readable format but to avoid ambiguity mistakes, one of the styles below is preferred.
magnitude
변수는 can be set to explicitly use certain unit. 쓸 수 있는 인자 내용:seconds
,minutes
,hours
,days
,weeks
,months
years
.min_magnitude
변수는 can be set to user certain unit or bigger units. 쓸 수 있는 인자 내용:seconds
,minutes
,hours
,days
,months
andyears
.ago
변수는 can be set to override the default usage of the text "ago
".
- 실험 결과 한글은 적용되지 않습니다 되도록이면 20080611과 같이 연월일이 생략된 형태를 써주세요
예
- {{이전 시간| -83 minutes}} → 83분 전
- {{이전 시간| -334 minutes}} → 5시간 전
- {{이전 시간|{{REVISIONTIMESTAMP}}}} → 13년 전
- {{이전 시간| 20081106}} → 15년 전
- {{이전 시간| 20081106|magnitude=weeks}} → 824주 전
- {{이전 시간| 20081106|min_magnitude=days}} → 15년 전
- {{이전 시간| 20081106|min_magnitude=years}} → 15년 전
- {{이전 시간| 20081106|ago=in the past}} → 15년 in the past
같이 보기
- {{최종 편집일}}