Template:Cite web: Difference between revisions

Template page
(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)
 
(Created page with "<includeonly>{{ #if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}} ||You must specify '''''title = ''''' and '''''url = ''''' when using {{cite web}}...")
Line 1: Line 1:
<includeonly>{{
<includeonly>{{
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
   || Error on call {{tl|cite web}} template: Parameters '''url''' and '''title''' ''must'' be specified.
   ||You must specify  '''''title = ''''' and '''''url = ''''' when using {{[[Template:cite web|cite web]]}}.
{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}
}}{{
}}{{
#if: {{{archiveurl|}}}{{{archivedate|}}}  
#if: {{{archiveurl|}}}{{{archivedate|}}}  
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
     || Error on call {{tl|cite web}} template: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted.
     ||You must specify '''''archiveurl = ''''' and '''''archivedate = ''''' when using {{[[Template:cite web|cite web]]}}.
{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}
}}
}}
}}{{#if: {{{author|}}}{{{last|}}}
}}{{#if: {{{author|}}}{{{last|}}}
   | {{#if: {{{authorlink|}}} <!-- Work on this to do external link -->
   | {{#if: {{{authorlink|}}}
     | [[{{{authorlink}}}|{{#if: {{{last|}}}
     | [[{{{authorlink}}}|{{#if: {{{last|}}}
       | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
       | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
Line 31: Line 33:
   |}}
   |}}
}}{{#if: {{{last|}}}{{{author|}}}
}}{{#if: {{{last|}}}{{{author|}}}
   | .&#32;}}{{#if: {{{archiveurl|}}}
   | .&#32;}}{{
    | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
  #if: {{{editor|}}}
}}{{#if: {{{archive|}}}
  | &#32;{{{editor}}}:  
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | {{#if: {{{archive|}}} | [http://wayback.archive.org/web/*/{{{url}}} {{{title}}}] (content archived on Archive.org)}}}}}}
}}"{{#if: {{{archiveurl|}}}
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] ([http://wayback.archive.org/web/*/{{{url}}} backup available] on Archive.org)}}}}
  | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
}}
  | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
{{#if: {{{language|}}} | |&#32;(in {{{language|English}}})  
}}"{{#if: {{{format|}}} | &#32;({{{format}}})  
}}.{{#if: {{{format|}}}
}}{{#if:{{{language|}}}  
   | &#32;({{formattype|{{{format}}}}})
   | &#32;(in {{{language}}})
}}{{#if: {{{work|}}}
}}{{#if: {{{work|}}}
   | &#32;''{{{work}}}''.
   | .&#32;''{{{work}}}''
}}{{#if: {{{pages|}}}
}}{{#if: {{{pages|}}}
   | &#32;pp. {{{pages}}}
   | &#32;{{{pages}}}
}}{{#if: {{{publisher|}}}
}}{{#if: {{{publisher|}}}
   | &#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
   | .&#32; {{#if: {{{location|}}}
     | .
    | {{{location}}}:&#32;
     | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || . }}
  }} {{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
     |  
     | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
   }}
   }}
}}{{#if: {{{author|}}}{{{last|}}}
}}{{#if: {{{author|}}}{{{last|}}}
   ||{{#if: {{{date|}}}
   ||{{#if: {{{date|}}}
     | &#32;({{{date}}}).
     | &#32;({{{date}}})
     | {{#if: {{{year|}}}
     | {{#if: {{{year|}}}
       | {{#if: {{{month|}}}
       | {{#if: {{{month|}}}
         | &#32;({{{month}}} {{{year}}}).
         | &#32;({{{month}}} {{{year}}})
         | &#32;({{{year}}}).
         | &#32;({{{year}}})
       }}
       }}
     }}
     }}
   }}
   }}
}}{{#if: {{{archivedate|}}}
}}.{{#if: {{{archivedate|}}}
   | &#32;archived from [{{{url}}} the original] on {{{archivedate}}}
   | &#32;Archived from [{{{url}}} the original] on {{{archivedate}}}.
}}{{#if: {{{doi|}}}
  | &#32;[[Digital object identifier|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
}}{{#if: {{{accessdate|}}}
}}{{#if: {{{accessdate|}}}
   | &#32;Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
   | &#32;Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
}}{{#if: {{{accessmonthday|}}}
}}{{#if: {{{accessmonthday|}}}
   | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
   | &#32;Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
}}{{#if: {{{accessdaymonth|}}}
  | &#32;Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} | &#32;{{{accessyear}}} }}.
}}{{#if: {{{quote|}}}
  | &nbsp;"{{{quote}}}"
}}</includeonly><noinclude>
}}</includeonly><noinclude>
__NOTOC__
==Usage==
 
To use this template, place the following after the information you wish to reference:
= Documentation =
__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.
 
== 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
 
=== 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''.
 
 
 


[[Category:Citation templates|{{PAGENAME}}]]
<tt><nowiki>{{cite web
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
|title=
|url=
|author=
|coauthors=
|editor=
|pages=
|publisher=
|archivedate=
|accessdate=
|quote=
}}</nowiki></tt>


[[fr:Modèle:Citer site]]
Fill in as many entries as possible. Do not worry if you do not understand or have information for some of the entries; at the very least, you should state the name of the site and the title of the article under "title=", copy the website url under "url=" and give the date you added the information under "accessdate=". Any other information is optional, but please add it if it is known. The information will then be converted into a reference in the article's "References" section.
[[de:Vorlage:Cite web]]


[[Category:Reference templates]]
</noinclude>
</noinclude>

Revision as of 20:54, 28 June 2019

Usage

To use this template, place the following after the information you wish to reference:

{{cite web |title= |url= |author= |coauthors= |editor= |pages= |publisher= |archivedate= |accessdate= |quote= }}

Fill in as many entries as possible. Do not worry if you do not understand or have information for some of the entries; at the very least, you should state the name of the site and the title of the article under "title=", copy the website url under "url=" and give the date you added the information under "accessdate=". Any other information is optional, but please add it if it is known. The information will then be converted into a reference in the article's "References" section.