Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Cite/doc: Difference between revisions

Template page
Updating usage documentation
Updating full scoping documentation
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
|day            = 31
|day            = 31
|title          = This is an example of a title
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|retrieved-date = November 27, 2024
|source        = https://destiny.gg/
|source        = https://destiny.gg/
}}</nowiki>
}}</nowiki>
Line 31: Line 31:
|day            = 31
|day            = 31
|title          = This is an example of a title
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|retrieved-date = November 27, 2024
|source        = https://destiny.gg/
|source        = https://destiny.gg/
}}
}}
Line 42: Line 42:
|day            =
|day            =
|title          = This is an example of a title
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|retrieved-date = November 27, 2024
|source        = https://destiny.gg/
|source        = https://destiny.gg/
}}</nowiki>
}}</nowiki>
Line 52: Line 52:
|day            =
|day            =
|title          = This is an example of a title
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|retrieved-date = November 27, 2024
|source        = https://destiny.gg/
|source        = https://destiny.gg/
}}
}}
== Archived sources ==
== Archived sources ==
When a source has been deleted, privated, or is otherwise no longer reliably accessible, provide an archived snapshot (e.g. from the [https://web.archive.org/ Wayback Machine] or [https://archive.today/ archive.today]) using the <code>archive-url</code> and <code>archive-date</code> parameters. Set <code>url-status</code> to <code>dead</code> so the citation displays the archived copy as the primary link.
When a source has been deleted, privated, or is otherwise no longer reliably accessible — or simply to guard against future link rot — provide an archived snapshot (e.g. from the [https://web.archive.org/ Wayback Machine] or [https://archive.today/ archive.today]) using the <code>archive-url</code> and <code>archive-date</code> parameters. The citation will display "Archived from the original on [date]", with the date linking to the archived snapshot.
  <nowiki>{{cite
  <nowiki>{{cite
|source-name    = YouTube
|source-name    = YouTube
Line 63: Line 64:
|day            = 26
|day            = 26
|title          = A conversation with Vaush (Irishladdie): feminism and the revolution
|title          = A conversation with Vaush (Irishladdie): feminism and the revolution
|retrieved-date = 2026, May 26
|retrieved-date = May 26, 2026
|source        = https://www.youtube.com/watch?v=k-JC1voCu54
|source        = https://www.youtube.com/watch?v=k-JC1voCu54
|archive-url    = https://web.archive.org/web/20250121000946/https://www.youtube.com/watch?v=k-JC1voCu54
|archive-url    = https://web.archive.org/web/20250121000946/https://www.youtube.com/watch?v=k-JC1voCu54
|archive-date    = 2025, January 21
|archive-date    = January 21, 2025
|url-status      = dead
}}</nowiki>
}}</nowiki>
produces
produces
Line 76: Line 76:
|day            = 26
|day            = 26
|title          = A conversation with Vaush (Irishladdie): feminism and the revolution
|title          = A conversation with Vaush (Irishladdie): feminism and the revolution
|retrieved-date = 2026, May 26
|retrieved-date = May 26, 2026
|source        = https://www.youtube.com/watch?v=k-JC1voCu54
|source        = https://www.youtube.com/watch?v=k-JC1voCu54
|archive-url    = https://web.archive.org/web/20250121000946/https://www.youtube.com/watch?v=k-JC1voCu54
|archive-url    = https://web.archive.org/web/20250121000946/https://www.youtube.com/watch?v=k-JC1voCu54
|archive-date    = 2025, January 21
|archive-date    = January 21, 2025
|url-status      = dead
}}
}}
== Parameters ==
== Parameters ==
Line 107: Line 106:
},
},
"title": {
"title": {
"description": "The title of the work/post/video/etc. you are citing. The template will automatically italicize the whole title, so do not attempt to italicize it on your own, and do not put the title in quotes (unless the title has quotes within it)."
"description": "The title of the work/post/video/etc. you are citing. The template automatically wraps the title in quotation marks and links it to the source URL, so do not add quotation marks or italics yourself."
},
},
"retrieved-date": {
"retrieved-date": {
"description": "The date you retrieved the material, use the YEAR, MONTH DAY format, for example: \"2024, October 22\"",
"description": "The date you retrieved the material. Use the MONTH DAY, YEAR format, for example: \"October 22, 2024\"",
"type": "content",
"type": "content",
"suggested": true
"suggested": true
},
},
"source": {
"source": {
"description": "The URL source the material is from. You can optionally mask the link with a shorter name.",
"description": "The URL the material is from. Enter a bare URL only (no brackets or masking) — the template uses it as the link target for the title.",
"type": "url",
"type": "url",
"suggested": true
"suggested": true
},
},
"archive-url": {
"archive-url": {
"description": "The URL of an archived snapshot of the source (e.g. a Wayback Machine or archive.today capture). Use this when the original source is dead, privated, or at risk of being removed.",
"description": "The URL of an archived snapshot of the source (e.g. a Wayback Machine or archive.today capture). Recommended for all citations to guard against link rot.",
"type": "url"
"type": "url"
},
},
"archive-date": {
"archive-date": {
"description": "The date the archived snapshot was taken. Use the YEAR, MONTH DAY format, for example: \"2025, January 21\"",
"description": "The date the archived snapshot was taken. Use the MONTH DAY, YEAR format, for example: \"January 21, 2025\"",
"type": "content"
"type": "content"
},
"url-status": {
"description": "The status of the original source link. Set to \"dead\" if the original is no longer accessible (privated, deleted, 404), or \"live\" if it still works. Defaults to \"live\". When \"dead\", the citation should display the archived version as the primary link.",
"type": "string"
}
}
},
},

Latest revision as of 15:31, 13 June 2026

{{Cite}} is intended to provide an easy way to format citations. Citations should still be wrapped with the <ref> and </ref> tags.

Usage

{{cite
|source-name    = 
|year           = 
|month          = 
|day            = 
|title          = 
|retrieved-date = 
|source         = 
|archive-url    = 
|archive-date   = 
}}

The archive-url and archive-date parameters are optional but recommended — archiving the source guards against link rot if the original is later removed, privated, or restructured. See the Archived sources example below.

Example

{{cite
|source-name    = Destiny
|year           = 2006
|month          = October
|day            = 31
|title          = This is an example of a title
|retrieved-date = November 27, 2024
|source         = https://destiny.gg/
}}

produces Destiny (October 31, 2006). "This is an example of a title". Retrieved November 27, 2024.


The template also supports incomplete citations, though ideally any user adding a citation should add the full citation.

{{cite
|source-name    = Destiny
|year           = 2006
|month          = October
|day            =
|title          = This is an example of a title
|retrieved-date = November 27, 2024
|source         = https://destiny.gg/
}}

produces Destiny (October2006). "This is an example of a title". Retrieved November 27, 2024.

Archived sources

When a source has been deleted, privated, or is otherwise no longer reliably accessible — or simply to guard against future link rot — provide an archived snapshot (e.g. from the Wayback Machine or archive.today) using the archive-url and archive-date parameters. The citation will display "Archived from the original on [date]", with the date linking to the archived snapshot.

{{cite
|source-name    = YouTube
|year           = 2012
|month          = December
|day            = 26
|title          = A conversation with Vaush (Irishladdie): feminism and the revolution
|retrieved-date = May 26, 2026
|source         = https://www.youtube.com/watch?v=k-JC1voCu54
|archive-url     = https://web.archive.org/web/20250121000946/https://www.youtube.com/watch?v=k-JC1voCu54
|archive-date    = January 21, 2025
}}

produces YouTube (December 26, 2012). "A conversation with Vaush (Irishladdie): feminism and the revolution". Archived from the original on January 21, 2025. Retrieved May 26, 2026.

Parameters

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
source-namesource-name

The name of the source's origination.

Contentsuggested
yearyear

The year the material you are citing was posted.

Numbersuggested
monthmonth

The month the material you are citing was posted. Use the full name of the month (i.e. "January", "October", etc.) rather than the abbreviation (i.e. JAN, Sept. etc.) or number of the month (i.e. "1", "06", etc.)

Contentsuggested
dayday

The day the material you are citing was posted.

Numbersuggested
titletitle

The title of the work/post/video/etc. you are citing. The template automatically wraps the title in quotation marks and links it to the source URL, so do not add quotation marks or italics yourself.

Unknownoptional
retrieved-dateretrieved-date

The date you retrieved the material. Use the MONTH DAY, YEAR format, for example: "October 22, 2024"

Contentsuggested
sourcesource

The URL the material is from. Enter a bare URL only (no brackets or masking) — the template uses it as the link target for the title.

URLsuggested
archive-urlarchive-url

The URL of an archived snapshot of the source (e.g. a Wayback Machine or archive.today capture). Recommended for all citations to guard against link rot.

URLoptional
archive-datearchive-date

The date the archived snapshot was taken. Use the MONTH DAY, YEAR format, for example: "January 21, 2025"

Contentoptional