Difference between revisions of "Template:How long ago/doc"

From blackwiki
Jump to navigation Jump to search
imported>Nimur
(Fix the example code. The nowiki section and the resolved template used different dates.)
imported>Frietjes
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:Age in years, months and days/doc]]
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
 
 
 
This template was based on "[[Template:User Wikipedian For]]", which was itself translated from the [[:he:תבנית:משתמש בוויקיפדיה|Hebrew Wikipedia]].
 
 
 
=== Example usage ===
 
<table class="wikitable" style="width:100%">
 
<tr>
 
<th>Code</th><th>Result</th>
 
</tr>
 
<tr>
 
<td><code><nowiki>{{How long ago|2007|3|7}}</nowiki></code></td><td>{{How long ago|2007|3|7}}</td>
 
</tr>
 
<tr>
 
<td><code><nowiki>{{How long ago|year=2007|month=10|day=10}}</nowiki></code></td><td>{{How long ago|year=2007|month=10|day=10}}</td>
 
</tr>
 
<tr>
 
<td><code><nowiki>This template was created {{How long ago|2007|11|20}} ago</nowiki></code></td><td>This template was created {{How long ago|2007|11|20}} ago</td>
 
</tr>
 
</table>
 
 
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
[[Category:Date-computing templates based on current time]]
 
}}</includeonly>
 

Latest revision as of 17:01, 2 December 2019