Jump to content

Template:Retrieved/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
+date format validation
ce; etc.
Line 174: Line 174:
{{See also-text|{{slink|Template:Cite web|Date|Display options}}}}
{{See also-text|{{slink|Template:Cite web|Date|Display options}}}}


* {{bxtn|{{vanchor|df}}}}: Use to autoformat the display of [[#access-date|{{bxt|access-date}}]], irrespective of the way it was entered by the user. It is recommended, and will correctly format the access date in one of the {{em|full-date}} [[WP:DATE#Formats|acceptable date formats]] (partial dates are not supported). Except for the all numeric {{xt|YYYY-MM-DD}} ([[ISO 8601|ISO date]]) option, all other options display non-zero-padded days (i.e. {{xt|8 {{#time: F Y|-1 month}}}} instead of {{xt|08 {{#time: F Y|-1 month}}}}). Please follow the format, if any, established in the article’s citations and/or references{{snd}} see [[WP:DATEUNIFY]]; [[[#dfx|examples]]]
* {{bxtn|{{vanchor|df}}}}: Use to autoformat the display of [[#access-date|{{bxt|access-date}}]], irrespective of the way it was entered by the user. It is recommended, and will correctly format the access date in one of the {{em|full-date}} [[WP:DATE#Formats|acceptable date formats]] (partial dates are not supported). Except for the all-numeric {{xt|YYYY-MM-DD}} ([[ISO 8601|ISO date]]) option, all other options display non-zero-padded days (i.e. {{xt|8 {{#time: F Y|-1 month}}}} instead of {{xt|08 {{#time: F Y|-1 month}}}}). Please follow the format, if any, established in the article’s citations and/or references{{snd}} see [[WP:DATEUNIFY]]; [[[#dfx|examples]]]
** {{para|df|ymd|code=y}} or {{para|df|iso|code=y}}{{snd}} displays as the all-numeric {{xt|YYYY-MM-DD}} ([[ISO 8601|ISO date]]).
** {{para|df|ymd|code=y}} or {{para|df|iso|code=y}}{{snd}} displays as the all-numeric {{xt|YYYY-MM-DD}} ([[ISO 8601|ISO date]]).
** {{para|df|dmy|code=y}}{{snd}} displays as {{xt|Day Month Year}}.
** {{para|df|dmy|code=y}}{{snd}} displays as {{xt|Day Month Year}}.
Line 223: Line 223:
}}
}}


==Error messages==
==Error message examples==


{{strong|Access date information is missing or not entered correctly|id=!dm}}
{{strong|Access date information is missing or not entered correctly (parameter name)|id=!dm}}
*<code><nowiki>{{retrieved/sandbox |access-info=subscription |</nowiki>{{!bxt|1=date={{#time:Y-m-d}}}}<nowiki> |via=OnlinePublisherName}}</nowiki></code><br/>
*<code><nowiki>{{retrieved/sandbox |access-info=subscription |</nowiki>{{!bxt|1=date={{#time:Y-m-d}}}}<nowiki> |via=OnlinePublisherName}}</nowiki></code><br/>
::{{retrieved/sandbox |access-info=subscription |date={{#time:Y-m-d}} |via=OnlinePublisherName}}
::{{retrieved/sandbox |access-info=subscription |date={{#time:Y-m-d}} |via=OnlinePublisherName}}


{{strong|Access date format is not valid|id=!df}}
{{strong|Access date format is not valid (missing punctuation)|id=!df}}
*<code><nowiki>{{retrieved/sandbox |access-info=subscription |</nowiki>{{!bxt|1=access-date={{#time: M j Y}}}}<nowiki> |via=OnlinePublisherName}}</nowiki></code></br>
*<code><nowiki>{{retrieved/sandbox |access-info=subscription |</nowiki>{{!bxt|1=access-date={{#time: M j Y}}}}<nowiki> |via=OnlinePublisherName}}</nowiki></code></br>
::{{retrieved/sandbox |access-info=subscription |access-date={{#time: M j Y}} |via=OnlinePublisherName}}
::{{retrieved/sandbox |access-info=subscription |access-date={{#time: M j Y}} |via=OnlinePublisherName}}

Revision as of 14:35, 18 September 2024

Retrieved 2025-01-03.