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

From blackwiki
Jump to navigation Jump to search
imported>PC78
(split from template)
 
imported>PC78
(update)
Line 5: Line 5:
  
 
=== Example usage ===
 
=== Example usage ===
<table class="wikitable">
+
<table class="wikitable" style="width:100%">
 
<tr>
 
<tr>
 
<th>Code</th><th>Result</th>
 
<th>Code</th><th>Result</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><nowiki>{{How Long Ago|year=2004|month=3|day=10}}</nowiki></td><td>{{How Long Ago|year=2004|month=3|day=10}}</td>
+
<td><code><nowiki>{{How long ago|2004|3|10}}</nowiki></code></td><td>{{How long ago|2004|3|10}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><nowiki>This template was created {{How Long Ago|year=2007|month=11|day=20}} ago</nowiki></td><td>This template was created {{How Long Ago|year=2007|month=11|day=20}} ago</td>
+
<td><code><nowiki>{{How long ago|year=2004|month=3|day=10}}</nowiki></code></td><td>{{How long ago|year=2004|month=3|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>
 
</tr>
 
</table>
 
</table>

Revision as of 02:36, 24 September 2010

This template was based on "Template:User Wikipedian For", which was itself translated from the Hebrew Wikipedia.

Example usage

CodeResult
{{How long ago|2004|3|10}}21 years, 10 months and 2 days
{{How long ago|year=2004|month=3|day=10}}21 years, 10 months and 2 days
This template was created {{How long ago|2007|11|20}} agoThis template was created 18 years, 1 month and 23 days ago