Jump to content

Template talk:Retrieved

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Source and author

[edit]

Function taken from {{Cite web}} and refined by Conrad T. Pino 09:44, 15 October 2007 (UTC)[reply]

Consistency

[edit]

This says "Retrieved on" but Template:cite web and Template:cite news just write "Retrieved". Probably easiest to change this but would be better if they were consistent. -- Horkana (talk) 00:32, 7 January 2010 (UTC)[reply]

i agree, consistency would be nice. 65.88.88.127 (talk) 18:44, 7 April 2012 (UTC)[reply]

Sandbox version (31 August 2024)

[edit]

A new version has been added with documentation. Template Data code and Lua version will follow in the near future, hopefully. 204.19.162.34 (talk) 21:59, 31 August 2024 (UTC)[reply]

Template data added. 204.19.162.34 (talk) 17:29, 2 September 2024 (UTC)[reply]
Implementation note for the current sandbox revision: the deleted parameters registration and subscription (replaced by parameter link-access in sandbox) appear in 3 instances of the production template {{Retrieved}}. 204.19.162.34 (talk) 17:51, 2 September 2024 (UTC)[reply]

Extended-confirmed-protected edit request on 3 September 2024

[edit]

Rewrite of template code and documentation currently in {{Retrieved/sandbox}}, this revision. The diff below compares the current sandbox version with the {{Retrieved}} version imported in the sandbox 5 October 2021, which is functionally the current production version:

diff

Request sync from the sandbox version. Per the section above, only 3 transclusions are affected (by replaced parameters). 65.88.88.201 (talk) 21:49, 3 September 2024 (UTC)[reply]

Note documentation changes. Comparison between production code & sandbox code (current revisions):
diff
Edit Requester from different IP. 50.75.226.250 (talk) 15:34, 4 September 2024 (UTC)[reply]
Clarifying that this revision is the final revision for this edit request. Edit requester from a different IP 65.88.88.47 (talk) 21:49, 6 September 2024 (UTC)[reply]
Code additions (revision), do not foresee more. 64.18.11.7 (talk) 13:32, 12 September 2024 (UTC)[reply]

Logic (sandbox)

[edit]

Revision

  1. If parameter 'access-date'/'accessdate' is missing/mistyped, or there is no access date, display error message, categorize the page and exit.
  2. If there is an 'access-info' parameter (paywall access categorizes page) present it unless incorrectly entered; optionally display error message.
  3. If there is an 'access-info' and a 'source-info' parameter decide on displaying punctuation+whitespace as 'source-info' leading separator, or just whitespace.
  4. Display selected presentation mode; applies globally.
  5. If there is no 'access-info' parameter but there is a 'source-info' parameter do not display 'source-info' leading separator.
  6. If there is a 'format' parameter and either or both of the two previous parameters display only whitespace as 'format' leading separator ('format' punctuated by parentheses).
  7. If there is a 'format' parameter but neither 'access-info' nor 'source-info' parameters, do not display 'format' leading separator.
  8. Diplay static text "Retrieved" per the presentation mode; if invalid presentation mode has been entered, do not display mode-related punctuation anywhere; optionally suppress static text with error message.
  9. If today's date is autoinserted, display; else
    1. Time-condition the access date to be up to parser's "today" datestamp (practically, less than 2 days in the future).
    2. If there is a date format selected (parameter 'df'), apply it to the access date unless incorrect; if the latter, optionally display error message.
    3. If there is no 'df' parameter, display the access date; if not in an acceptable format display error message and categorize the page.
    4. If access date fails the time condition display error message instead, and categorize the page.
    5. If access date is partial or fails parser date checks display error message instead, and categorize the page.
  10. End else; present 'via' parameter if there is one.
  11. If there is a 'via' parameter and a 'note' parameter, use whitespace as parameter 'via' trailing separator (link note punctuated by parentheses).
  12. If there is a 'note' parameter and no 'via' parameter, present 'note' parameter with whitespace as its leading separator.
  13. If there is non-default terminal punctuation display it and exit; else exit.

A tracking category for template errors has not been created as of today (commented out in code, and fake-linked in the doc). 65.88.88.57 (talk) 21:15, 3 October 2024 (UTC)[reply]

Updated (with revision link) following rename of |prepend= to |source-info=. 172.56.166.83 (talk) 18:40, 9 October 2024 (UTC)[reply]
Updated rev. lnk. 71.247.146.98 (talk) 13:06, 15 October 2024 (UTC)[reply]