Difference between revisions of "Template:Cite web"

From FreeWiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
te>Anthony Appleyard
m (Protected "Template:Cite web": restore old protection ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:citation/CS1|citation
+
<includeonly>{{
|CitationClass=web
+
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
}}</includeonly><noinclude>
+
  ||Error on call to [[Template:cite web]]: Parameters '''url''' and '''title''' must be specified
{{documentation}}
+
}}{{
</noinclude>
+
#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
 +
}}
 +
}}{{#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>&#32;{{{coauthors}}} }}
 +
}}{{#if: {{{author|}}}{{{last|}}}|
 +
    {{#if: {{{date|}}}
 +
    | &#32;({{{date}}})
 +
    | {{#if: {{{year|}}}
 +
      | {{#if: {{{month|}}}
 +
        | &#32;({{{month}}} {{{year}}})
 +
        | &#32;({{{year}}})
 +
      }}
 +
    }}
 +
  |}}
 +
}}{{#if: {{{last|}}}{{{author|}}}
 +
  | .&#32;}}{{#if: {{{archiveurl|}}}
 +
    | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
 +
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
 +
}}{{#if: {{{language|}}} | &#32;<span style="font-size: 0.95em; font-weight: bold; color:#555; position: relative;">({{{language}}})</span>
 +
}}{{#if: {{{format|}}}
 +
  | &#32;({{{format|}}})
 +
}}{{#if: {{{work|}}}
 +
  | .&#32;''{{{work}}}''
 +
}}{{#if: {{{pages|}}}
 +
  | &#32;pp. {{{pages}}}
 +
}}{{#if: {{{publisher|}}}
 +
  | .&#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
 +
    |
 +
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
 +
  }}
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  ||{{#if: {{{date|}}}
 +
    | &#32;({{{date}}})
 +
    | {{#if: {{{year|}}}
 +
      | {{#if: {{{month|}}}
 +
        | &#32;({{{month}}} {{{year}}})
 +
        | &#32;({{{year}}})
 +
      }}
 +
    }}
 +
  }}
 +
}}.{{#if: {{{archivedate|}}}
 +
  | &#32;Archived from [{{{url}}} the original] on {{{archivedate}}}.
 +
}}{{#if: {{{accessdate|}}}
 +
  | &#32;Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
 +
}}{{#if: {{{accessmonthday|}}}
 +
  | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
 +
}}{{#if: {{{quote|}}}
 +
  | &nbsp;“{{{quote}}}”
 +
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 14:19, 1 September 2019

50px Template documentation[view] [edit] [history] [purge]

This template is used to cite sources. This template is based on Template:Cite web at Wikipedia.

Usage

Common form for cases where little is known about authorship of the page (with current date)

{{cite web |url= |title= |accessdate=2024-11-22 |format= |work= }}

Using last, first (with current date)

{{cite web |url= |title= |accessdate=2024-11-22 |last= |first= |authorlink= |coauthors= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archiveurl= |archivedate= |quote= }}

Using author (with current date)

{{cite web |url= |title= |accessdate=2024-11-22 |author= |authorlink= |coauthors= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archiveurl= |archivedate= |quote= }}

Using non-linked retrieved date, last, first

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

Using non-linked retrieved date, author

{{cite web |url= |title= |accessmonthday= |accessyear= |author= |authorlink= |coauthors= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archiveurl= |archivedate= |quote= }}

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

Required parameters

  • url: URL of online item.
  • title: Title of online item.

For producing a wikilinked date of retrieval:

  • accessdate: Full date when item was accessed, in ISO 8601 YYYY-MM-DD format, for example "accessdate = 2006-02-17". Must not be wikilinked

For producing a non-wikilinked date of retrieval:

  • accessmonthday and accessyear: Month and day when item was accessed, for example "accessmonthday = May 10", and year when item was accessed, for example "accessyear = 2005".