Template:Cite web: Difference between revisions

From Shifti
Jump to navigation Jump to search
m one more minor fix so the links point to Wikipedia
m add the GFDL banner to the documentation of this template - it originated on Wikipedia and is thus under the GFDL
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
   ||Error on call to [[template:cite web]]: Parameters '''url''' and '''title''' must be specified
   ||Error on call to [[template:cite web]]: Parameters '''url''' and '''title''' must be specified
}}{{
#if: {{{archiveurl|}}}{{{archivedate|}}}
  | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
    ||Error on call to [[template:cite web]]: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted
}}
}}</includeonly>{{#if: {{{author|}}}{{{last|}}}
}}</includeonly>{{#if: {{{author|}}}{{{last|}}}
   | {{#if: {{{authorlink|}}}
   | {{#if: {{{authorlink|}}}
Line 31: Line 26:
   |}}
   |}}
}}{{#if: {{{last|}}}{{{author|}}}
}}{{#if: {{{last|}}}{{{author|}}}
   | .&#32;}}{{#if: {{{archiveurl|}}}
   | .&#32;}}{{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}
    | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
}}{{#if: {{{language|}}} | &#32;(in {{{language}}})  
}}{{#if: {{{language|}}} | &#32;(in {{{language}}})  
}}.{{#if: {{{format|}}}
}}.{{#if: {{{format|}}}
Line 56: Line 49:
     }}
     }}
   }}
   }}
}}{{#if: {{{archivedate|}}}
  | &#32;archived from [{{{url}}} the original] on [[wikipedia:{{{archivedate}}}|{{{archivedate}}}]]
}}{{#if: {{{accessdate|}}}
}}{{#if: {{{accessdate|}}}
   | &#32;Retrieved on [[wikipedia:{{{accessdate}}}|{{{accessdate}}]]{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}.
   | &#32;Retrieved on {{{accessdate}}}.
}}{{#if: {{{accessmonthday|}}}
}}{{#if: {{{accessmonthday|}}}
   | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
   | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
Line 86: Line 77:
| pages =  
| pages =  
| language =  
| language =  
| archiveurl =
| archivedate =
}}</pre>
}}</pre>
<tt><nowiki>{{cite web|url= |title= |accessdate= |accessmonthday= |accessyear= |author= |last= |first= |authorlink= |coauthors= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archiveurl= |archivedate=}}</nowiki></tt>
<tt><nowiki>{{cite web|url= |title= |accessdate= |accessmonthday= |accessyear= |author= |last= |first= |authorlink= |coauthors= |date= |year= |month= |format= |work= |publisher= |pages= |language= }}</nowiki></tt>


=== Required parameters ===
=== Required parameters ===
Line 110: Line 99:
* '''pages''': Pages, if any, especially if pdf format
* '''pages''': Pages, if any, especially if pdf format
* '''language''': language of publication
* '''language''': language of publication
* '''archiveurl''': URL of the archive location of the item (requires '''archivedate''')
* '''archivedate''': Date when the item was archived (requires '''archiveurl'''), in [[ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''. Must not be wikilinked; it will be linked automatically.


{{GFDL}}
__NOEDITSECTION__
__NOEDITSECTION__
</noinclude>
</noinclude>

Latest revision as of 04:00, 5 January 2008

{{#if:

 | {{#if: 
   | [[{{{authorlink}}}|{{#if: 
     | {{{last}}}{{#if:  | , {{{first}}} }}
     | {{{author}}}
   }}]]
   | {{#if: 
     | {{{last}}}{{#if:  | , {{{first}}} }}
     | {{{author}}}
   }}
 }}

}}{{#if:

 | {{#if: | ; {{{coauthors}}} }}

}}{{#if: |

   {{#if: 
   |  ({{{date}}})
   | {{#if: 
     | {{#if: 
       |  ({{{month}}} {{{year}}})
       |  ({{{year}}})
     }}
   }}
 |}}

}}{{#if:

 | . }}{{#if:  | {{#if:  | [{{{url}}} {{{title}}}] }}

}}{{#if: | (in {{{language}}}) }}.{{#if:

 |  ()

}}{{#if:

 |  {{{work}}}.

}}{{#if:

 |  pp. {{{pages}}}

}}{{#if:

 |  {{{publisher}}}{{#if: 
   | .
   | {{#if:  | : | . }}
 }}

}}{{#if:

 ||{{#if: 
   |  ({{{date}}}).
   | {{#if: 
     | {{#if: 
       |  ({{{month}}} {{{year}}}).
       |  ({{{year}}}).
     }}
   }}
 }}

}}{{#if:

 |  Retrieved on {{{accessdate}}}.

}}{{#if:

 |  Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.

}}

This template is used to cite sources. It is specifically for web sites which are not news sources. It provides lower case parameters only.

Usage

{{cite web
| url = 
| title = 
| accessdate = 
| accessmonthday =
| accessyear =
| author =
| last = 
| first = 
| authorlink = 
| coauthors = 
| date = 
| year = 
| month = 
| format = 
| work = 
| publisher = 
| pages = 
| language = 
}}

{{cite web|url= |title= |accessdate= |accessmonthday= |accessyear= |author= |last= |first= |authorlink= |coauthors= |date= |year= |month= |format= |work= |publisher= |pages= |language= }}

Required parameters

  • url: URL of online item.
  • title: Title of online item.
  • One of the two date format parameters:
    • accessdate: Full date when item was accessed, in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17. Must not be wikilinked; it will be linked automatically.
    • accessmonthday and accessyear: Month and day when item was accessed, e.g. May 10, and year when item was accessed, e.g. 2005. Will not be wikilinked.

Optional parameters

  • author: Author
    • last works with first to produce last, first
    • authorlink works either with author or with last & first to link to the appropriate article
    • coauthors: allows additional authors
  • date: Full date of publication, preferably in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17. May be wikilinked.
    • OR: year: Year of publication, and month: Name of the month of publication. If you also have the day, use date instead. Must not be wikilinked.
  • format: Format, e.g. PDF. HTML implied if not specified.
  • work: If this item is part of a larger work, name of that work.
  • publisher: Publisher, if any.
  • pages: Pages, if any, especially if pdf format
  • language: language of publication

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.