Jump to content

Template:Retrieved/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m.
m. (doc)
Line 38: Line 38:
:[[Template:URL]]
:[[Template:URL]]
and others; it may also be used to complement [[H:SFN|shortened footnote]]-producing templates such as {{tl|harvnb}} and similar (see [[#With short citations|below]]). The template may accompany other allowable external links when such usage is appropriate. Please see {{slink||Exceptions}} for recommended usage exceptions. This template and its documentation make use of {{cs1}} guidelines, with variations. Per common practice, "link" refers to a source's online {{em|location}} and "source" to its online {{em|content}}.
and others; it may also be used to complement [[H:SFN|shortened footnote]]-producing templates such as {{tl|harvnb}} and similar (see [[#With short citations|below]]). The template may accompany other allowable external links when such usage is appropriate. Please see {{slink||Exceptions}} for recommended usage exceptions. This template and its documentation make use of {{cs1}} guidelines, with variations. Per common practice, "link" refers to a source's online {{em|location}} and "source" to its online {{em|content}}.

{{strong|Note:|id=xdate}} Examples use this page's current timestamp to format dates. Tomorrow's date may temporarily display as a result, depending on the local timezone, time of day and Wikipedia system settings. To apply the current timestamp manually, {{purge|purge}} the page.


;Example:
;Example:
Line 56: Line 54:
{{reflist}}
{{reflist}}
}}
}}

{{strong|Note:|id=xdate}} Examples use this page's current timestamp to format dates. Tomorrow's date may temporarily display as a result, depending on the local timezone, time of day and Wikipedia system settings. To apply the current timestamp manually, {{purge|purge}} the page.


==Usage==
==Usage==
Line 70: Line 70:


For basic usage the template requires only the full date the source was retrieved ({{para|access-date|<{{var|fulldate}}>|code=y|plain=y}}) which displays after the static text "Retrieved" (see {{slink||Access date}}).{{br}}
For basic usage the template requires only the full date the source was retrieved ({{para|access-date|<{{var|fulldate}}>|code=y|plain=y}}) which displays after the static text "Retrieved" (see {{slink||Access date}}).{{br}}
Insert this template next to the prerequisite external link-providing template or when appropriate, after any other allowable external link. Ideally this template's output should immediately follow the external link, allowing for preceding [[Whitespace character|white space]] as needed (note the editable default for "Retrieved" is to appear capitalized). Copy a blank version to use.{{br}}
Insert this template next to the prerequisite external link-providing template or when appropriate, after any other allowable external link. Ideally this template's output should immediately follow the external link, allowing for preceding [[Whitespace character|white space]] as needed (note the editable default for "Retrieved" is to appear capitalized). Depending on parameter use, the template may display default presentation and formatting elements including static text, white space and additional punctuation.{{br}}
All parameter names must be in lowercase; optional parameters will be ignored when they are misspelled or unrecognized. Dependent parameters are ignored if the prerequisite parameter is not used. Use the "{{!}}" (pipe) character between each parameter. Delete unused parameters.{{br}}
All parameter names must be in lowercase; optional parameters will be ignored when they are misspelled or unrecognized. Dependent parameters are ignored if the prerequisite parameter is not used. Copy a blank version from the box above to use. Use the "{{!}}" (pipe) character between each parameter. Delete unused parameters.{{br}}
The template uses [[H:CS1#Display options|Citation Style 1 presentation mode]] as the default; it may optionally use [[Template:Citation#Display options|Citation Style 2 mode]]. The template provides limited error handling options.{{br}}
The template uses [[H:CS1#Display options|Citation Style 1 presentation mode]] as the default; it may optionally use [[Template:Citation#Display options|Citation Style 2 mode]]. The template provides limited error handling options.{{br}}
See {{slink||Parameters}} for important details.
See {{slink||Parameters}} for important details.
Line 78: Line 78:


Do not use this template when either the link or the source is inaccessible or unfit for any reason. Use only with wikitext-supporting sources (free or restricted) that are retrievable through working, legitimate external links. See [[Wikipedia:Link rot]].{{br}}
Do not use this template when either the link or the source is inaccessible or unfit for any reason. Use only with wikitext-supporting sources (free or restricted) that are retrievable through working, legitimate external links. See [[Wikipedia:Link rot]].{{br}}
The template should also not be used when retrieval information is inapplicable, superfluous, or not recommended, such as in {{xt|External links}} or {{xt|Further reading}} sections, or with templates such as {{tl|official website}}.{{br}}
Additionally, the template should not be used when retrieval information is inapplicable, superfluous, or not recommended, such as in {{xt|External links}} or {{xt|Further reading}} sections, or with templates such as {{tl|official website}}.{{br}}
In general, do not use with stable or static external links e.g. links to online archives or repositories (however, it may be used when accessing online archive [[Snapshot (computer storage)|snapshots]]). Please see [[Wikipedia:External links]].
In general do not use with stable or static external links e.g. links to online archives or repositories (however, it may be used when accessing online archive [[Snapshot (computer storage)|snapshots]]). Please see [[Wikipedia:External links]].


==Quickfill examples: basic usage with today's date, autoinserted==
==Quickfill examples: basic usage with today's date, autoinserted==
Line 154: Line 154:
===General notes===
===General notes===


Parameter options, and dependent parameters, are described under their prerequisite parameters.{{br}}
Depending on parameter usage, the template's output may display default presentation and formatting elements including static text, white space and additional punctuation.{{br}}
Dependent parameters are described under their prerequisite parameters, as are parameter options.{{br}}
Parameters should provide information {{em|specific to the retrieved version}} of the source or to {{em|the specific access link}}. Do not add an optional parameter if identical information is provided in the source's external link template, full citation, or other reference data (the access date is required regardless of duplication). However, always include parameter {{bxtn|[[#access-info|access-info]]}} wherever applicable, as it is relevant to reader decisions regarding retrieval.{{br}}
Parameters should provide information {{em|specific to the retrieved version}} of the source or to {{em|the specific access link}}. Do not add an optional parameter if identical information is provided in the source's external link template, full citation, or other reference data (the access date is required regardless of duplication). However, always include parameter {{bxtn|[[#access-info|access-info]]}} wherever applicable, as it is relevant to reader decisions regarding retrieval.{{br}}
Incorrect usage of some parameters may suppress display of related template elements; see descriptions below, and {{slink||Error messages}}.
Incorrect usage of some parameters may suppress display of related template elements; see descriptions below, and {{slink||Error messages}}.
Line 174: Line 173:


* {{bxt|{{vanchor|access-date}}}}: This parameter (or its alias {{bxt|accessdate}}) is required{{snd}} its omission or incorrect entry will produce [[#!dm|an error message]] and will suppress all other template output. For basic usage insert only this parameter; enter the full date the external link (a) was successfully accessed {{em|and}} (b) correctly targeted content supporting the related wikitext. Do not wikilink. When input correctly it will display as entered, after the static text "Retrieved". Except in the all-numeric {{xt|Year-Month-Day}} ({{xt|YYYY-MM-DD}}) format, days should be entered without zero-padding (i.e. {{xt|8 {{#time: F Y|-1 month}}}} instead of {{xt|08 {{#time: F Y|-1 month}}}}); however, zero-padded days and months are required in the all-numeric format. Use any one of Wikipedia's full-date [[WP:DATE#Formats|acceptable date formats]], but if an acceptable format has been established in the article’s citations and/or references please select it ([[WP:DATEUNIFY]]). The ancillary optional parameter {{bxtn|[[#df|df]]}} may be added to autoformat or change the display of the access date; [[[#datex|examples]]]
* {{bxt|{{vanchor|access-date}}}}: This parameter (or its alias {{bxt|accessdate}}) is required{{snd}} its omission or incorrect entry will produce [[#!dm|an error message]] and will suppress all other template output. For basic usage insert only this parameter; enter the full date the external link (a) was successfully accessed {{em|and}} (b) correctly targeted content supporting the related wikitext. Do not wikilink. When input correctly it will display as entered, after the static text "Retrieved". Except in the all-numeric {{xt|Year-Month-Day}} ({{xt|YYYY-MM-DD}}) format, days should be entered without zero-padding (i.e. {{xt|8 {{#time: F Y|-1 month}}}} instead of {{xt|08 {{#time: F Y|-1 month}}}}); however, zero-padded days and months are required in the all-numeric format. Use any one of Wikipedia's full-date [[WP:DATE#Formats|acceptable date formats]], but if an acceptable format has been established in the article’s citations and/or references please select it ([[WP:DATEUNIFY]]). The ancillary optional parameter {{bxtn|[[#df|df]]}} may be added to autoformat or change the display of the access date; [[[#datex|examples]]]
:{{em|Autoinsert today's date:|id=today}} To quickly and correctly autoinsert today's date enter one of the following "quickfill" options:
:{{em|Autoinsert today's date:|id=today}} Quickly and correctly autoinsert today's date via one of the following "quickfill" options
:{{blist|{{para|access-date|ymd|code=y}} or {{para|access-date|iso|code=y}}{{snd}} displays as the all-numeric {{xt|Year-Month-Day}} ({{xt|YYYY-MM-DD}} or [[ISO 8601|ISO date]]).
:{{blist|{{para|access-date|ymd|code=y}} or {{para|access-date|iso|code=y}}{{snd}} displays as the all-numeric {{xt|Year-Month-Day}} ({{xt|YYYY-MM-DD}} or [[ISO 8601|ISO date]]).
|{{para|access-date|dmy|code=y}}{{snd}} displays as {{xt|Day Month Year}}.
|{{para|access-date|dmy|code=y}}{{snd}} displays as {{xt|Day Month Year}}.
Line 181: Line 180:
|{{para|access-date|smdy|code=y}}{{snd}} displays as {{xt|Month Day, Year}} but with "short" (abbreviated) month name.}}
|{{para|access-date|smdy|code=y}}{{snd}} displays as {{xt|Month Day, Year}} but with "short" (abbreviated) month name.}}
:See [[#Quickfill examples: basic usage with today's date, autoinserted|§ Quickfill examples]] above.
:See [[#Quickfill examples: basic usage with today's date, autoinserted|§ Quickfill examples]] above.
:{{em|Manually insert a date:}} When manually entering the access date keep in mind:
:{{em|Manually insert a date:}} When manually entering the access date keep in mind
:{{blist|{{vanchor|dpart|text=Partial access dates (missing any of day, month or four-digit year) are strongly discouraged; they will either produce inaccurate access date display or suppress it with [[#!dp|an error message]].}}
:{{blist|{{vanchor|dpart|text=Partial access dates (missing any of day, month or four-digit year) are strongly discouraged; they will either produce inaccurate access date display or suppress it with [[#!dp|an error message]].}}
|{{vanchor|dformat|text=Access dates that do not conform to one of the [[WP:DATE#Formats|allowed full-date formats]] (shorthand shown in the [[#today|quickfill options]]) will produce [[#!df|an error]].}} See following.
|{{vanchor|dformat|text=Access dates that do not conform to one of the [[WP:DATE#Formats|allowed full-date formats]] (described in the [[#today|quickfill options list]]) will produce [[#!df|an error]].}} See following.
|Some formatting errors may be avoided by using the recommended parameter {{bxtn|[[#df|df]]}}.}}
|Some formatting errors may be avoided by using the recommended parameter {{bxtn|[[#df|df]]}}.}}
:{{em|Future dates:}}
:{{em|Future dates:}}
Line 192: Line 191:
{{See also-text|{{slink|Template:Cite web|Subscription or registration required}}}}
{{See also-text|{{slink|Template:Cite web|Subscription or registration required}}}}


* {{bxtn|{{vanchor|access-info}}}}: If the online source has access requirements or restrictions use one of the options below to add an indicative inline icon (includes [[tooltip]]). Ideally it should display immediately after the external link and a [[non-breaking space]]. This parameter displays first, before any other output. Invalid options will silently suppress the inline icon; if error-handling parameter {{bxt|[[#err|err]]}} is used a related [[#!accesserr|error message]] will be displayed. See also {{slink||General notes}}; [[[#accessx|example]]]
* {{bxtn|{{vanchor|access-info}}}}: If the online source has access requirements or restrictions use one of the options below to add an indicative inline icon (includes [[tooltip]]). Ideally it should display immediately after the external link and a [[non-breaking space]]. This parameter displays first, before any other template output. Invalid options will silently suppress the inline icon; if error-handling parameter {{bxt|[[#err|err]]}} is used an [[#!accesserr|error message]] will be displayed. See also {{slink||General notes}}; [[[#accessx|example]]]
** {{para|access-info|registration|code=y}}{{snd}} free registration is required; displays a gray lock icon.
** {{para|access-info|registration|code=y}}{{snd}} free registration is required; displays a gray lock icon.
** {{para|access-info|limited|code=y}}{{snd}} free access is limited e.g. based on number of views, or is time-limited, or is only partially free; displays the same gray lock icon as registration, but with different tooltip text.
** {{para|access-info|limited|code=y}}{{snd}} free access is limited e.g. based on number of views, or is time-limited, or is only partially free; displays the same gray lock icon as registration, but with different tooltip text.
Line 199: Line 198:
====Source comment, link comment====
====Source comment, link comment====


* {{bxtn|{{vanchor|prepend}}}}: Use for additional citable information specific to the retrieved version of the source, only if necessary for clarity. This parameter may display first, or after the parameter {{bxtn|[[#access-info|access-info]]}}; [[[#prepx|example]]].
* {{bxtn|{{vanchor|prepend}}}}: Use for additional citable information specific to the retrieved version of the source, only if necessary for clarity. This parameter may display first, or after parameter {{bxtn|[[#access-info|access-info]]}}; [[[#prepx|example]]].
** {{bxtn|{{vanchor|nopun}}}}: {{bxtn|prepend}}-dependent parameter. Set {{para|nopun|y|code=y|plain=y}}, any other input is ignored. Removes the default [[#mode|presentation mode]] punctuation autoinserted between {{bxtn|access-info}} and {{bxtn|prepend}}, leaving a single space as separator; [[[#allx|example]]].
** {{bxtn|{{vanchor|nopun}}}}: {{bxtn|prepend}}-dependent parameter. Set {{para|nopun|y|code=y|plain=y}}{{snd}} any other input is ignored. Removes the default [[#mode|presentation mode]] punctuation autoinserted between {{bxtn|access-info}} and {{bxtn|prepend}}, leaving a single space as separator; [[[#allx|example]]].


* {{bxtn|{{vanchor|note}}}}: Use to add a brief relevant comment specific to the accessed link. May be wikilinked. Displays in parentheses after the access date or parameter {{bxtn|[[#via|via]]}}; [[[#notex|example]]].
* {{bxtn|{{vanchor|note}}}}: Use to add a brief relevant comment specific to the accessed link. May be wikilinked. Displays in parentheses after the access date or parameter {{bxtn|[[#via|via]]}}; [[[#notex|example]]].

Revision as of 14:11, 8 October 2024

Retrieved 2025-01-03⁠.