Template:Cite web: Difference between revisions

Template page
(some updated; not done)
(including backup available @ Archive.org in the regular "url" output; the "Archive=Y" will change the primary link, this second change will cover both bases)
 
(10 intermediate revisions by 5 users not shown)
Line 33: Line 33:
   | . }}{{#if: {{{archiveurl|}}}
   | . }}{{#if: {{{archiveurl|}}}
     | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
     | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
     | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
}}{{#if: {{{archive|}}}
}}{{#if: {{{language|}}} |  (in {{{language}}})  
     | {{#if: {{{url|}}} | {{#if: {{{title|}}} | {{#if: {{{archive|}}} | [http://wayback.archive.org/web/*/{{{url}}} {{{title}}}] (content archived on Archive.org)}}}}}}
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] ([http://wayback.archive.org/web/*/{{{url}}} backup available] on Archive.org)}}}}
}}
{{#if: {{{language|}}} | | (in {{{language|English}}})  
}}.{{#if: {{{format|}}}
}}.{{#if: {{{format|}}}
   |  ({{formattype|{{{format}}}}})
   |  ({{formattype|{{{format}}}}})
Line 64: Line 67:
}}</includeonly><noinclude>
}}</includeonly><noinclude>
__NOTOC__
__NOTOC__
= Documentation =
__NOEDITSECTION__
__NOEDITSECTION__
This template is used to [[BW:CITE|cite sources]] in ''Battlestar Wiki''. It is specifically for web sites which are not '''news sources'''. If you are citing news sources, view the {{tl|cite news}} template. It provides lower case parameters only. This template should be encased in '''<nowiki><ref></ref></nowiki>''' tags.


This template is used to [[BW:CITE|cite sources]] in ''Battlestar Wiki''. It is specifically for web sites which are not '''news sources'''. If you are citing news sources, view the {{tl|cite news}} template. It provides lower case parameters only.
== Usage ==
<pre>{{cite web
| url =
| title =
| accessdate =
| accessmonthday =
| accessyear =
| author =
| last =
| first =
| authorlink =
| authorlinkurl =
| coauthors =
| date =
| year =
| month =
| format =
| work =
| publisher =
| pages =
| language =
| archive=
| archiveurl =
| archivedate =
}}</pre>
<code><nowiki>{{cite web|url= |title= |date= |accessdate= |last= |first= |format= |language= }}</nowiki></code> - Most Common Fields
<br/>
<code><nowiki>{{cite web|url= |title= }}</nowiki></code> - Most Basic Fields


= Definition ==
=== Required parameters ===
* '''url''': URL of online item.
* '''title''': Title of online item, which may '''not''' contain any newlines.
* One of the two date format parameters:
** '''accessdate''': Full date when item was accessed, in [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''. Must not be wikilinked.
** '''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 <code>last, first</code>
** '''authorlink''' works either with '''author''' or with '''last''' & '''first''' to link to the appropriate article on ''Battlestar Wiki''.
** '''authorlinkurl''' If the author's link is not on the ''Battlestar Wiki'' input the full address here.
** '''coauthors''': allows additional authors in <code>last, first</code> format.
* '''date''': Full date of publication, preferably in [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''.
** 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.
* '''[[Template:formattype|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
* '''archive''': Place '''Y''' in order to enable. Enabling this prefixes the current link (in the '''url''' parameter) with http://wayback.archive.org/web/*/, if the original link died.
** This overrides '''archiveurl''' and '''archivedate''', and thus enabling these parameters is not required.
* '''archiveurl''': URL of the archive location of the item (requires '''archivedate''')
** Usually found on http://www.archive.org
* '''archivedate''': Date when the item was archived (requires '''archiveurl'''), in [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''.


= Usage =




Line 76: Line 132:
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[fr:Modèle:Citer site]]
[[de:Vorlage:Cite web]]


</noinclude>
</noinclude>

Latest revision as of 15:01, 20 August 2011


Documentation

This template is used to cite sources in Battlestar Wiki. It is specifically for web sites which are not news sources. If you are citing news sources, view the {{cite news}} template. It provides lower case parameters only. This template should be encased in <ref></ref> tags.

Usage

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

{{cite web|url= |title= |date= |accessdate= |last= |first= |format= |language= }} - Most Common Fields
{{cite web|url= |title= }} - Most Basic Fields

Required parameters

  • url: URL of online item.
  • title: Title of online item, which may not contain any newlines.
  • 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.
    • 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 on Battlestar Wiki.
    • authorlinkurl If the author's link is not on the Battlestar Wiki input the full address here.
    • coauthors: allows additional authors in last, first format.
  • date: Full date of publication, preferably in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17.
    • 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
  • archive: Place Y in order to enable. Enabling this prefixes the current link (in the url parameter) with http://wayback.archive.org/web/*/, if the original link died.
    • This overrides archiveurl and archivedate, and thus enabling these parameters is not required.
  • 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.