MediaWiki:Gadget-GrAnnotations.js: Difference between revisions

No edit summary
No edit summary
Line 948: Line 948:
   // which build of this gadget a page is actually running. Check with
   // which build of this gadget a page is actually running. Check with
   //  window.grAnnotationsVersion
   //  window.grAnnotationsVersion
  // Set false to drop "Retrieved <date>, from" and give just the URL.
  var SHOW_RETRIEVAL_DATE = true;
   window.grAnnotationsVersion = '2026-09-30a';
   window.grAnnotationsVersion = '2026-09-30a';


Line 1,023: Line 1,026:
     }
     }


     var tail = ' Retrieved ' + retrieved + ', from ' + url;
    // APA 7 (section 9.16) asks for a retrieval date only when the content
    // is designed to change and is not archived. A wiki page can change, so
    // the date is defensible - but these are settled texts, and a reader may
    // reasonably prefer the shorter form. Set SHOW_RETRIEVAL_DATE to false
    // for: Author. (n.d.). Title. Site. URL
     var tail = SHOW_RETRIEVAL_DATE
        ? ' Retrieved ' + retrieved + ', from ' + url
        : ' ' + url;
     var reference = head + (showSite ? ' ' + site + '.' : '') + tail;
     var reference = head + (showSite ? ' ' + site + '.' : '') + tail;
     var referenceHtml = headHtml + (showSite ? ' ' + esc(site) + '.' : '')
     var referenceHtml = headHtml + (showSite ? ' ' + esc(site) + '.' : '') + ' '
         + ' Retrieved ' + esc(retrieved) + ', from '
         + (SHOW_RETRIEVAL_DATE ? 'Retrieved ' + esc(retrieved) + ', from ' : '')
         + '<a href="' + esc(url) + '">' + esc(url) + '</a>';
         + '<a href="' + esc(url) + '">' + esc(url) + '</a>';