Cite news: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
this will convert accessdate and archivedate from ISO to DMY format
formatting accessdate to mimic date field (no autoformat)
Line 52: Line 52:
   }}{{#if: {{{id|}}}  
   }}{{#if: {{{id|}}}  
     | . {{{id}}}
     | . {{{id}}}
  }}{{#if: {{{accessdate|}}}
}}{{#if: {{{accessdate|}}}
   | <span class=reference-accessdate>.&#32;Retrieved on {{#ifeq:{{#time:Y-m-d|{{{accessdate}}}}}|{{{accessdate}}}|{{#time:j F Y|{{{accessdate}}}}}|{{{accessdate}}}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}</span>
   | &#32;Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
  }}{{#if: {{{accessmonthday|}}}
}}{{#if: {{{accessmonthday|}}}
   | <span class=reference-accessdate>.&#32;Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}</span>
   | &#32;Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
  }}{{#if: {{{accessdaymonth|}}}
}}{{#if: {{{accessdaymonth|}}}
   | <span class=reference-accessdate>.&#32;Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} | &#32;{{{accessyear}}} }}</span>
   | &#32;Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} | &#32;{{{accessyear}}} }}.
  }}.{{#if: {{{archivedate|}}}
{{#if: {{{archivedate|}}}
   | &#32;Archived from [{{{url}}} the original] on {{#ifeq:{{#time:Y-m-d|{{{archivedate}}}}}|{{{archivedate}}}|{{#time:j F Y|{{{archivedate}}}}}|{{{archivedate}}}}}.
   | &#32;Archived from [{{{url}}} the original] on {{#ifeq:{{#time:Y-m-d|{{{archivedate}}}}}|{{{archivedate}}}|{{#time:j F Y|{{{archivedate}}}}}|{{{archivedate}}}}}.
   }}{{ #if: {{{quote|}}}
   }}{{ #if: {{{quote|}}}

Revision as of 13:12, 18 November 2008