Template:Start date and age: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Nswiki>Diadochia (Created page with "<includeonly><!-- IMPLEMENTATION OF DATE -->{{#if: {{{1|}}}<!-- -->|{{#if: {{{2|}}}<!-- -->|{{#if: {{{3|}}}<!-- -->|{{#ifeq:{{yesno|{{{df|no}}}}}|yes<!--...") |
Template:Start date and age>PrimeHunter (use Template:Trim on month to avoid #time error if caller has leading or trailing whitespace) |
||
Line 20: | Line 20: | ||
-->|{{#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-{{{2}}}-1}}}}<!-- |
-->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
-->|{{#iferror:{{#expr:{{{1}}}}}<!-- |
-->|{{#iferror:{{#expr:{{{1}}}}}<!-- |
||
Line 28: | Line 28: | ||
-->}}<!-- |
-->}}<!-- |
||
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!-- |
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!-- |
||
-->| |
-->|{{Error|Error: first parameter is missing.|tag=span}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Line 37: | Line 37: | ||
-->|{{{1}}}<!-- |
-->|{{{1}}}<!-- |
||
-->{{#if: {{{2|}}}<!-- |
-->{{#if: {{{2|}}}<!-- |
||
-->| -{{#time:m|1-{{{2}}}-1}}<!-- |
-->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!-- |
||
-->{{#if: {{{3|}}}<!-- |
-->{{#if: {{{3|}}}<!-- |
||
-->| -{{padleft:{{{3}}}|2|0}}<!-- |
-->| -{{padleft:{{{3}}}|2|0}}<!-- |