Template:Cite: Difference between revisions

From Everybody Edits Wiki
Jump to navigation Jump to search
YOU SUCK!!!
m desc
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
[{{{url}}} {{#if:{{{title|}}}|"{{{title}}}"|{{{url}}}}}]
[{{{url}}} {{#if:{{{title|}}}|"{{{title}}}"|{{{url}}}}}]
{{#if:{{{source|}}}| – {{{source}}}{{#if:{{{date|}}}|, {{{date}}}}}.}}
{{#if:{{{source|}}}| – {{{source}}}{{#if:{{{date|}}}|, {{{date}}}}}.}}
{{#if:{{{archive|}}}|
{{#if:{{{archive|}}}| <small>{{#ifeq:{{{archive}}}|true|(Archived)|[{{{archive}}} (Archived)]}}</small>|[[Category:Pages with unarchived citations]]}}
  {{#switch:{{lc:{{{archive}}}}}
    | http://#default = <small>[{{{archive}}} (Archived)]</small>
    | https://#default = <small>[{{{archive}}} (Archived)]</small>
    | #default = <small>(Archived)</small>
  }}
  | [[Category:Pages with unarchived citations]]
}}
}}<noinclude>
}}<noinclude>
== Description ==
Creates a citation of anything on the web, for use in references. Has several optional parameters for better citations.
Creates a citation of anything on the web, for use in references. Has several optional parameters for better citations.


Line 20: Line 14:
: '''Required'''. URL of the web resource being cited.
: '''Required'''. URL of the web resource being cited.
; <code>archive</code>
; <code>archive</code>
: '''Optional'''. Archived URL of the web resource being cited. Lack of this adds the [[:Category:Pages with unarchived citations|Pages with unarchived citations]] category.
: '''Optional'''. Archived URL of the web resource being cited. Lack of this adds the [[:Category:Pages with unarchived citations|Pages with unarchived citations]] category. Setting this to <code>true</code> assumes the main URL is an archived URL.
; <code>title</code>
; <code>title</code>
: '''Optional'''. Title the web resource being cited. Displays in place of the URL, surrounded by quotations, if present.
: '''Optional'''. Title the web resource being cited. Displays in place of the URL, surrounded by quotations, if present.
Line 28: Line 22:
: '''Optional'''. Date the web resource was published, if it is known.
: '''Optional'''. Date the web resource was published, if it is known.


[[Category:Templates]]
[[Category:Citation templates]]
[[Category:Citation templates]]
</noinclude>
</noinclude>

Latest revision as of 00:37, 18 April 2026

Description

Creates a citation of anything on the web, for use in references. Has several optional parameters for better citations.

Usage

<ref>{{Cite|url=|archive=|title=|source=|date=}}</ref>

Parameters

url
Required. URL of the web resource being cited.
archive
Optional. Archived URL of the web resource being cited. Lack of this adds the Pages with unarchived citations category. Setting this to true assumes the main URL is an archived URL.
title
Optional. Title the web resource being cited. Displays in place of the URL, surrounded by quotations, if present.
source
Optional. Source of the web resource being cited.
date
Optional. Date the web resource was published, if it is known.