https://www.limswiki.org/index.php?title=Template:Start_date_and_age/doc&feed=atom&action=history
Template:Start date and age/doc - Revision history
2024-03-29T09:56:59Z
Revision history for this page on the wiki
MediaWiki 1.36.1
https://www.limswiki.org/index.php?title=Template:Start_date_and_age/doc&diff=37796&oldid=prev
Shawndouglas: /* Usage */
2020-02-04T21:45:22Z
<p><span dir="auto"><span class="autocomment">Usage</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:45, 4 February 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l4">Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Usage ==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Usage ==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>===Syntax===</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>===Syntax===</div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">;Common usage</ins></div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">: <code><nowiki>{{Start date and age|yyyy|mm|dd}}</nowiki></code> to display formatted as:</ins></div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">: {{xt|{{Start date and age|2010|03|25}}}}</ins></div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">: <code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes}}</nowiki></code> to display formatted as:</ins></div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">: {{xt|{{Start date and age|2010|03|25|df=yes}}}}</ins></div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>;Full syntax</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>;Full syntax</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:<code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes|br=yes}}</nowiki></code></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>: <code><nowiki>{{Start date and age|yyyy|mm|dd|df<ins style="font-weight: bold; text-decoration: none;">=yes|p</ins>=yes|br=yes}}</nowiki></code> <ins style="font-weight: bold; text-decoration: none;">to display formatted as:</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>: {{xt|{{Start date and age|<ins style="font-weight: bold; text-decoration: none;">2010</ins>|<ins style="font-weight: bold; text-decoration: none;">03</ins>|<ins style="font-weight: bold; text-decoration: none;">25</ins>|df<ins style="font-weight: bold; text-decoration: none;">=yes|p=yes|br</ins>=yes}}}}</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">;Common usage</del></div></td><td colspan="2"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:<del style="font-weight: bold; text-decoration: none;"><code><nowiki>{{Start date and age|yyyy|mm|dd}}</nowiki></code> to display result in </del>{{xt|<del style="font-weight: bold; text-decoration: none;">March 4, 2010; 4 months ago}} format</del></div></td><td colspan="2"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">:<code><nowiki></del>{{Start date and age|<del style="font-weight: bold; text-decoration: none;">yyyy</del>|<del style="font-weight: bold; text-decoration: none;">mm</del>|<del style="font-weight: bold; text-decoration: none;">dd</del>|df=yes}}<del style="font-weight: bold; text-decoration: none;"></nowiki></code> to display result in {{xt|4 March 2010; 4 months ago</del>}} <del style="font-weight: bold; text-decoration: none;">format</del></div></td><td colspan="2"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>;Description of parameters</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>;Description of parameters</div></td></tr>
</table>
Shawndouglas
https://www.limswiki.org/index.php?title=Template:Start_date_and_age/doc&diff=6697&oldid=prev
Shawndouglas: /* Syntax */
2011-11-20T18:23:28Z
<p><span dir="auto"><span class="autocomment">Syntax</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:23, 20 November 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l29">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 29:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|The optional parameter '''df''' can either be set to '''yes''' or anything other than '''yes'''. When set to '''yes''', date will be displayed in DMY format: {{xt|4 March 2010}}. When set something other than '''yes''' or when this parameter is not included, date will be displayed in MD,Y format: {{xt|March 4, 2010}}.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|The optional parameter '''df''' can either be set to '''yes''' or anything other than '''yes'''. When set to '''yes''', date will be displayed in DMY format: {{xt|4 March 2010}}. When set something other than '''yes''' or when this parameter is not included, date will be displayed in MD,Y format: {{xt|March 4, 2010}}.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">As for choosing the right format to use, consult [[Wikipedia:MOSNUM#Full date formatting|Manual of Style (dates and numbers): Full date formatting]].</del></div></td><td colspan="2"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|''br=''</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|''br=''</div></td></tr>
</table>
Shawndouglas
https://www.limswiki.org/index.php?title=Template:Start_date_and_age/doc&diff=6689&oldid=prev
Shawndouglas: Created as needed.
2011-11-20T18:15:07Z
<p>Created as needed.</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
== Usage ==<br />
===Syntax===<br />
;Full syntax<br />
:<code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes|br=yes}}</nowiki></code><br />
<br />
;Common usage<br />
:<code><nowiki>{{Start date and age|yyyy|mm|dd}}</nowiki></code> to display result in {{xt|March 4, 2010; 4 months ago}} format<br />
:<code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes}}</nowiki></code> to display result in {{xt|4 March 2010; 4 months ago}} format<br />
<br />
;Description of parameters<br />
:{| class="wikitable"<br />
|-<br />
! Parameter<br />
! Description<br />
|-<br />
|''yyyy''<br />
|Four digits indicating the year. The year must always appear in a 4-digits form.<br />
|-<br />
|''mm''<br />
|A number between 1 to 12, indicating the month. Leading zeros in the number are ignored.<br />
|-<br />
|''dd''<br />
|A number between 1 to 31, indicating the day of the month. Leading zeros in the number are ignored.<br />
|-<br />
|''df=''<br />
|The optional parameter '''df''' can either be set to '''yes''' or anything other than '''yes'''. When set to '''yes''', date will be displayed in DMY format: {{xt|4 March 2010}}. When set something other than '''yes''' or when this parameter is not included, date will be displayed in MD,Y format: {{xt|March 4, 2010}}.<br />
<br />
As for choosing the right format to use, consult [[Wikipedia:MOSNUM#Full date formatting|Manual of Style (dates and numbers): Full date formatting]].<br />
|-<br />
|''br=''<br />
|The optional parameter '''br''' can either be set to '''yes''' or anything other than '''yes'''. When set to '''yes''', a line break will be inserted between the date and the age. When set something other than '''yes''' or when this parameter is not included, a breaking space will be inserted between the date and the age. In either case, a semicolon separates the date and age, immediately before the line break or space.<br />
|}<br />
<br />
===Examples===<br />
{| class="wikitable"<br />
!Syntax!!Result<br />
|-<br />
|<nowiki>{{Start date and age|2010|01|02}}</nowiki>||{{Start date and age|2010|01|02}}<br />
|-<br />
|<nowiki>{{Start date and age|2008|08|09}}</nowiki>||{{Start date and age|2008|08|09}}<br />
|-<br />
|<nowiki>{{Start date and age|2003|07|05}}</nowiki>||{{Start date and age|2003|07|05}}<br />
|-<br />
|<nowiki>{{Start date and age|2010|1|2|df=yes}}</nowiki>||{{Start date and age|2010|1|2|df=yes}}<br />
|-<br />
|<nowiki>{{Start date and age|2008|8|9|df=yes}}</nowiki>||{{Start date and age|2008|8|9|df=yes}}<br />
|-<br />
|<nowiki>{{Start date and age|2003|7|5|df=yes}}</nowiki>||{{Start date and age|2003|7|5|df=yes}}<br />
|-<br />
|<nowiki>{{Start date and age|2009|9|9|br=yes}}</nowiki>||{{Start date and age|2009|9|9|br=yes}}<br />
|-<br />
|Today:<br /><nowiki>{{Start date and age|</nowiki>{{#time:Y|now}}&#124;{{#time:n|now}}&#124;{{#time:j|now}}}}||{{Start date and age|{{#time:Y|now}}|{{#time:n|now}}|{{#time:j|now}}}}<br />
|-<br />
|Yesterday:<br /><nowiki>{{Start date and age|</nowiki>{{#time:Y|now-1 days}}&#124;{{#time:n|now-1 days}}&#124;{{#time:j|now-1 days}}}}||{{Start date and age|{{#time:Y|now-1 days}}|{{#time:n|now-1 days}}|{{#time:j|now-1 days}}}}<br />
|}<br />
<br />
<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE --><br />
[[Category:Date-computing templates|{{PAGENAME}}]]<br />
<br />
</includeonly></div>
Shawndouglas