Difference between revisions of "Template:Cite web"

From Emulation General Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>{{
 
<includeonly>{{
#if: {{#if: {{{url|}}}}}
+
#if: {{#if: {{{url|}}} }}
 
   ||Error on call to [[Template:cite web]]: Parameter '''url''' must be specified
 
   ||Error on call to [[Template:cite web]]: Parameter '''url''' must be specified
 
}}{{
 
}}{{
#if: {{{archiveurl|}}}{{{archivedate|}}}  
+
#if: {{{archiveurl|}}} {{{archivedate|}}}  
 
   | {{#if: {{#if: {{{archiveurl|}}}}}
 
   | {{#if: {{#if: {{{archiveurl|}}}}}
 
     ||Error on call to [[template:cite web]]: Parameter '''archiveurl''' must be specified or omitted
 
     ||Error on call to [[template:cite web]]: Parameter '''archiveurl''' must be specified or 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;({{#formatdate:{{{date}}}}})
 
    | {{#if: {{{year|}}}
 
      | {{#if: {{{month|}}}
 
        | &#32;({{{month}}} {{{year}}})
 
        | &#32;({{{year}}})
 
      }}
 
    }}
 
  |}}
 
}}{{#if: {{{last|}}}{{{author|}}}
 
  | .&#32;}}{{#if: {{{archiveurl|}}}
 
    | {{#if: {{{archiveurl|}}} | [{{{archiveurl}}}] }}}}
 
    | {{#if: {{{url|}}} | [{{{url}}}] }}}}
 
}}{{#if: {{{language|}}} | &#32;(in {{{language}}})
 
}}{{#if: {{{format|}}}
 
  | &#32;({{{format|}}})
 
}}{{#if: {{{work|}}}
 
  | .&#32;''{{{work}}}''
 
}}{{#if: {{{pages|}}}
 
  | &#32;{{{pages}}}
 
}}{{#if: {{{publisher|}}}
 
  | .&#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
 
    |
 
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
 
  }}
 
}}{{#if: {{{author|}}}{{{last|}}}
 
  ||{{#if: {{{date|}}}
 
    | &#32;({{#if:{{{year|}}}{{{month|}}}|{{{date}}}|{{#formatdate:{{{date}}}}}}})
 
    | {{#if: {{{year|}}}
 
      | {{#if: {{{month|}}}
 
        | &#32;({{{month}}} {{{year}}})
 
        | &#32;({{{year}}})
 
      }}
 
    }}
 
  }}
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Cite web/doc}}
 
{{Cite web/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 00:35, 11 September 2013

This template documentation is transcluded from Template:Cite web/doc [edit]

This template is used to cite sources in Wikiquote. It is specifically for web sites which are not news sources. This template replaces deprecated wikipedia:template:web reference. It provides lower case parameters only.

Usage

Vertical format
{{cite web
| url = 
| title =
| archiveurl = 
| archivedate = 
}}
Horizontal format
{{cite web |url= |title= |archiveurl= |archivedate= }}

Required parameters

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

Optional parameters

  • 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.

See also

Examples

Some standard use cases
  • {{cite web | title=My Favorite Things Part II | url=http://www.example.com/ }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | title=My Favorite Things Part II | url=http://www.example.com/ }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | title=My Favorite Things Part II | url=http://www.example.com/ }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | title=My Favorite Things Part II | url=http://www.example.com/ }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | title=My Favorite Things Part II | url=http://www.example.com/ }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | url=http://www.nfl.com/fans/ | title=Digest of Rules }}
    Error on call to Template:cite web: Parameter url must be specified

}}

No parameters

}}

accessdate in ISO YYYY-MM-DD format
  • {{cite web | title=My Favorite Things Part II | url=http://www.example.com/ }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | title=My Favorite Things Part II | date=2005-04-30 | url=http://www.example.com/ | accessdate=2005-07-06 }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | title=My Favorite Things Part II | date=2005-04-30 | url=http://www.example.com/ | accessdate=2005-07-06 | language=English }}
    Error on call to Template:cite web: Parameter url must be specified

}}

  • {{cite web | title=List of psychotropic substances under international control | date=2005-04-30 | url=http://www.incb.org/pdf/e/list/green.pdf | format = PDF | accessdate=2005-07-06 | language=English }}
    Error on call to Template:cite web: Parameter url must be specified

}}

Using archiveurl and archivedate to refer to items that went away but are available from an archive site
  • {{cite web | title=List of psychotropic substances under international control | date=2005-04-30 | url=http://www.incb.org/pdf/e/list/green.pdf | format = PDF | accessdate=2005-07-06 | language=English | archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf | archivedate=2005-09-11 }}
    Error on call to Template:cite web: Parameter url must be specifiedError on call to template:cite web: Parameter archiveurl must be specified or omitted

}}

  • {{cite web |url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm |title=Interview with Maggie Downs |date=2006-03-31 |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=2006-04-26 }} }}
    Error on call to Template:cite web: Parameter url must be specifiedError on call to template:cite web: Parameter archiveurl must be specified or omitted

}}