Difference between revisions of "Template:Start date and age"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Closed)
m (101 revisions)
 
(16 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
 
  
 
     IMPLEMENTATION OF DATE
 
     IMPLEMENTATION OF DATE
 
  
 
-->{{#if: {{{1|}}}<!--
 
-->{{#if: {{{1|}}}<!--
 
   -->|{{#if: {{{2|}}}<!--
 
   -->|{{#if: {{{2|}}}<!--
 
     -->|{{#if: {{{3|}}}<!--
 
     -->|{{#if: {{{3|}}}<!--
         -->|{{#ifeq: {{{df|}}}|yes<!--
+
         -->|{{#ifeq:{{yesno|{{{df|no}}}}}|yes<!--
 
           -->|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}<!--
 
           -->|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}<!--
 
           -->|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},<!--
 
           -->|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},<!--
        -->}} {{{1}}}<!--
+
          -->}} {{{1}}}<!--
 
         -->|{{MONTHNAME|{{{2}}}}}&nbsp;{{{1}}}<!--
 
         -->|{{MONTHNAME|{{{2}}}}}&nbsp;{{{1}}}<!--
      -->}}<!--
+
        -->}}<!--
 
     -->|{{{1}}}<!--
 
     -->|{{{1}}}<!--
  -->}}<!--
 
  --><span class="noprint">; <!--
 
    -->{{#ifeq:{{{br|}}}|yes| <br/>|}}<!--
 
    -->{{time ago<!--
 
      -->|{{{1}}}<!--
 
        -->-<!--
 
        -->{{{2|{{CURRENTMONTH}}}}}<!--
 
        -->-<!--
 
        -->{{{3|{{CURRENTDAY}}}}}<!--
 
      -->|min_magnitude=days<!--
 
 
     -->}}<!--
 
     -->}}<!--
  --></span><!--
+
    --><span class="noprint">{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes||&#059;}}<!--
   -->|'''{{color|red|Error: No parameters}}'''<!--
+
    -->{{#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-{{{2}}}-1}}}}<!--
 +
          -->}}<!--
 +
      -->|{{#iferror:{{#expr:{{{1}}}}}<!--
 +
          -->|{{time ago|{{{1}}}|min_magnitude=days}}<!--
 +
          -->|{{years or months ago|{{{1}}}}}<!--
 +
          -->}}<!--
 +
      -->}}<!--
 +
    -->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!--
 +
   -->|'''{{color|red|Error: first parameter is missing.}}'''<!--
 
-->}}<!--
 
-->}}<!--
 
  
 
     IMPLEMENTATION OF microformat date classes
 
     IMPLEMENTATION OF microformat date classes
  
 
+
--><span style="display:none">&#160;(<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!--
--><span style="display:none">&#160;(<span class="bday dtstart published updated"><!--
 
 
-->{{#if: {{{1|}}}<!--
 
-->{{#if: {{{1|}}}<!--
 
   -->|{{{1}}}<!--
 
   -->|{{{1}}}<!--
 
   -->{{#if: {{{2|}}}<!--
 
   -->{{#if: {{{2|}}}<!--
     -->| -{{padleft:{{{2}}}|2|0}}<!--
+
     -->| -{{#time:m|1-{{{2}}}-1}}<!--
      -->{{#if: {{{3|}}}<!--
+
      -->{{#if: {{{3|}}}<!--
        -->| -{{padleft:{{{3}}}|2|0}}<!--
+
        -->| -{{padleft:{{{3}}}|2|0}}<!--
      -->}}<!--
+
        -->}}<!--
  -->}}<!--
+
    -->}}<!--
-->}}<!--
+
  -->}}<!--
 
--></span>)</span></includeonly><noinclude>
 
--></span>)</span></includeonly><noinclude>
{{being deleted|merge=Template:Start date and years ago}}
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 04:41, 3 February 2016

Documentation icon Template documentation[create]