Template:Citation/doc: Difference between revisions

From Warwick Wiki
Created page with "{{tlx|Citation}} (alternatively, {{tlx|cite}}) is a general purpose citation template. It should be used whenever giving a source for a statement on this wiki, and can handle websites, books, magazines/newspapers, documents from the Modern Record Centre, signs and plaques, and more. == Usage == It is intended to be used within <tt><nowiki><ref></nowiki></tt> tags, like so: <pre> This is a statement that needs to be sourced.<ref>{{citation|title=A Source|...}}</ref>..."
 
No edit summary
Line 17: Line 17:
This is a statement that needs to be sourced.<ref>{{citation|title=A Source|...}}</ref>
This is a statement that needs to be sourced.<ref>{{citation|title=A Source|...}}</ref>


<h2> References </h2>
<big><big>References</big></big>
<hr/>
{{reflist}}
{{reflist}}
</div>
</div>
Line 26: Line 27:
For websites, the following will probably be enough:
For websites, the following will probably be enough:
<pre>
<pre>
{{citation| title = | author = | website-name = | date = | url = | access-date = }}
{{citation|title = |author = |website-name = |date = |url = |access-date = }}
</pre>
</pre>
If the website has an archive (for example on the [https://web.archive.org Wayback Machine]), which is recommended, the following should be used instead:
If the website has an archive (for example on the [https://web.archive.org Wayback Machine]), which is recommended, the following should be used instead:
<pre>
<pre>
{{citation| title = | author = | website-name = | date = | url = | access-date = | archive-url = | archive-date = }}
{{citation|title = |author = |website-name = |date = |url = |access-date = |archive-url = |archive-date = }}
</pre>
</pre>


==== Examples ====
==== Examples ====
For example:
For example:
{| class="wikitable"
{|class="wikitable"
! Wikitext !! Display
! Wikitext !! Display
|-
|-
|<pre>{{citation| title = Campus Residences at the University of Warwick | author = [[Warwick Accomodation]] | website-name = warwick.ac.uk | date = 2025-02-25 | url = https://warwick.ac.uk/services/accommodation/students/residences | access-date = 2025-07-14 | archive-url = https://web.archive.org/web/20250714164141/https://warwick.ac.uk/services/accommodation/students/residences | archive-date = 2025-07-14 }}</pre>
|<pre>{{citation|title = Campus Residences at the University of Warwick |author = [[Warwick Accomodation]] |website-name = warwick.ac.uk |date = 2025-02-25 |url = https://warwick.ac.uk/services/accommodation/students/residences |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714164141/https://warwick.ac.uk/services/accommodation/students/residences |archive-date = 2025-07-14 }}</pre>
|{{citation| title = Campus Residences at the University of Warwick | author = [[Warwick Accomodation]] | website-name = warwick.ac.uk | date = 2025-02-25 | url = https://warwick.ac.uk/services/accommodation/students/residences | access-date = 2025-07-14 | archive-url = https://web.archive.org/web/20250714164141/https://warwick.ac.uk/services/accommodation/students/residences | archive-date = 2025-07-14 }}
|{{citation|title = Campus Residences at the University of Warwick |author = [[Warwick Accomodation]] |website-name = warwick.ac.uk |date = 2025-02-25 |url = https://warwick.ac.uk/services/accommodation/students/residences |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714164141/https://warwick.ac.uk/services/accommodation/students/residences |archive-date = 2025-07-14 }}
|-
|-
|<pre>{{citation|title = Bears - some information  |author = [[Colin Sparrow]] |website-name = warwick.ac.uk |date = 2011-09-19 |url = https://warwick.ac.uk/fac/sci/maths/people/staff/colin_sparrow/bearsinfo/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165101/https://warwick.ac.uk/fac/sci/maths/people/staff/colin_sparrow/bearsinfo/ |archive-date = 2025-07-14 }}</pre>
|{{citation|title = Bears - some information  |author = [[Colin Sparrow]] |website-name = warwick.ac.uk |date = 2011-09-19 |url = https://warwick.ac.uk/fac/sci/maths/people/staff/colin_sparrow/bearsinfo/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165101/https://warwick.ac.uk/fac/sci/maths/people/staff/colin_sparrow/bearsinfo/ |archive-date = 2025-07-14 }}
|-
|<pre>{{citation|title = Office for Students urges ‘very strong’ support for free speech on campuses |author = Will Raven |website-name = theboar.org | publisher = [[The Boar]] |date = 2025-07-14 |url = https://theboar.org/2025/07/office-for-students-urges-very-strong-support-for-free-speech-on-campuses/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165447/https://theboar.org/2025/07/office-for-students-urges-very-strong-support-for-free-speech-on-campuses/ |archive-date = 2025-07-14 }}</pre>
|{{citation|title = Office for Students urges ‘very strong’ support for free speech on campuses |author = Will Raven |website-name = theboar.org | publisher = [[The Boar]] |date = 2025-07-14 |url = https://theboar.org/2025/07/office-for-students-urges-very-strong-support-for-free-speech-on-campuses/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165447/https://theboar.org/2025/07/office-for-students-urges-very-strong-support-for-free-speech-on-campuses/ |archive-date = 2025-07-14 }}
|-
|<pre>{{citation|title =    Finance: Guidelines & Rules |website-name = warwicksu.com | publisher = [[Warwick SU]] |url = https://www.warwicksu.com/societies-sports/exec-resources/finance/guidelines/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165724/https://www.warwicksu.com/societies-sports/exec-resources/finance/guidelines/ |archive-date = 2025-07-14 }}</pre>
|{{citation|title =    Finance: Guidelines & Rules |website-name = warwicksu.com | publisher = [[Warwick SU]] |url = https://www.warwicksu.com/societies-sports/exec-resources/finance/guidelines/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165724/https://www.warwicksu.com/societies-sports/exec-resources/finance/guidelines/ |archive-date = 2025-07-14 }}
|}
|}
=== Newspapers, magazines and other periodicals ===


<includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 17:58, 14 July 2025

{{Citation}} (alternatively, {{cite}}) is a general purpose citation template. It should be used whenever giving a source for a statement on this wiki, and can handle websites, books, magazines/newspapers, documents from the Modern Record Centre, signs and plaques, and more.

Usage

It is intended to be used within <ref> tags, like so:

This is a statement that needs to be sourced.<ref>{{citation|title=A Source|...}}</ref>

Then, at the bottom of the page, do

== References ==
{{reflist}}

Overall, this produces the following:

This is a statement that needs to be sourced.[1]

References


  1. A Source (undated).

This template has many parameters, but most will rarely be necessary. For a full list, check the TemplateData.

Websites

For websites, the following will probably be enough:

{{citation|title = |author = |website-name = |date = |url = |access-date = }}

If the website has an archive (for example on the Wayback Machine), which is recommended, the following should be used instead:

{{citation|title = |author = |website-name = |date = |url = |access-date = |archive-url = |archive-date = }}

Examples

For example:

Wikitext Display
{{citation|title = Campus Residences at the University of Warwick |author = [[Warwick Accomodation]] |website-name = warwick.ac.uk |date = 2025-02-25 |url = https://warwick.ac.uk/services/accommodation/students/residences |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714164141/https://warwick.ac.uk/services/accommodation/students/residences |archive-date = 2025-07-14 }}
"Campus Residences at the University of Warwick" by Warwick Accomodation (2025-02-25) via warwick.ac.uk. Archived from the original on 2025-07-14. Accessed on 2025-07-14.
{{citation|title = Bears - some information  |author = [[Colin Sparrow]] |website-name = warwick.ac.uk |date = 2011-09-19 |url = https://warwick.ac.uk/fac/sci/maths/people/staff/colin_sparrow/bearsinfo/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165101/https://warwick.ac.uk/fac/sci/maths/people/staff/colin_sparrow/bearsinfo/ |archive-date = 2025-07-14 }}
"Bears - some information" by Colin Sparrow (2011-09-19) via warwick.ac.uk. Archived from the original on 2025-07-14. Accessed on 2025-07-14.
{{citation|title = Office for Students urges ‘very strong’ support for free speech on campuses |author = Will Raven |website-name = theboar.org | publisher = [[The Boar]] |date = 2025-07-14 |url = https://theboar.org/2025/07/office-for-students-urges-very-strong-support-for-free-speech-on-campuses/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165447/https://theboar.org/2025/07/office-for-students-urges-very-strong-support-for-free-speech-on-campuses/ |archive-date = 2025-07-14 }}
"Office for Students urges ‘very strong’ support for free speech on campuses" by Will Raven (2025-07-14), published by The Boar via theboar.org. Archived from the original on 2025-07-14. Accessed on 2025-07-14.
{{citation|title =     Finance: Guidelines & Rules |website-name = warwicksu.com | publisher = [[Warwick SU]] |url = https://www.warwicksu.com/societies-sports/exec-resources/finance/guidelines/ |access-date = 2025-07-14 |archive-url = https://web.archive.org/web/20250714165724/https://www.warwicksu.com/societies-sports/exec-resources/finance/guidelines/ |archive-date = 2025-07-14 }}
"Finance: Guidelines & Rules" (undated), published by Warwick SU via warwicksu.com. Archived from the original on 2025-07-14. Accessed on 2025-07-14.

Newspapers, magazines and other periodicals