Template:Cite web/doc: Difference between revisions

m
→‎Usage: Put {{nowrap}} around accessdate examples, so that it isn't broken by a line boundary.
imported>DESiegel
(rv: for web cites, an access date should be displayed, see talk page.)
imported>Eubulides
m (→‎Usage: Put {{nowrap}} around accessdate examples, so that it isn't broken by a line boundary.)
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 ===
Anonymous user