Template:Start date and age: Difference between revisions

m
108 revisions imported from wikipedia:Template:Start_date_and_age
(Undid revision 342754397 by Svick (talk) Undoing breaking change. Sorry, Svick but we need df=no to work as the opposite of df=yes.)
m (108 revisions imported from wikipedia:Template:Start_date_and_age)
 
(46 intermediate revisions by 25 users not shown)
Line 1:
<includeonly><!--
 
 
IMPLEMENTATION OF DATE
 
 
-->{{#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">; <!--
-->{{time ago<!--
-->|{{{1}}}<!--
-->-<!--
-->{{{2|{{CURRENTMONTH}}}}}<!--
-->-<!--
-->{{{3|{{CURRENTDAY}}}}}<!--
-->|min_magnitude=days<!--
-->}}<!--
--><span class="noprint">{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes||&#059;}}<!--
--></span><!--
-->{{#ifeq:{{yesno|'''{{color{br|redno}}}}}|Error: No parametersyes|<br/>|&#032;}}'''<!--
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|(}}<!--
-->{{time#if: ago{{{2|}}}<!--
-->|{{#if: {1{{3|}}}<!--
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
-->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!--
-->-}}<!--
-->|{{#iferror:{{#expr:{3|{{CURRENTDAY1}}}}}<!--
-->|{{time ago|{{{1}}}|min_magnitude=days}}<!--
-->|{{{2years or months ago|{{CURRENTMONTH{1}}}}}<!--
-->-}}<!--
-->}}<!--
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!--
-->|{{Error|Error: first parameter is missing.|tag=span}}<!--
-->}}<!--
 
IMPLEMENTATION OF hCalendarmicroformat date classes
 
--><span style="display:none">&#160;(<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!--
IMPLEMENTATION OF hCalendar
 
 
--><span style="display:none">&#160;(<span class="bday dtstart updated"><!--
-->{{#if: {{{1|}}}<!--
-->|{{{1}}}<!--
-->{{#if: {{{2|}}}<!--
-->| -{{padleft#time:m|1-{{trim|{{{2}}}|2|0}}-1}}<!--
-->{{#if: {{{3|}}}<!--
-->| -{{padleft:{{{3}}}|2|0}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
--></span>)</span></includeonly><noinclude>
{{pp-template|small=yes}}
{{documentation}}
</noinclude>