Template:Cite web/doc: Difference between revisions

no edit summary
imported>Eubulides
(Comment out accessdate= as per WP:CITEHOW.)
imported>VanishedUser sdu9aya9fasdsopa
No edit summary
 
(18 intermediate revisions by 10 users not shown)
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-DDDay Month Year: <code><nowiki>{{cite web |url= |title= |author= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=<!--</nowiki>{{#time: j F Y-m-d }}<nowiki>-->}}</nowiki>}}</code>
 
;Day Month Day, Year: <code><nowiki>{{cite web |url= |title= |author= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=<!--</nowiki>{{#time: j F j, Y }}<nowiki>-->}}</nowiki>}}</code>
 
;Month Day, YearYYYY-MM-DD: <code><nowiki>{{cite web |url= |title= |author= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=<!--</nowiki>{{#time: F j, Y-m-d }}<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-DDDay Month Year: <code><nowiki>{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=<!--</nowiki>{{#time: j F Y-m-d }}<nowiki>-->}}</nowiki>}}</code>
 
;Day Month Day, Year: <code><nowiki>{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=<!--</nowiki>{{#time: j F j, Y }}<nowiki>-->}}</nowiki>}}</code>
 
;Month Day, YearYYYY-MM-DD: <code><nowiki>{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= </nowiki>{{nowrap|<nowiki>|accessdate=<!--</nowiki>{{#time: F j, Y-m-d }}<nowiki>-->}}</nowiki>}}</code>
 
=== All parameters ===
Line 85:
*'''format''': Format, e.g. PDF. HTML implied if not specified.
*'''work''': If this item is part of a larger "work", such as a book, periodical or website, write the name of that work. Do not italicize; the software will do so automatically.
*'''publisher''': Publisher, if any—for example if the website is hosted by a government service, educational institution, or company. (The '''publisher''' is not usually the name of the website, (that is usually the '''work''').
**'''location''': Geographical place of publication.
* a page parameter
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. TheThis [[WP:CITEHOW|styleshould guidelinebe forgiven citations]]if suggeststhe commentingpublication thisdate out,is so that editors canunknown; see it''[[WP:CITEHOW|Citation as necessary but readers are not bothered by this less-important detailstyles]]''.
*'''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 163:
|title=My Favorite Things, Part II
author=Doe, John
|accessdate=<!--6 July 2005-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
|author=Doe, John
|accessdate=<!--6 July 2005-->
}}</span>
 
Line 174:
|url=http://www.example.org/
|title=My Favorite Things, Part II
|accessdate=<!--6 July 2005-->
}}</nowiki></code><br/>→ <span style="background:white">{{cite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
|accessdate=<!--6 July 2005-->
}}</span>
 
Line 185:
|title=Digest of Rules
|publisher=National Football League
|accessdate=<!--6 July 2005-->
}}</nowiki></code><br>→ <span style="background:white">{{cite web
|url=http://www.nfl.com/rulebook/digestofrules
|title=Digest of Rules
|publisher=National Football League
|accessdate=<!--6 July 2005-->
}}</span>
 
Line 199:
|publisher=International Narcotics Control Board
|format=PDF
|accessdate=<!--July 6, 2005-->
}}</nowiki></code><br/> → <span style="background:white">{{cite web
|url=http://www.incb.org/pdf/e/list/green.pdf
Line 205:
|publisher=International Narcotics Control Board
|format=PDF
|accessdate=<!--July 6, 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>
 
==Using cite web on other Mediawiki installations==
 
If you want to use 'cite web' on another Mediawiki site, for example at wikia.com or at referata.com, you probably want to edit your <nowiki>http://yoursite.whatever.org/wiki/Mediawiki:common.css</nowiki> file to match the cite styles at http://en.wikipedia.org/wiki/Mediawiki:common.css . Easiest is to just copy the whole file. But if you don't want that, you probably want to add the following:
 
<blockquote>
<tt>
<pre>
 
/* Styling for citations */
span.citation, cite {
font-style: normal;
word-wrap: break-word;
}
 
/* For linked citation numbers and document IDs, where
the number need not be shown on a screen or a handheld,
but should be included in the printed version
*/
@media screen, handheld {
span.citation *.printonly {
display: none;
}
}
 
</pre>
</tt>
</blockquote>
 
The reason? If you don't, every URL will show up twice in your &lt;references&gt; or &#123;&#123;reflist&#125;&#125; section, because it think's it is printing on paper, and when it prints on paper, it prints out the entire URL.
 
==See also==
Line 404 ⟶ 434:
[[ca:Plantilla:Citar web]]
[[cs:Šablona:Citace elektronické monografie]]
[[cy:Nodyn:Dyf gwe]]
[[da:Skabelon:Kilde www]]
[[de:Vorlage:Cite web]]
Line 412 ⟶ 443:
[[fr:Modèle:Lien web]]
[[hr:Predložak:Cite web]]
[[hy:Կաղապար:Cite web]]
[[ia:Patrono:Cite web]]
[[it:Template:Cita web]]
Line 431 ⟶ 463:
[[fi:Malline:Verkkoviite]]
[[uk:Шаблон:Cite web]]
[[ur:Template:Cite web]]
[[vi:Tiêu bản:Chú thích web]]
[[tr:Şablon:Cite web]]