Diff: Template:Start date and age
Comparing revision #1 (2022-07-21 11:34:00) with revision #2 (2023-02-03 04:17:50).
| Old | New |
|---|---|
<includeonly><!-- |
<includeonly><!-- |
IMPLEMENTATION OF DATE |
IMPLEMENTATION OF DATE |
-->{{#if: {{{1|}}}<!-- |
-->{{#if: {{{1|}}}<!-- |
-->|{{#if: {{{2|}}}<!-- |
-->|{{#if: {{{2|}}}<!-- |
-->|{{#if: {{{3|}}}<!-- |
-->|{{#if: {{{3|}}}<!-- |
-->|{{#ifeq:{{yesno|{{{df|no}}}}}|yes<!-- |
-->|{{#ifeq:{{yesno|{{{df|no}}}}}|yes<!-- |
-->|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}<!-- |
-->|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}<!-- |
-->|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},<!-- |
-->|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},<!-- |
-->}} {{{1}}}<!-- |
-->}} {{{1}}}<!-- |
-->|{{MONTHNAME|{{{2}}}}} {{{1}}}<!-- |
-->|{{MONTHNAME|{{{2}}}}} {{{1}}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->|{{{1}}}<!-- |
-->|{{{1}}}<!-- |
-->}}<!-- |
-->}}<!-- |
--><span class="noprint">{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes||;}}<!-- |
--><span class="noprint">{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes||;}}<!-- |
-->{{#ifeq:{{yesno|{{{br|no}}}}}|yes|<br/>| }}<!-- |
-->{{#ifeq:{{yesno|{{{br|no}}}}}|yes|<br/>| }}<!-- |
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|(}}<!-- |
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|(}}<!-- |
-->{{#if: {{{2|}}}<!-- |
-->{{#if: {{{2|}}}<!-- |
-->|{{#if: {{{3|}}}<!-- |
-->|{{#if: {{{3|}}}<!-- |
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!-- |
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!-- |
-->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!-- |
-->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->|{{#iferror:{{#expr:{{{1}}}}}<!-- |
-->|{{#iferror:{{#expr:{{{1}}}}}<!-- |
-->|{{time ago|{{{1}}}|min_magnitude=days}}<!-- |
-->|{{time ago|{{{1}}}|min_magnitude=days}}<!-- |
-->|{{years or months ago|{{{1}}}}}<!-- |
-->|{{years or months ago|{{{1}}}}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!-- |
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!-- |
-->|<!--first parameter is missing.-->{{#if: {{{2|}}}|{{Error|Error: first parameter is missing.|tag=span}}<!-- |
-->|<!--first parameter is missing.-->{{#if: {{{2|}}}|{{Error|Error: first parameter is missing.|tag=span}}<!-- |
-->|{{#if: {{{3|}}}|{{Error|Error: first parameter is missing.|tag=span}} }} }}<!-- |
-->|{{#if: {{{3|}}}|{{Error|Error: first parameter is missing.|tag=span}} }} }}<!-- |
-->}}<!-- |
-->}}<!-- |
IMPLEMENTATION OF microformat date classes |
IMPLEMENTATION OF microformat date classes |
--><span style="display:none"> (<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!-- |
--><span style="display:none"> (<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!-- |
-->{{#if: {{{1|}}}<!-- |
-->{{#if: {{{1|}}}<!-- |
-->|{{{1}}}<!-- |
-->|{{{1}}}<!-- |
-->{{#if: {{{2|}}}<!-- |
-->{{#if: {{{2|}}}<!-- |
-->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!-- |
-->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!-- |
-->{{#if: {{{3|}}}<!-- |
-->{{#if: {{{3|}}}<!-- |
-->| -{{padleft:{{{3}}}|2|0}}<!-- |
-->| -{{padleft:{{{3}}}|2|0}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->}}<!-- |
-->}}<!-- |
--></span>)</span></includeonly><noinclude> |
--></span>)</span></includeonly><noinclude> |
{{documentation}} |
{{documentation}} |
</noinclude> |
</noinclude> |