Difference between revisions of "Template:Cite web"
[unchecked revision] | [unchecked revision] |
Aeverinezinn (talk | contribs) m (1 revision imported) |
Aeverinezinn (talk | contribs) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{ |
− | | | + | #if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}} |
+ | ||You must specify '''''title = ''''' and '''''url = ''''' when using {{[[Template:cite web|cite web]]}}. | ||
+ | {{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}} | ||
+ | }}{{ | ||
+ | #if: {{{archiveurl|}}}{{{archivedate|}}} | ||
+ | | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}} | ||
+ | ||You must specify '''''archiveurl = ''''' and '''''archivedate = ''''' when using {{[[Template:cite web|cite web]]}}. | ||
+ | {{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}} | ||
+ | }} | ||
+ | }}{{#if: {{{author|}}}{{{last|}}} | ||
+ | | {{#if: {{{authorlink|}}} | ||
+ | | [[{{{authorlink}}}|{{#if: {{{last|}}} | ||
+ | | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | ||
+ | | {{{author}}} | ||
+ | }}]] | ||
+ | | {{#if: {{{last|}}} | ||
+ | | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | ||
+ | | {{{author}}} | ||
+ | }} | ||
+ | }} | ||
+ | }}{{#if: {{{author|}}}{{{last|}}} | ||
+ | | {{#if: {{{coauthors|}}}| <nowiki>;</nowiki> {{{coauthors}}} }} | ||
+ | }}{{#if: {{{author|}}}{{{last|}}}| | ||
+ | {{#if: {{{date|}}} | ||
+ | |  ({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|[[{{{date}}}]]|{{{date}}}}}) | ||
+ | | {{#if: {{{year|}}} | ||
+ | | {{#if: {{{month|}}} | ||
+ | |  ({{{month}}} {{{year}}}) | ||
+ | |  ({{{year}}}) | ||
+ | }} | ||
+ | }} | ||
+ | |}} | ||
+ | }}{{#if: {{{last|}}}{{{author|}}} | ||
+ | | . }}{{ | ||
+ | #if: {{{editor|}}} | ||
+ | |  {{{editor}}}: | ||
+ | }}{{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }} | ||
+ | }}{{#if: {{{format|}}} |  ({{{format|}}}) | ||
+ | }}{{#if: {{{language|}}} |  <span style="color:#555;">({{{language}}})</span> | ||
+ | }}{{#if: {{{work|}}} | ||
+ | | . ''{{{work}}}'' | ||
+ | }}{{#if: {{{pages|}}} | ||
+ | |  {{{pages}}} | ||
+ | }}{{#if: {{{publisher|}}} | ||
+ | | . {{{publisher}}}{{#if: {{{author|}}}{{{last|}}} | ||
+ | | | ||
+ | | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }} | ||
+ | }} | ||
+ | }}{{#if: {{{author|}}}{{{last|}}} | ||
+ | ||{{#if: {{{date|}}} | ||
+ | |  ({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|[[{{{date}}}]]|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|[[{{{date}}}]]|{{{date}}}}}}}) | ||
+ | | {{#if: {{{year|}}} | ||
+ | | {{#if: {{{month|}}} | ||
+ | |  ({{{month}}} {{{year}}}) | ||
+ | |  ({{{year}}}) | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }}.{{#if: {{{archivedate|}}} | ||
+ | |  [{{{archiveurl}}} Archived] from the original on {{{archivedate}}}. | ||
+ | }}{{#if: {{{doi|}}} | ||
+ | |  [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]. | ||
+ | }}{{#if: {{{accessdate|}}} | ||
+ | |  Retrieved on [[{{{accessdate}}}]]{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}. | ||
+ | }}{{#if: {{{accessmonthday|}}} | ||
+ | |  Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}. | ||
+ | }}{{#if: {{{accessdaymonth|}}} | ||
+ | |  Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} |  {{{accessyear}}} }}. | ||
+ | }}{{#if: {{{quote|}}} | ||
+ | | “{{{quote}}}” | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | {{ | + | |
+ | {{Documentation}} | ||
+ | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> |
Latest revision as of 19:11, 7 September 2018
Template:AWB standard installation Template:Citation Style documentation/lead
Contents
Usage[edit]
Template:Citation Style documentation/usage
Template:Citation Style documentation/usage common For references with author credit
{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=1 May 2024}}
{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=May 1, 2024}}
For references without author credit
{{cite web |url= |title= |author=<!--Staff writer(s); no by-line.--> |date= |work= |publisher= |accessdate=1 May 2024}}
{{cite web |url= |title= |author=<!--Staff writer(s); no by-line.--> |date= |work= |publisher= |accessdate=May 1, 2024}}
Template:Citation Style documentation/usage full
{{cite web |url= |title= |last= |first= |author= |authorlink= |last2= |first2= |author2= |authorlink2= |date= |month= |year= |editor-last= |editor-first= |editor= |editor-link= |editor1-last= |editor1-first= |editor1-link= |editor2-last= |editor2-first= |editor2-link= |editors= |work= |series= |publisher= |location= |page= |pages= |at= |language= |trans_title= |type= |format= |arxiv= |asin= |bibcode= |doi= |doibroken= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc = |pmid= |rfc= |ssrn= |zbl= |id= |archiveurl= |archivedate= |deadurl= |accessdate= |quote= |ref= |separator= |postscript=}}
Template:End Template:Citation Style documentation/usage vertical
{{cite web |url = |title = |last1 = |first1 = |authorlink1 = |last2 = |first2 = |authorlink2 = |date = |month = |year = |editor-last = |editor-first = |editor = |editor-link = |editor1-last = |editor1-first= |editor1-link = |editor2-last = |editor2-first= |editor2-link = |editors = |work = |series = |publisher = |location = |page = |pages = |at = |language = |trans_title = |type = |format = |arxiv = |asin = |bibcode = |doi = |doibroken = |isbn = |issn = |jfm = |jstor = |lccn = |mr = |oclc = |ol = |osti = |pmc = |pmid = |rfc = |ssrn = |zbl = |id = |archiveurl = |archivedate = |deadurl = |accessdate = |quote = |ref = |separator = |postscript = }}
Template:Citation Style documentation/usage vertical mid
Template:Citation Style documentation/usage vertical mid
Template:Citation Style documentation/usage vertical end Template:Citation Style documentation/usage vertical common
{{cite web |url = |title = |last = |first = |date = |work = |publisher = |accessdate = }}
Examples[edit]
{{cite web |url = http://www.example.org/ |title = My Favorite Things, Part II |last = Doe |first = John |publisher = Open Publishing |date = 30 April 2005 |work = Encyclopedia of Things |accessdate= 6 July 2005 }}
- Doe, John (30 April 2005). My Favorite Things, Part II. Encyclopedia of Things. Open Publishing. Retrieved on 6 July 2005.
{{cite web |url = http://www.example.org/ |title = My Favorite Things, Part II |last = Doe |first = John |date = 30 April 2005 |work = Encyclopedia of Things |accessdate= 6 July 2005 }}
- Doe, John (30 April 2005). My Favorite Things, Part II. Encyclopedia of Things. Retrieved on 6 July 2005.
{{cite web |url = http://www.example.org/ |title = My Favorite Things, Part II |last = Doe |first = John |date = 30 April 2005 |accessdate= 6 July 2005 }}
- Doe, John (30 April 2005). My Favorite Things, Part II. Retrieved on 6 July 2005.
{{cite web |url = http://www.example.org/ |title = My Favorite Things, Part II |last = Doe |first = John |accessdate= 6 July 2005 }}
- Doe, John. My Favorite Things, Part II. Retrieved on 6 July 2005.
{{cite web |url=http://www.example.org/ |title=My Favorite Things, Part II |accessdate=6 July 2005 }}
- My Favorite Things, Part II. Retrieved on 6 July 2005.
{{cite web |url=http://www.nfl.com/rulebook/digestofrules |title=Digest of Rules |publisher=National Football League |accessdate=6 July 2005 }}
- Digest of Rules. National Football League. Retrieved on 6 July 2005.
Using format
{{cite web |url=http://www.incb.org/pdf/e/list/green.pdf |title=List of psychotropic substances under international control |publisher=International Narcotics Control Board |format=PDF |accessdate=6 July 2005 }}
- List of psychotropic substances under international control (PDF). International Narcotics Control Board. Retrieved on 6 July 2005.
Foreign language and translated title
{{cite web |url=http://www.example.org/ |title=Honi soit qui mal y pense |last=Joliet |first=François |date=30 April 2005 |accessdate=6 July 2005 |language=French |trans_title=Shame on those who think evil }}
- Joliet, François (30 April 2005). Honi soit qui mal y pense (French). Retrieved on 6 July 2005.
Using authorlink
{{cite web |url=http://www.example.org/ |title=My Favorite Things, Part II |last=Doe |first=John |authorlink=John Doe |publisher=Open Publishing |date=30 April 2005 |work=Encyclopedia of Things |accessdate=6 July 2005 }}
- Doe, John (30 April 2005). My Favorite Things, Part II. Encyclopedia of Things. Open Publishing. Retrieved on 6 July 2005.
{{cite web |url=http://www.example.org/ |title=Our Favorite Things |last1=Doe |first1=John |last2=Smith |first2=Peter |last3=Smythe |first3=Jim |publisher=Open Publishing |date=30 April 2005 |work=Encyclopedia of Things |accessdate=16 May 2006 }}
- Our Favorite Things. Encyclopedia of Things. Open Publishing (30 April 2005). Retrieved on 16 May 2006.
{{cite web |url=http://www.example.org/ |title=Index of Sharp Things |publisher=Open Publishing |date=30 April 2005 |work=Encyclopedia of Things |accessdate=16 May 2006 }}
- Index of Sharp Things. Encyclopedia of Things. Open Publishing (30 April 2005). Retrieved on 16 May 2006.
{{cite web |url=http://www.example.org/ |title=Index of Sharp Things |date=30 April 2005 |work=Encyclopedia of Things |accessdate=6 July 2005}}
- Index of Sharp Things. Encyclopedia of Things (30 April 2005). Retrieved on 6 July 2005.
{{cite web |url=http://www.example.org/ |title=Index of Sharp Things |date=30 April 2005 |accessdate=6 July 2005}}
- Index of Sharp Things (30 April 2005). Retrieved on 6 July 2005.
{{cite web |url=http://www.incb.org/pdf/e/list/green.pdf |title=List of psychotropic substances under international control |date=30 April 2005 |format=PDF |accessdate=6 July 2005 |language=Greek }}
- List of psychotropic substances under international control (PDF) (Greek) (30 April 2005). Retrieved on 6 July 2005.
Using "archiveurl" and "archivedate" (and optionally "deadurl") for webpages that have been archived
{{cite web |url=http://www.incb.org/pdf/e/list/green.pdf |title=List of psychotropic substances under international control |date=30 April 2005 |format=PDF |accessdate=6 July 2005 |archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf |archivedate=11 September 2005 }}
- List of psychotropic substances under international control (PDF) (30 April 2005). Archived from the original on 11 September 2005. Retrieved on 6 July 2005.
{{cite web |url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm |title=Interview with Maggie Downs |date=31 March 2006 |publisher=The Desert Sun |archiveurl=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm |archivedate=26 April 2006 |deadurl=no }}
- Interview with Maggie Downs. The Desert Sun (31 March 2006). Archived from the original on 26 April 2006.
{{Cite web |url=http://www.wunderground.com/global/stations/03772.html |title=London, United Kingdom Forecast : Weather Underground (weather and elevation at Heathrow Airport) |publisher=The Weather Underground, Inc. |accessdate=6 June 2008 |ref=harv | archiveurl=http://www.webcitation.org/5yo0HaAk7 |archivedate=19 May 2011| deadurl=no }}
- London, United Kingdom Forecast : Weather Underground (weather and elevation at Heathrow Airport). The Weather Underground, Inc.. Archived from the original on 19 May 2011. Retrieved on 6 June 2008.
Using quote
{{cite web |url=http://www.webexhibits.org/daylightsaving/c.html |title=Daylight saving time: rationale and original idea |work=WebExhibits |year=2008 |accessdate=27 September 2009 |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...' }}
- Daylight saving time: rationale and original idea. WebExhibits (2008). Retrieved on 27 September 2009. “... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...'”
Parameters[edit]
Syntax[edit]
Template:Citation Style documentation/syntax
Template:Citation Style documentation/coins
Template:Citation Style documentation/sep period
Deprecated[edit]
Template:Citation Style documentation/deprecated
Description[edit]
Authors[edit]
Template:Citation Style documentation/author
Title[edit]
Template:Citation Style documentation/web Template:Citation Style documentation/type Template:Citation Style documentation/language
Date[edit]
Template:Citation Style documentation/date
Publisher[edit]
Template:Citation Style documentation/publisher
Series[edit]
Template:Citation Style documentation/series Alias: agency.
In-source locations[edit]
Template:Citation Style documentation/pages
URL[edit]
Template:Citation Style documentation/url
Anchor[edit]
Template:Citation Style documentation/ref
Identifiers[edit]
Template:Citation Style documentation/id1 Template:Citation Style documentation/id2
Quote[edit]
Template:Citation Style documentation/quote
Editors[edit]
Template:Citation Style documentation/editor
Laysummary[edit]
Template:Citation Style documentation/lay
Display options[edit]
Template:Citation Style documentation/display
|
The above documentation is transcluded from Template:Cite web/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |