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
(Fix calculation of years or months ago when input is |year|month| (no day) or |year| (no month or day). Allow "p" as parameter name instead of "paren". Use Template:Yesno for optional parameters that current only accept "yes": df, br, p.)
m (108 revisions imported from wikipedia:Template:Start_date_and_age)
 
(16 intermediate revisions by 12 users not shown)
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><!--
-->|'''{{color|red|Error: first parameter is missing.}}'''<!--
-->|{{Error|Error: first parameter is missing.|tag=span}}<!--
-->}}<!--
-->}}<!--


IMPLEMENTATION OF microformat date classes
IMPLEMENTATION OF microformat date classes


--><span style="display:none">&#160;(<span class="bday dtstart published updated"><!--
--><span style="display:none">&#160;(<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!--
-->{{#if: {{{1|}}}<!--
-->{{#if: {{{1|}}}<!--
-->|{{{1}}}<!--
-->|{{{1}}}<!--
-->{{#if: {{{2|}}}<!--
-->{{#if: {{{2|}}}<!--
-->| -{{padleft:{{{2}}}|2|0}}<!--
-->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!--
-->{{#if: {{{3|}}}<!--
-->{{#if: {{{3|}}}<!--
-->| -{{padleft:{{{3}}}|2|0}}<!--
-->| -{{padleft:{{{3}}}|2|0}}<!--
Line 44: Line 44:
-->}}<!--
-->}}<!--
--></span>)</span></includeonly><noinclude>
--></span>)</span></includeonly><noinclude>
{{being merged|2013 July 31|merge=Template:Start date and years ago}}
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 23:22, 7 June 2021