Difference between revisions of "Template:Cite web"

38 bytes added ,  12:43, 7 October 2020
Add last updated date parameter
(Created page with "<includeonly>{{ #if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}} ||You must specify '''''title = ''''' and '''''url = ''''' when using {{cite web}}...")
 
(Add last updated date parameter)
 
(6 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
#if: {{{author|}}}{{{last|}}}
 
#if: {{{author|}}}{{{last|}}}
 
   | {{#if: {{{last|}}}
 
   | {{#if: {{{last|}}}
     | {{{last}}{{#if: {{{first|}}}
+
     | {{{last}}}{{#if: {{{first|}}}
 
       | , {{{first}}}
 
       | , {{{first}}}
 
       }}.
 
       }}.
 
     | {{{author}}}.
 
     | {{{author}}}.
 
   }}
 
   }}
}}{{
 
#if: {{{date|}}}
 
  | &#32;({{#time:F j, Y | {{{date}}} }})
 
 
}}{{
 
}}{{
 
#if: {{{archiveurl|}}}
 
#if: {{{archiveurl|}}}
Line 27: Line 24:
 
#if: {{{format|}}}
 
#if: {{{format|}}}
 
   | &#32;[{{{format}}}]
 
   | &#32;[{{{format}}}]
 +
}}{{
 +
#if: {{{date|}}}
 +
  | &#32;({{#time:F j, Y | {{{date}}} }})
 
}}.{{
 
}}.{{
#if: {{{website|}}}
+
#if: {{{work|}}}
   | {{#if: {{{websiteurl|}}}
+
   | &#32;''{{{work}}}.''
    | &#32;''[{{{websiteurl}}} {{{website}}}].''
+
}}{{
    | &#32;''{{{website}}}.''
+
#if: {{{updatedate|}}}
  }}
+
  | &#32;Last updated on {{#time:F j, Y | {{{updatedate}}} }}.
 
}}{{
 
}}{{
 
#if: {{{archivedate|}}}
 
#if: {{{archivedate|}}}
Line 38: Line 38:
 
}}{{
 
}}{{
 
#if: {{{accessdate|}}}
 
#if: {{{accessdate|}}}
   | &#32;Retrieved on {{#time:F j, Y | {{accessdate}}} }}.
+
   | &#32;Retrieved on {{#time:F j, Y | {{{accessdate}}} }}.
 
}}{{#if: {{{quote|}}}  
 
}}{{#if: {{{quote|}}}  
 
   | &nbsp;“{{{quote}}}”
 
   | &nbsp;“{{{quote}}}”
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 +
[[Category:Citation templates|Web]]
 
</noinclude>
 
</noinclude>