Difference between revisions of "Template:Retrieved"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{Template test cases notice}}
<!-- Begin {{Retrieved}} --><includeonly>{{#if: {{{accessdate|}}}{{{accessmonthday|}}}{{{accessdaymonth|}}}
=={{SUBJECTSPACE}}:{{BASEPAGENAME}}==
  |{{{prepend|}}}Retrieved on {{#if: {{{accessdate|}}}
"{{((}} {{BASEPAGENAME}} {{))}}":
    |[[{{{accessdate}}}]]{{#if: {{{accessyear|}}} | [[{{{accessyear}}}]]}}
:"{{ {{BASEPAGENAME}} }}"
    |{{#if: {{{accessmonthday|}}} |{{{accessmonthday|}}}|{{{accessdaymonth|}}}}}{{#if: {{{accessyear|}}} |{{#if: {{{accessmonthday|}}} |,}}&#32;{{{accessyear}}}}}}}{{{append|.}}}}}</includeonly><!-- End {{Retrieved}} --><noinclude>
{{Retrieved | accessdate={{#time: Y-m-d }} }}


===Linked date forms===
{{Documentation, template}}
;Linked date form with parameter&#58; accessdate
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
"{{((}} {{BASEPAGENAME}} {{!}} accessdate={{#time:Y-m-d}} {{))}}":
</noinclude>
:"{{ {{BASEPAGENAME}} | accessdate={{#time:Y-m-d}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessdate={{#time:F j}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdate={{#time:F j}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessdate={{#time:j F}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdate={{#time:j F}} }}"
 
;Linked date form with parameters&#58; accessdate accessyear
"{{((}} {{BASEPAGENAME}} {{!}} accessdate={{#time:F j}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdate={{#time:F j}} | accessyear={{#time:Y}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessdate={{#time:j F}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdate={{#time:j F}} | accessyear={{#time:Y}} }}"
 
===Non-linked date forms===
;Non-linked date form with parameter&#58; accessmonthday
"{{((}} {{BASEPAGENAME}} {{!}} accessmonthday={{#time:Y-m-d}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessmonthday={{#time:Y-m-d}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessmonthday={{#time:F j}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessmonthday={{#time:F j}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessmonthday={{#time:j F}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessmonthday={{#time:j F}} }}"
 
;Non-linked date form with parameter&#58; accessdaymonth
"{{((}} {{BASEPAGENAME}} {{!}} accessdaymonth={{#time:Y-m-d}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdaymonth={{#time:Y-m-d}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessdaymonth={{#time:F j}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdaymonth={{#time:F j}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessdaymonth={{#time:j F}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdaymonth={{#time:j F}} }}"
 
;Non-linked date form with parameters&#58; accessmonthday accessyear
"{{((}} {{BASEPAGENAME}} {{!}} accessmonthday={{#time:F j}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessmonthday={{#time:F j}} | accessyear={{#time:Y}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessmonthday={{#time:j F}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessmonthday={{#time:j F}} | accessyear={{#time:Y}} }}"
 
;Non-linked date form with parameters&#58; accessdaymonth accessyear
"{{((}} {{BASEPAGENAME}} {{!}} accessdaymonth={{#time:F j}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdaymonth={{#time:F j}} | accessyear={{#time:Y}} }}"
 
"{{((}} {{BASEPAGENAME}} {{!}} accessdaymonth={{#time:j F}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}} | accessdaymonth={{#time:j F}} | accessyear={{#time:Y}} }}"
 
===Parameter append===
"{{((}} {{BASEPAGENAME}} {{!}} accessdate={{#time:Y-m-d}} {{!}} append=! {{))}}":
:"{{ {{BASEPAGENAME}} | accessdate={{#time:Y-m-d}} | append=! }}"
 
===Parameter prepend===
"{{((}} {{BASEPAGENAME}} {{!}} accessdate={{#time:Y-m-d}} {{!}} prepend=.&amp;#32; {{))}}":
:"{{ {{BASEPAGENAME}} | accessdate={{#time:Y-m-d}} | prepend=.&#32; }}"
 
=={{SUBJECTSPACE}}:{{BASEPAGENAME}}/sandbox==
"{{((}} {{BASEPAGENAME}}/sandbox {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox }}"
 
===Linked date forms===
;Linked date form with parameter&#58; accessdate
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdate={{#time:Y-m-d}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdate={{#time:Y-m-d}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdate={{#time:F j}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdate={{#time:F j}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdate={{#time:j F}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdate={{#time:j F}} }}"
 
;Linked date form with parameters&#58; accessdate accessyear
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdate={{#time:F j}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdate={{#time:F j}} | accessyear={{#time:Y}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdate={{#time:j F}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdate={{#time:j F}} | accessyear={{#time:Y}} }}"
 
===Non-linked date forms===
;Non-linked date form with parameter&#58; accessmonthday
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessmonthday={{#time:Y-m-d}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessmonthday={{#time:Y-m-d}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessmonthday={{#time:F j}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessmonthday={{#time:F j}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessmonthday={{#time:j F}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessmonthday={{#time:j F}} }}"
 
;Non-linked date form with parameter&#58; accessdaymonth
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdaymonth={{#time:Y-m-d}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdaymonth={{#time:Y-m-d}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdaymonth={{#time:F j}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdaymonth={{#time:F j}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdaymonth={{#time:j F}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdaymonth={{#time:j F}} }}"
 
;Non-linked date form with parameters&#58; accessmonthday accessyear
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessmonthday={{#time:F j}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessmonthday={{#time:F j}} | accessyear={{#time:Y}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessmonthday={{#time:j F}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessmonthday={{#time:j F}} | accessyear={{#time:Y}} }}"
 
;Non-linked date form with parameters&#58; accessdaymonth accessyear
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdaymonth={{#time:F j}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdaymonth={{#time:F j}} | accessyear={{#time:Y}} }}"
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdaymonth={{#time:j F}} {{!}} accessyear={{#time:Y}} {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdaymonth={{#time:j F}} | accessyear={{#time:Y}} }}"
 
===Parameter append===
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdate={{#time:Y-m-d}} {{!}} append=! {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdate={{#time:Y-m-d}} | append=! }}"
 
===Parameter prepend===
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} accessdate={{#time:Y-m-d}} {{!}} prepend=.&amp;#32; {{))}}":
:"{{ {{BASEPAGENAME}}/sandbox | accessdate={{#time:Y-m-d}} | prepend=.&#32; }}"

Latest revision as of 15:00, 3 February 2009

Retrieved on 2024-06-01.

[edit] Template-info.svg Template documentation

Description

Implements Template:Cite web "Retrieved on ..." behavior for use within citations using templates without "Retrieved on ..." behavior such as:

Template:Imdb title
Template:Rotten-tomatoes
Example:

A [[Brad Pitt]] statement.<ref>{{imdb name|id=0000093|name=Brad Pitt}}. {{retrieved | accessdate=2024-06-01 }}</ref>



=== References ===

{{Reflist}}

Generates:

A Brad Pitt statement.[1]



References

  1. Brad Pitt at the Internet Movie Database. Retrieved on 2024-06-01.

Usage

This template supports linked and non-linked date forms.

Linked date forms

Linked date form with parameter: accessdate

{{retrieved | accessdate=2024-06-01 }}

Generates: Retrieved on 2024-06-01.
Linked date form with parameters: accessdate accessyear

{{retrieved | accessdate=June 1 | accessyear=2024 }}

Generates: Retrieved on June 12024.

Non-linked date forms

Non-linked date form with parameter: accessmonthday

{{retrieved | accessmonthday=June 1, 2024 }}

Generates: Retrieved on June 1, 2024.
Non-linked date form with parameter: accessdaymonth

{{retrieved | accessdaymonth=1 June 2024 }}

Generates: Retrieved on 1 June 2024.
Non-linked date form with parameters: accessmonthday accessyear

{{retrieved | accessmonthday=June 1 | accessyear=2024 }}

Generates: Retrieved on June 1, 2024.
Non-linked date form with parameters: accessdaymonth accessyear

{{retrieved | accessdaymonth=1 June | accessyear=2024 }}

Generates: Retrieved on 1 June 2024.


ru:Шаблон:Проверено