Template:Cite web/doc: Difference between revisions

m
Reverted 3 edits by Eubulides; Rv; no consensus for ever hiding access dates. using TW
imported>Eubulides
(→‎Examples: Comment out accessdate=, but only when publication date is also given, as per WP:CITEHOW.)
imported>AnmaFinotera
m (Reverted 3 edits by Eubulides; Rv; no consensus for ever hiding access dates. using TW)
Line 12:
Citations within a page should use consistent formats. However, there is no consensus about which format is best. The following examples are for citations where one or more authors are listed in a single {{para|author|<var>authors</var>}} parameter, using any format. Also shown below are three separate date formats that are commonly used in Wikipedia:
 
;YYYY-MM-DD: <code><nowiki>{{cite web |url= |title= |author= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=</nowiki>{{#time: Y-m-d }}<nowiki>}}</nowiki>}}</code>
 
;Day Month Year: <code><nowiki>{{cite web |url= |title= |author= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=</nowiki>{{#time: j F Y }}<nowiki>}}</nowiki>}}</code>
 
;Month Day, Year: <code><nowiki>{{cite web |url= |title= |author= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=</nowiki>{{#time: F j, Y }}<nowiki>}}</nowiki>}}</code>
 
=== Common forms with last1, first1; last2, first2 ===
Line 22:
The examples below will suffice for up to two authors each with first and last names; for more, just create more parameters in a similar style:
 
;YYYY-MM-DD: <code><nowiki>{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=</nowiki>{{#time: Y-m-d }}<nowiki>}}</nowiki>}}</code>
 
;Day Month Year: <code><nowiki>{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=</nowiki>{{#time: j F Y }}<nowiki>}}</nowiki>}}</code>
 
;Month Day, Year: <code><nowiki>{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=</nowiki>{{#time: F j, Y }}<nowiki>}}</nowiki>}}</code>
 
=== All parameters ===
Line 99:
** '''archiveurl''': The URL of an [[Web archiving|archived]] copy of the page, if (or in case) the url becomes unavailable. Typically used to refer to services like [[WebCite]] and [[Internet Archive|Archive.org]].
** '''archivedate''': Date when the item was archived. Should not be wikilinked.
*'''accessdate''': Full date when item was accessed. Should not be wikilinked. The [[WP:CITEHOW|style guideline for citations]] suggests commenting this out if the publication date is given, so that editors can see the access date as necessary but readers are not bothered by this less-important detail.
*'''quote''': Relevant quote from online item.
*'''ref''': ID for anchor. By default, no anchor is generated. The ordinary nonempty value {{para|ref|<var>ID</var>}} generates an anchor with the given <code><var>ID</var></code>; such a linkable reference can be made the target of [[Wikipedia:Citing sources/Further considerations #Wikilinks to full references|wikilinks to full references]], especially useful in short citations like [[Wikipedia:Citing sources #Shortened footnotes|shortened notes]] and [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. The special value {{para|ref|harv}} generates an anchor suitable for the {{tl|harv}} template; see ''[[Template:Citation/doc #Anchors for Harvard referencing templates|anchors for Harvard referencing templates]]''.
Line 118:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--6 July 2005-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
Line 126:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--6 July 2005-->
}}</span>
 
Line 135:
|date=30 April 2005
|work=Encyclopedia of things
|accessdate=<!--6 July 2005-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
Line 142:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--6 July 2005-->
}}</span>
 
Line 150:
|author=Doe, John
|date=30 April 2005
|accessdate=<!--6 July 2005-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
Line 156:
|author=Doe, John
|date=30 April 2005
|accessdate=<!--6 July 2005-->
}}</span>
 
Line 214:
|author=Joliet, François
|date=30 April 2005
|accessdate=<!--6 July 2005-->
|language=French
|trans_title=Shame on those who think evil
Line 222:
|author=Joliet, François
|date=30 April 2005
|accessdate=<!--6 July 2005-->
|language=French
|trans_title=Shame on those who think evil
Line 237:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--16 May 2006-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
Line 247:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--16 May 2006-->
}}</span>
 
Line 259:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--16 May 2006-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
Line 269:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--16 May 2006-->
}}</span>
 
Line 279:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--16 May 2006-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
Line 286:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--16 May 2006-->
}}</span>
 
Line 296:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--6 July 2005-->
}}</nowiki></code></br>→ <span style="background:white">{{cite web
|url=http://www.example.org/
Line 302:
|date=30 April 2005
|work=Encyclopedia of Things
|accessdate=<!--6 July 2005-->
}}</span>
 
Line 309:
|title=Index of Sharp Things
|date=30 April 2005
|accessdate=<!--6 July 2005-->}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
|title=Index of Sharp Things
|date=30 April 2005
|accessdate=<!--6 July 2005-->}}</span>
 
*<code><nowiki>{{cite web
Line 320:
|date=30 April 2005
|format=PDF
|accessdate=<!--July 6, 2005-->
|language=Greek
}}</nowiki></code><br/> → <span style="background:white">{{cite web
Line 327:
|date=30 April 2005
|format=PDF
|accessdate=<!--July 6, 2005-->
|language=Greek
}}</span>
Line 337:
|date=30 April 2005
|format=PDF
|accessdate=<!--July 6, 2005-->
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf
|archivedate=2005-09-11
Line 345:
|date=30 April 2005
|format=PDF
|accessdate=<!--July 6, 2005-->
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf
|archivedate=2005-09-11
Line 372:
|work=WebExhibits
|date=2008
|accessdate=<!--2009-09-27-->
|quote=...&amp;nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&amp;nbsp;...'
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
Line 379:
|work=WebExhibits
|date=2008
|accessdate=<!--2009-09-27-->
|quote=...&nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&nbsp;...'
}}</span>
Anonymous user