Template:Start date and age: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(Not sure what was the intention here, but this should kill the extra whitespace before the comma)
m (108 revisions imported from wikipedia:Template:Start_date_and_age)
 
(94 intermediate revisions by 47 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#if:{{{df|}}}|[[{{#expr:{{{3|{{{day|{{{3}}}}}}}}}}} {{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}}]]|[[{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} {{#expr:{{{3|{{{day|{{{3}}}}}}}}}}}]]}} [[{{{1|{{{year|{{{1}}}}}}}}}]]<span style="display:none;">&nbsp;(<span class="bday">{{{1|{{{year|}}}}}}-{{pad2digit|{{{2|{{{month|}}}}}}}}-{{pad2digit|{{{3|{{{day|{{{3}}}}}}}}}}}</span>)</span><span class="noprint">, {{age in days|{{{1|{{{year|{{{1}}}}}}}}} | {{{2|{{{month|{{{2}}}}}}}}} | {{{3|{{{day|{{{3}}}}}}}}} }} {{#ifexpr: {{age in days|{{{1|{{{year|{{{1}}}}}}}}} | {{{2|{{{month|{{{2}}}}}}}}} | {{{3|{{{day|{{{3}}}}}}}}} }} < 2 | day | days}} ago</span></includeonly><noinclude>
[[Category:Date mathematics templates]]


IMPLEMENTATION OF DATE
[[ms:Templat:Tarikh keluaran dan umur]]</noinclude>

-->{{#if: {{{1|}}}<!--
-->|{{#if: {{{2|}}}<!--
-->|{{#if: {{{3|}}}<!--
-->|{{#ifeq:{{yesno|{{{df|no}}}}}|yes<!--
-->|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}<!--
-->|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},<!--
-->}} {{{1}}}<!--
-->|{{MONTHNAME|{{{2}}}}}&nbsp;{{{1}}}<!--
-->}}<!--
-->|{{{1}}}<!--
-->}}<!--
--><span class="noprint">{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes||&#059;}}<!--
-->{{#ifeq:{{yesno|{{{br|no}}}}}|yes|<br/>|&#032;}}<!--
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|(}}<!--
-->{{#if: {{{2|}}}<!--
-->|{{#if: {{{3|}}}<!--
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
-->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!--
-->}}<!--
-->|{{#iferror:{{#expr:{{{1}}}}}<!--
-->|{{time ago|{{{1}}}|min_magnitude=days}}<!--
-->|{{years or months ago|{{{1}}}}}<!--
-->}}<!--
-->}}<!--
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!--
-->|{{Error|Error: first parameter is missing.|tag=span}}<!--
-->}}<!--

IMPLEMENTATION OF microformat date classes

--><span style="display:none">&#160;(<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!--
-->{{#if: {{{1|}}}<!--
-->|{{{1}}}<!--
-->{{#if: {{{2|}}}<!--
-->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!--
-->{{#if: {{{3|}}}<!--
-->| -{{padleft:{{{3}}}|2|0}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
--></span>)</span></includeonly><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 23:22, 7 June 2021