Jump to content

Template:Harvard citation documentation

From Wikihoc

{{[[Template:{{{1}}}|{{{1}}}]]}} is designed to be used to create {{#ifeq:y|y|shortened|Shortened}} footnotes, a citation style which pairs a short, author-date citation in a footnote with a complete citation in the references section at the end of the article (see example below). This citation style is used to reduce clutter in the edit window and to combine multiple citations to the same source.

Common problems and known workarounds are given in the possible issues section below.

There are several related "Harvard" and short footnote templates that are designed for use with shortened footnotes. They differ slightly in the way they format the author-date citation and how much of their functionality is automated. A full list of these related templates is below.

Note that the use (or even non-use) of these templates is an element of citation "style", and adding or removing them in articles with an established style should be consistent with that style. See WP:CITEVAR. {{#if:||

Also note that certain uses of these templates, i.e. use of {{harv}} without {{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags around it, were deprecated in September 2020. See the discussion below.}}

Usage

{{{1}}} generates an "author-date" style short-cite from the following parameters:

{{#if:||<ref>}}{{{{{1}}} | <last1*> | <last2> | <last3> | <last4> | <year*> | p= <page> | loc= <location> }}{{#if:||</ref>}}

with

  • <last1> – required; surname of first author or corporate author
  • <last2>–<last4> – positional parameters; surnames of next three authors; required if available in the full citation
  • <year> – required; four-digit year; may have a lowercase disambiguation letter, like 25|white-space: wrap;|}} ">2012a
  • |{{SAFESUBST:#if:p|p=}} – specific page referenced in the source (alias: |{{SAFESUBST:#if:page|page=}}{{#if:
  | {{#if:
     |{{{1}}} 
     }}
  | {{#if:
     |{{{1}}} 
     }}
  }})
  | {{#if:
     |{{{1}}} 
     }}
  | {{#if:
     |{{{1}}} 
     }}
  }})
  • |{{SAFESUBST:#if:loc|loc=}} – in-source location when |{{SAFESUBST:#if:p|p=}} and |{{SAFESUBST:#if:pp|pp=}} are inappropriate; may be used to supplement |{{SAFESUBST:#if:p|p=}} and |{{SAFESUBST:#if:pp|pp=}}; information such as a section or figure number. (alias: |{{SAFESUBST:#if:at|at=}}{{#if:
  | {{#if:
     |{{{1}}} 
     }}
  | {{#if:
     |{{{1}}} 
     }}
  }})

Typical usage is shown in the example below. The text and the footnote are connected by a bi-directional link – clicking on the superscript takes the reader to the footnote, clicking on the footnote number takes them back to the superscript. The clicking on the short citation takes them to the full citation in the references section.

{{#if:|

Template {{{1}}} is not placed inside {{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags and generates the footnote internally. (To place {{{1}}} in a footnote, see putting a citation inside a footnote, below.)

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Article text.{{{{{1}}}|Smith|2020|p=25}} More article text.{{{{{1}}}|Smith|2020|p=25}} Still more article text.{{{{{1}}}|Smith|2020|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} |

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|2020|p=25}} More article text.{{{{{1}}}|Smith|2020|p=25}} Still more article text.{{{{{1}}}|Smith|2020|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.{{{{{1}}}|Smith|2020|p=25}} More article text.{{{{{1}}}|Smith|2020|p=25}} Still more article text.{{{{{1}}}|Smith|2020|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} </syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|2020|p=25}}
More article text.{{{{{1}}}|Smith|2020|p=25}}
Still more article text.{{{{{1}}}|Smith|2020|p=26}}

==Notes==
{{reflist}}

==References==
* {{cite book
 | last = Smith | first = John
 | date = 2020
 | title = Smith's Book
}}
#default = < style=""> Article text.{{{{{1}}}|Smith|2020|p=25}} More article text.{{{{{1}}}|Smith|2020|p=25}} Still more article text.{{{{{1}}}|Smith|2020|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} </> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|2020|p=25}} More article text.{{{{{1}}}|Smith|2020|p=25}} Still more article text.{{{{{1}}}|Smith|2020|p=26}}


{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

Smith, John (2020). Smith's Book.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

|

Template {{{1}}} is placed inside {{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags to create {{#ifeq:y|y|shortened|Shortened}} footnotes. Using {{{1}}} outside of {{#switch:pair
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags is deprecated in some contexts.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> More article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> Still more article text.<ref>{{{{{1}}}|Smith|2020|p=26}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} |

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> More article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> Still more article text.<ref>{{{{{1}}}|Smith|2020|p=26}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> More article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> Still more article text.<ref>{{{{{1}}}|Smith|2020|p=26}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} </syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>
More article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>
Still more article text.<ref>{{{{{1}}}|Smith|2020|p=26}}</ref>

==Notes==
{{reflist}}

==References==
* {{cite book
 | last = Smith | first = John
 | date = 2020
 | title = Smith's Book
}}
#default = < style=""> Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> More article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> Still more article text.<ref>{{{{{1}}}|Smith|2020|p=26}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2020 | title = Smith's Book }} </> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> More article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> Still more article text.<ref>{{{{{1}}}|Smith|2020|p=26}}</ref>


{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, John (2020). Smith's Book.
  • Smith; Jones (2020). Book by Smith and Jones.
  • Smith; Jones; Brown (2020). Book by Smith and Jones and Brown.
  • Smith; Jones; Brown; Black (2020). Book by Smith and Jones and Brown and Black.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

}}

Parameters

Author(s) and year

The first four author surnames (or all authors if fewer than four; use the values from |{{SAFESUBST:#if:lastN|lastN=}} or |{{SAFESUBST:#if:authorN|authorN=}}{{#if:

  | {{#if:
     |{{{1}}} 
     }}
  | {{#if:
     |{{{1}}} 
     }}
  }}) are required, followed by the year of publication (from |{{SAFESUBST:#if:year|year=}} or |{{SAFESUBST:#if:date|date=}}). Authors past the fourth must be omitted or an error will result.

The possible issues section below describes workarounds for various common problems, such as large number of authors, no author name, multiple works in the same year, multiple authors with same last name and others.

{{#if:|

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.{{{{{1}}}|Smith|2020|p=25}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|2020|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|2020|p=25}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|2020|p=25}}
#default = < style="">Article text.{{{{{1}}}|Smith|2020|p=25}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|2020|p=25}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.{{{{{1}}}|Smith|Jones|2020|p=25}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|Jones|2020|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|Jones|2020|p=25}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|Jones|2020|p=25}}
#default = < style="">Article text.{{{{{1}}}|Smith|Jones|2020|p=25}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|Jones|2020|p=25}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|Jones|Brown|2020|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}
#default = < style="">Article text.{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}
#default = < style="">Article text.{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

|

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|Jones|2020|p=25}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|Jones|2020|p=25}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|Jones|2020|p=25}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|Jones|2020|p=25}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|Jones|2020|p=25}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|Jones|2020|p=25}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|2020|p=25}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|Jones|Brown|Black|2020|p=25}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

}}

Location in the source text

The optional parameters |{{SAFESUBST:#if:p|p=}}, |{{SAFESUBST:#if:pp|pp=}} and |{{SAFESUBST:#if:loc|loc=}} can be used to indicate the location in the source, such as page numbers. For single pages, use |{{SAFESUBST:#if:p|p=}}; for multiple pages (such as ranges), use |{{SAFESUBST:#if:pp|pp=}}. Use of |{{SAFESUBST:#if:p|p=}} for multiple pages or |{{SAFESUBST:#if:pp|pp=}} for single pages can cause cite errors. |{{SAFESUBST:#if:loc|loc=}} can be used to specify a location in the source in another way, such as section numbers or chapters. It can also be combined with |{{SAFESUBST:#if:p|p=}} or |{{SAFESUBST:#if:pp|pp=}}. The parameters |{{SAFESUBST:#if:page|page=}} and |{{SAFESUBST:#if:pages|pages=}} exist as aliases for |{{SAFESUBST:#if:p|p=}} and |{{SAFESUBST:#if:pp|pp=}}, respectively.

{{#if:|

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.{{{{{1}}}|Smith|2020|p=25}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|2020|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|2020|p=25}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|2020|p=25}}
#default = < style="">Article text.{{{{{1}}}|Smith|2020|p=25}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|2020|p=25}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.{{{{{1}}}|Smith|2020|pp=25–26}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|2020|pp=25–26}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|2020|pp=25–26}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|2020|pp=25–26}}
#default = < style="">Article text.{{{{{1}}}|Smith|2020|pp=25–26}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|2020|pp=25–26}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.{{{{{1}}}|Smith|2020|loc=ch. 3}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|2020|loc=ch. 3}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|2020|loc=ch. 3}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|2020|loc=ch. 3}}
#default = < style="">Article text.{{{{{1}}}|Smith|2020|loc=ch. 3}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|2020|loc=ch. 3}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}|

padding:;}} "|
{{#switch:
none = Article text.{{{{{1}}}|Smith|2020|p=25|loc=n. 14}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</syntaxhighlight> pre =
Article text.{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}
#default = < style="">Article text.{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</> }} padding:;}} "|

Article text.{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

|

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|2020|p=25}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|2020|pp=25–26}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|2020|pp=25–26}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|2020|pp=25–26}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|2020|pp=25–26}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|2020|pp=25–26}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|2020|pp=25–26}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|2020|loc=ch. 3}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|2020|loc=ch. 3}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|2020|loc=ch. 3}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|2020|loc=ch. 3}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|2020|loc=ch. 3}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|2020|loc=ch. 3}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:Article text.<ref>{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</ref>|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</ref></syntaxhighlight> pre =
Article text.<ref>{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</ref>
#default = < style="">Article text.<ref>{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</ref></> }} padding:;}} "|

Article text.<ref>{{{{{1}}}|Smith|2020|p=25|loc=n. 14}}</ref>

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

}}

Additional text

The optional parameter |{{SAFESUBST:#if:postscript|postscript=}} or |{{SAFESUBST:#if:ps|ps=}} can be used to change the text which appears at the end of the note in the reference list. (See § Adding additional comments or quotes and § No closing period, below.) Subsequent invocations of {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} with the same author, year, page, and location values but a different value for this parameter with produce a cite error about multiple definition.

Not available in {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} and similar templates.

The optional parameter |{{SAFESUBST:#if:ref|ref=}} is used to create an unusually named link from the short citation to the full citation. This parameter is usually not necessary, and it is more common to use {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfnRef|sfnRef]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} or {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvid|harvid]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} in the reference section. If you specify |{{SAFESUBST:#if:ref|ref=}}none, no hyperlink is created. However, if one does not want the link, it is always possible to simply use plain text instead of the template. The parameter |{{SAFESUBST:#if:Ref|Ref=}} is an alias for |{{SAFESUBST:#if:ref|ref=}}.

Possible issues

Parenthetical references are deprecated

Per WP:PAREN, a certain style of short citations using parentheses, placed within the article text itself, is deprecated on Wikipedia. Several examples were raised and discussed during the September 2020 request for comments. To summarize the consensus reached there:

Example Consensus
The Sun is pretty big. (Miller 2005, p. 1) Formally deprecated; replace with "The Sun is pretty big.{{#ifeq:Template Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch:

no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}]}}"

The paper by Eek (2020) showed... Wordy; use "Eek showed...{{#ifeq:Template Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch:

no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}]}}" instead

Eek (p. 35) showed... Wordy; use "Eek showed...{{#ifeq:Template Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch:

no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}]}}" instead

In 2020, Pelagic et al. found that... Wordy; use "Pelagic et al. (2020) found that..." instead
Smith (2008) argued... Acceptable, in contexts where both year and author are encyclopedic information
Smith argued...{{#ifeq:Template Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch:

no n f false off 0 = = ¬ = yes y t true on 1 = yes #default = yes

}}|yes|}}]}} || May be preferable to the above; no consensus

Specifically the {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvnb|harvnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} or {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvtxt|harvtxt]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} templates may be used to create the linked author-date in-text citation, as shown in the second-to-last example above.

The deprecation does not apply to short citations in {{#switch:o

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags, so the templates may continue to be used freely in that context.

Adding additional comments or quotes

The templates {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvnb|harvnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} or {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvtxt|harvtxt]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} can be used to add quotes or additional comments into the footnote. Examples are below.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Some information.<ref>{{harvnb|Smith|2011|p=2}}: "A quote verifying the information."</ref> == Notes == {{reflist}} |

padding:;}} "|
{{#switch:
none = Some information.<ref>{{harvnb|Smith|2011|p=2}}: "A quote verifying the information."</ref> == Notes == {{reflist}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Some information.<ref>{{harvnb|Smith|2011|p=2}}: "A quote verifying the information."</ref> == Notes == {{reflist}} </syntaxhighlight> pre =
Some information.<ref>{{harvnb|Smith|2011|p=2}}: "A quote verifying the information."</ref>
== Notes ==
{{reflist}}
#default = < style=""> Some information.<ref>{{harvnb|Smith|2011|p=2}}: "A quote verifying the information."</ref> == Notes == {{reflist}} </> }} padding:;}} "|

Some information.<ref>Smith 2011, p. 2: "A quote verifying the information."</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if: "A quote in a secondary source."<ref>{{harvtxt|Smith|2011|p=2}} quoted in {{harvtxt|Jones|2010|p=343}}</ref> == Notes == {{reflist}} |

padding:;}} "|
{{#switch:
none = "A quote in a secondary source."<ref>{{harvtxt|Smith|2011|p=2}} quoted in {{harvtxt|Jones|2010|p=343}}</ref> == Notes == {{reflist}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> "A quote in a secondary source."<ref>{{harvtxt|Smith|2011|p=2}} quoted in {{harvtxt|Jones|2010|p=343}}</ref> == Notes == {{reflist}} </syntaxhighlight> pre =
"A quote in a secondary source."<ref>{{harvtxt|Smith|2011|p=2}} quoted in {{harvtxt|Jones|2010|p=343}}</ref>
== Notes ==
{{reflist}}
#default = < style=""> "A quote in a secondary source."<ref>{{harvtxt|Smith|2011|p=2}} quoted in {{harvtxt|Jones|2010|p=343}}</ref> == Notes == {{reflist}} </> }} padding:;}} "|

"A quote in a secondary source."<ref>Smith (2011{{#if:2||)}}, p. 2{{#if:2|)}} quoted in Jones (2010{{#if:343||)}}, p. 343{{#if:343|)}}</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Nota bene: In the past, the use of |{{SAFESUBST:#if:ps|ps=}} has been advised to hold this additional information, but it is not suitable for this purpose. Two or more {{sfn}} templates with the same authors, same year, and same page, but different |{{SAFESUBST:#if:ps|ps=}} will result in a Cite error: The named reference ... was defined multiple times with different content{{SAFESUBST:#if:Cite error: The named reference ... was defined multiple times with different content||}} message. This message happens because the reference names that {{sfn}} creates will be the same, but the content between the {{#switch:o

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:name="FOOTNOTE..."| name="FOOTNOTE..."}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tag and the {{#switch:c
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:c
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:c
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tag will be different. A workaround is to convert one or some of the {{sfn}} templates to {{harvnb}} wrapped in {{#switch:pair
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags.

Adding a URL for the page or location

If a specific link to the page or section is available, a URL can be added to the location or page number.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg 3]">Smith 2011, p. 3.</ref>

Other article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg &sect;7]">Smith 2011, §7.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith (2011). Smith's book.|
padding:;}} "|
{{#switch:
none = Article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg 3]">Smith 2011, p. 3.</ref>

Other article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg &sect;7]">Smith 2011, §7.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith (2011). Smith's book.
syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg 3]">Smith 2011, p. 3.</ref>

Other article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg &sect;7]">Smith 2011, §7.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith (2011). Smith's book.</syntaxhighlight>
pre =
Article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg 3]">[[#CITEREFSmith2011|Smith 2011]], p. [https://en.wikipedia.org 3].</ref>

Other article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg &sect;7]">[[#CITEREFSmith2011|Smith 2011]], [https://en.wikipedia.org §7].</ref>

{{safesubst:#switch:
  
  {{safesubst:#if: 
  | {{{demospace}}}    
  | {{safesubst:#ifeq:Template|
    | main
    | other
    }} 
  }}
| main     = <strong class="error">Per [[WP:PSEUDOHEADING]] fake headings should not be used in articles.</strong>[[Category:Pages with templates in the wrong namespace]]
| other
| #default = <div class="fake-heading {{#switch: 3
  | 1 = h1
  | 2 | #default = h2
  | 3 = h3
  | 4 | 5 | 6 = h4
  }}">Notes</div>
}}
<references/>

{{safesubst:#switch:
  
  {{safesubst:#if: 
  | {{{demospace}}}    
  | {{safesubst:#ifeq:Template|
    | main
    | other
    }} 
  }}
| main     = <strong class="error">Per [[WP:PSEUDOHEADING]] fake headings should not be used in articles.</strong>[[Category:Pages with templates in the wrong namespace]]
| other
| #default = <div class="fake-heading {{#switch: 3
  | 1 = h1
  | 2 | #default = h2
  | 3 = h3
  | 4 | 5 | 6 = h4
  }}">References</div>
}}
* <cite id="CITEREFSmith2011" class="citation book cs1">Smith (2011). ''Smith's book''.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Smith%27s+book&rft.date=2011&rft.au=Smith&rfr_id=info%3Asid%2Fwikihoc.com%3ATemplate%3AHarvard+citation+documentation" class="Z3988"></span>
#default = < style="">Article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg 3]">Smith 2011, p. 3.</ref>

Other article text.<ref group="" name="FOOTNOTESmith2011[httpsenwikipediaorg &sect;7]">Smith 2011, §7.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith (2011). Smith's book.</>
}}
padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

A citation inside an explanatory footnote

Sometimes an explanatory footnote requires a citation. Templates like {{sfn}} can't be directly imbedded between {{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags, because the following message will be produced: Cite error references missing group{{SAFESUBST:#if:Cite error references missing group||}}.

The templates {{efn}} and {{notelist}} can be used to create separate explanatory footnotes from short citations, as shown in the first example. An article that uses this technique extensively is Chinese Room.

It is also possible to use the magic word {{#tag:ref|...}} and the {{sfn}} template will work correctly inside the footnote, as shown in the second example.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Interesting fact.{{efn|Clarification of interesting fact.{{sfn|Smith|2018}}}} ==Notes== {{notelist}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2018 | title = Smith's other book }} |

padding:;}} "|
{{#switch:
none = Interesting fact.{{efn|Clarification of interesting fact.{{sfn|Smith|2018}}}} ==Notes== {{notelist}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2018 | title = Smith's other book }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Interesting fact.{{efn|Clarification of interesting fact.{{sfn|Smith|2018}}}} ==Notes== {{notelist}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2018 | title = Smith's other book }} </syntaxhighlight> pre =
Interesting fact.{{efn|Clarification of interesting fact.{{sfn|Smith|2018}}}}

==Notes==
{{notelist}}

==Citations==
{{reflist}}

==References==
* {{cite book
| last = Smith
| date = 2018
| title = Smith's other book }}
#default = < style=""> Interesting fact.{{efn|Clarification of interesting fact.{{sfn|Smith|2018}}}} ==Notes== {{notelist}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2018 | title = Smith's other book }} </> }} padding:;}} "|

Interesting fact.{{safesubst:#if:

<ref name="" group="{{safesubst:#switch: note upper-alpha upper-roman lower-alpha lower-greek lower-roman = #default = lower-alpha
  }}">Clarification of interesting fact.<ref group="" name="FOOTNOTESmith2018">Smith 2018.</ref></ref>
<ref group="{{safesubst:#switch: note upper-alpha upper-roman lower-alpha lower-greek lower-roman = #default = lower-alpha
  }}">Clarification of interesting fact.<ref group="" name="FOOTNOTESmith2018">Smith 2018.</ref></ref>

}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}}

}}><references group="{{safesubst:#switch:

note upper-alpha upper-roman lower-alpha lower-greek lower-roman = #default = lower-alpha }}" responsive="0"></references>

<references group="{{safesubst:#switch:

note upper-alpha upper-roman lower-alpha lower-greek lower-roman = #default = lower-alpha }}" responsive="1"></references> }}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Citations

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith (2018). Smith's other book.

}}{{#if: Interesting fact.{{#tag:ref|Clarification of interesting fact.{{sfn|Smith|2017}}}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2017 | title = Smith's other book }} |

padding:;}} "|
{{#switch:
none = Interesting fact.{{#tag:ref|Clarification of interesting fact.{{sfn|Smith|2017}}}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2017 | title = Smith's other book }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Interesting fact.{{#tag:ref|Clarification of interesting fact.{{sfn|Smith|2017}}}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2017 | title = Smith's other book }} </syntaxhighlight> pre =
Interesting fact.{{#tag:ref|Clarification of interesting fact.{{sfn|Smith|2017}}}}

==Citations==
{{reflist}}

==References==
* {{cite book
| last = Smith
| date = 2017
| title = Smith's other book }}
#default = < style=""> Interesting fact.{{#tag:ref|Clarification of interesting fact.{{sfn|Smith|2017}}}} ==Citations== {{reflist}} ==References== * {{cite book | last = Smith | date = 2017 | title = Smith's other book }} </> }} padding:;}} "|

Interesting fact.<ref>Clarification of interesting fact.<ref group="" name="FOOTNOTESmith2017">Smith 2017.</ref></ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith (2017). Smith's other book.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Multiple lists of inline citations

Sometimes there is a need to create two or more separate lists of inline footnotes. For example some family trees are contained in templates, they are transluded into several biographies, and they have their own self contained citations (see Template:Houston family tree and the article Margaret Lea Houston).

To facilitate this, while the main page uses the standard 1,2,3 footnote counting, it is common for family trees to use the efn template with a group parameter set—for example {{efn-lg}} (lower-greek). The efn templates are text templates, to link some or all of the content of the efn template to a long citation template such as {{cite book}} place {{harvnb}} or {{harv}} within the efn template.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: ...by the fact itself.<ref>{{harvnb|Smith|2022|p=1}}</ref> ==Family Tree== He's his own grandpa.{{efn-lg|{{harvnb|Latham|1947|p=9}} }} ===FT notes=== {{notelist-lg}} ===FT references=== *{{citation |last=Latham |first=Dwight |date=1947 |title=The Adams family}} ==See also== [[Ipso facto]]<ref>{{harvnb|Smith|2022|p=2}}</ref> ==Notes== {{Reflist}} ==References== * {{citation |last=Smith |date=2018 |title=Smith's other book}} |

padding:;}} "|
{{#switch:
none = ...by the fact itself.<ref>{{harvnb|Smith|2022|p=1}}</ref> ==Family Tree== He's his own grandpa.{{efn-lg|{{harvnb|Latham|1947|p=9}} }} ===FT notes=== {{notelist-lg}} ===FT references=== *{{citation |last=Latham |first=Dwight |date=1947 |title=The Adams family}} ==See also== [[Ipso facto]]<ref>{{harvnb|Smith|2022|p=2}}</ref> ==Notes== {{Reflist}} ==References== * {{citation |last=Smith |date=2018 |title=Smith's other book}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> ...by the fact itself.<ref>{{harvnb|Smith|2022|p=1}}</ref> ==Family Tree== He's his own grandpa.{{efn-lg|{{harvnb|Latham|1947|p=9}} }} ===FT notes=== {{notelist-lg}} ===FT references=== *{{citation |last=Latham |first=Dwight |date=1947 |title=The Adams family}} ==See also== [[Ipso facto]]<ref>{{harvnb|Smith|2022|p=2}}</ref> ==Notes== {{Reflist}} ==References== * {{citation |last=Smith |date=2018 |title=Smith's other book}} </syntaxhighlight> pre =
...by the fact itself.<ref>{{harvnb|Smith|2022|p=1}}</ref>

==Family Tree==
He's his own grandpa.{{efn-lg|{{harvnb|Latham|1947|p=9}} }}

===FT notes===
{{notelist-lg}}

===FT references===
*{{citation
|last=Latham
|first=Dwight
|date=1947
|title=The Adams family}}

==See also==
[[Ipso facto]]<ref>{{harvnb|Smith|2022|p=2}}</ref>

==Notes==
{{Reflist}}

==References==
* {{citation
|last=Smith
|date=2018
|title=Smith's other book}}
#default = < style=""> ...by the fact itself.<ref>{{harvnb|Smith|2022|p=1}}</ref> ==Family Tree== He's his own grandpa.{{efn-lg|{{harvnb|Latham|1947|p=9}} }} ===FT notes=== {{notelist-lg}} ===FT references=== *{{citation |last=Latham |first=Dwight |date=1947 |title=The Adams family}} ==See also== [[Ipso facto]]<ref>{{harvnb|Smith|2022|p=2}}</ref> ==Notes== {{Reflist}} ==References== * {{citation |last=Smith |date=2018 |title=Smith's other book}} </> }} padding:;}} "|

...by the fact itself.<ref>Smith 2022, p. 1</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Family Tree

}} He's his own grandpa.{{safesubst:#if:

<ref name="" group="{{safesubst:#switch: lower-greek note upper-alpha upper-roman lower-alpha lower-greek lower-roman = lower-greek #default = lower-alpha
  }}">Latham 1947, p. 9</ref>
<ref group="{{safesubst:#switch: lower-greek note upper-alpha upper-roman lower-alpha lower-greek lower-roman = lower-greek #default = lower-alpha
  }}">Latham 1947, p. 9</ref>

}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
FT notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}}

}}><references group="{{safesubst:#switch: lower-greek

note upper-alpha upper-roman lower-alpha lower-greek lower-roman = lower-greek #default = lower-alpha }}" responsive="0"></references>

<references group="{{safesubst:#switch: lower-greek

note upper-alpha upper-roman lower-alpha lower-greek lower-roman = lower-greek #default = lower-alpha }}" responsive="1"></references> }}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
FT references

}}

  • Latham, Dwight (1947), The Adams family


{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
See also

}} Ipso facto<ref>Smith 2022, p. 2</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith (2022), Smith's other book

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

More than one work in a year

Where there is a need to cite more than one work by the same author published in the same year, the standard way to disambiguate such works is to add a letter suffix after the year element of the {{sfn}} template (e.g. {{sfn|Smith|2006a}} and {{sfn|Smith|2006b}}). Make sure to add the disambiguation letter to the matching full citation, (e.g. {{cite book|...|last=Smith|date=2006b}}).

Templates that use Module:Citation/CS1

When {{sfn}} is used with {{citation}} or Citation Style 1 templates, a year-suffix letter may be added to |{{SAFESUBST:#if:date|date=}} for all accepted date formats except year-initial numeric (YYYY-MM-DD{{SAFESUBST:#if:YYYY-MM-DD||}}). It is not necessary to include both |{{SAFESUBST:#if:date|date=}} and |{{SAFESUBST:#if:year|year=}} (see exception below). If both are included, |{{SAFESUBST:#if:year|year=}} is used for the CITEREF anchor to be compliant with legacy citations.

|{{SAFESUBST:#if:date|date=}}2013a: simple year only dates
|{{SAFESUBST:#if:date|date=}}Jan 2013b or |{{SAFESUBST:#if:date|date=}}Winter 2013b: month or season and year dates
|{{SAFESUBST:#if:date|date=}}9 November 2013b or |{{SAFESUBST:#if:date|date=}}November 9, 2013b: full dates
|{{SAFESUBST:#if:date|date=}}June–July 2013c or |{{SAFESUBST:#if:date|date=}}Winter–Spring 2013c: month or season ranges and year dates
|{{SAFESUBST:#if:date|date=}}c. 2013d: circa year dates
|{{SAFESUBST:#if:date|date=}}{{#time:Y}}–{{#time:Y|now +1 year}}e or |{{SAFESUBST:#if:date|date=}}Summer {{#time:Y}}–{{#time:y|now +1 year}}e: year ranges
|{{SAFESUBST:#if:date|date=}}n.d.f: no date (n.d.)
|{{SAFESUBST:#if:date|date=}}2013g-11-09: not supported, the template must use |{{SAFESUBST:#if:year|year=}}2013g. If month and day should be part of the citation as well, both parameters need to be given: |{{SAFESUBST:#if:date|date=}}2013-11-09 |{{SAFESUBST:#if:year|year=}}2013x. In this case, |{{SAFESUBST:#if:date|date=}} is used for citation display and metadata purposes, and |{{SAFESUBST:#if:year|year=}} for link disambiguation.
{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.{{sfn|Smith|1993a|p=25}} More text.{{sfn|Smith|1993b|p=32}} ==Notes== {{reflist}} ==References== * {{cite journal |last=Smith |first=Karen |date=January 1993a |title=Smith's first paper |journal=Important Journal }} * {{cite journal |last=Smith |first=Karen |date=Spring–Summer 1993b |title=Smith's second paper |journal=Another Important Journal }}|

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Smith|1993a|p=25}} More text.{{sfn|Smith|1993b|p=32}} ==Notes== {{reflist}} ==References== * {{cite journal |last=Smith |first=Karen |date=January 1993a |title=Smith's first paper |journal=Important Journal }} * {{cite journal |last=Smith |first=Karen |date=Spring–Summer 1993b |title=Smith's second paper |journal=Another Important Journal }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{sfn|Smith|1993a|p=25}} More text.{{sfn|Smith|1993b|p=32}} ==Notes== {{reflist}} ==References== * {{cite journal |last=Smith |first=Karen |date=January 1993a |title=Smith's first paper |journal=Important Journal }} * {{cite journal |last=Smith |first=Karen |date=Spring–Summer 1993b |title=Smith's second paper |journal=Another Important Journal }}</syntaxhighlight> pre =
Article text.{{sfn|Smith|1993a|p=25}}
More text.{{sfn|Smith|1993b|p=32}}

==Notes==
{{reflist}}

==References==
* {{cite journal
|last=Smith
|first=Karen
|date=January 1993a
|title=Smith's first paper
|journal=Important Journal
}}
* {{cite journal
|last=Smith
|first=Karen
|date=Spring–Summer 1993b
|title=Smith's second paper
|journal=Another Important Journal
}}
#default = < style="">Article text.{{sfn|Smith|1993a|p=25}} More text.{{sfn|Smith|1993b|p=32}} ==Notes== {{reflist}} ==References== * {{cite journal |last=Smith |first=Karen |date=January 1993a |title=Smith's first paper |journal=Important Journal }} * {{cite journal |last=Smith |first=Karen |date=Spring–Summer 1993b |title=Smith's second paper |journal=Another Important Journal }}</> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith1993a25">Smith 1993a, p. 25.</ref> More text.<ref group="" name="FOOTNOTESmith1993b32">Smith 1993b, p. 32.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, Karen (January 1993a). "Smith's first paper". Important Journal.
  • Smith, Karen (Spring–Summer 1993b). "Smith's second paper". Another Important Journal.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

More than one author with the same last name

The above solution to add a letter suffix after the year element also works for multiple authors with the same last name. For example, both Richard Bushman and Claudia Lauper Bushman published books in 2006. To differentiate between the two books, the first one can be given the year "2006a" and the second one "2006b".

Large number of authors

If there are more than four authors, the first four authors' surnames (the value in |{{SAFESUBST:#if:last|last=}} or |{{SAFESUBST:#if:author|author=}}) are required by the template. Listing more authors is not supported. It is also possible to use the |{{SAFESUBST:#if:ref|ref=}}{{harvid}} in the citation template, which allows a more concise citation in the article text.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.<ref>{{harv|Smith|Jones|Brown|Black|1994|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1994 | title = Scientific paper written by many scientists | journal = Important Journal }}|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{harv|Smith|Jones|Brown|Black|1994|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1994 | title = Scientific paper written by many scientists | journal = Important Journal }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{harv|Smith|Jones|Brown|Black|1994|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1994 | title = Scientific paper written by many scientists | journal = Important Journal }}</syntaxhighlight> pre =
Article text.<ref>{{harv|Smith|Jones|Brown|Black|1994|p=25}}</ref>

==Notes==
{{reflist}}

==References==
* {{cite journal
| last = Smith
| last2 = Jones
| last3 = Brown
| last4 = Black
| last5 = Davis
| last6 = Martinez
| last7 = Hsu
| date = 1994
| title = Scientific paper written by
many scientists
| journal = Important Journal
}}
#default = < style="">Article text.<ref>{{harv|Smith|Jones|Brown|Black|1994|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1994 | title = Scientific paper written by many scientists | journal = Important Journal }}</> }} padding:;}} "|

Article text.<ref>(Smith et al. 1994, p. 25)</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith; Jones; Brown; Black; Davis; Martinez; Hsu (1994). "Scientific paper written by many scientists". Important Journal.

}}{{#if:Article text.<ref>{{harv|Smith et al.|1995|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1995 | title = Another paper by many scientists | journal = Important Journal | ref = {{harvid|Smith et al.|1995}} }}|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{harv|Smith et al.|1995|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1995 | title = Another paper by many scientists | journal = Important Journal | ref = {{harvid|Smith et al.|1995}} }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{harv|Smith et al.|1995|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1995 | title = Another paper by many scientists | journal = Important Journal | ref = {{harvid|Smith et al.|1995}} }}</syntaxhighlight> pre =
Article text.<ref>{{harv|Smith et al.|1995|p=25}}</ref>

==Notes==
{{reflist}}

==References==
* {{cite journal
| last = Smith
| last2 = Jones
| last3 = Brown
| last4 = Black
| last5 = Davis
| last6 = Martinez
| last7 = Hsu
| date = 1995
| title = Another paper by many scientists
| journal = Important Journal
| ref = {{harvid|Smith et al.|1995}}
}}
#default = < style="">Article text.<ref>{{harv|Smith et al.|1995|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | last2 = Jones | last3 = Brown | last4 = Black | last5 = Davis | last6 = Martinez | last7 = Hsu | date = 1995 | title = Another paper by many scientists | journal = Important Journal | ref = {{harvid|Smith et al.|1995}} }}</> }} padding:;}} "|

Article text.<ref>(Smith et al. 1995, p. 25)</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith; Jones; Brown; Black; Davis; Martinez; Hsu (1995). "Another paper by many scientists". Important Journal.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

No author name in citation template

Some sources do not have a single author with a last name, such as a magazine article or a report from a government institution. There is no consensus (in Wikipedia or among citation styles) about how to format author–date citations for works that do not have a specific author. Several choices are:

  1. The title of the article, or a shortened form of the title, is recommended by some style guides.
  2. For a newspaper or periodical, you may use the name of the paper and the date.
  3. For a publication by an institution, use either:
    1. The initials of the institution
    2. The name of the institution
  4. Other style guides recommend using "Anonymous" or "Anon."

An article should adopt one of these styles consistently. Using |{{SAFESUBST:#if:ref|ref=}}{{harvid}} in the citation template can handle these cases.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.<ref group="" name="FOOTNOTEBGI1996429">BGI 1996, p. 429.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Important Book. Big Government Institution. 1996.|
padding:;}} "|
{{#switch:
none = Article text.<ref group="" name="FOOTNOTEBGI1996429">BGI 1996, p. 429.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Important Book. Big Government Institution. 1996.
syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref group="" name="FOOTNOTEBGI1996429">BGI 1996, p. 429.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Important Book. Big Government Institution. 1996.</syntaxhighlight>
pre =
Article text.<ref group="" name="FOOTNOTEBGI1996429">[[#CITEREFBGI1996|BGI 1996]], p. 429.</ref>

{{safesubst:#switch:
  
  {{safesubst:#if: 
  | {{{demospace}}}    
  | {{safesubst:#ifeq:Template|
    | main
    | other
    }} 
  }}
| main     = <strong class="error">Per [[WP:PSEUDOHEADING]] fake headings should not be used in articles.</strong>[[Category:Pages with templates in the wrong namespace]]
| other
| #default = <div class="fake-heading {{#switch: 3
  | 1 = h1
  | 2 | #default = h2
  | 3 = h3
  | 4 | 5 | 6 = h4
  }}">Notes</div>
}}
<references/>

{{safesubst:#switch:
  
  {{safesubst:#if: 
  | {{{demospace}}}    
  | {{safesubst:#ifeq:Template|
    | main
    | other
    }} 
  }}
| main     = <strong class="error">Per [[WP:PSEUDOHEADING]] fake headings should not be used in articles.</strong>[[Category:Pages with templates in the wrong namespace]]
| other
| #default = <div class="fake-heading {{#switch: 3
  | 1 = h1
  | 2 | #default = h2
  | 3 = h3
  | 4 | 5 | 6 = h4
  }}">References</div>
}}
* <cite id="CITEREFBGI1996" class="citation book cs1">''Important Book''. Big Government Institution. 1996.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Important+Book&rft.pub=Big+Government+Institution&rft.date=1996&rfr_id=info%3Asid%2Fwikihoc.com%3ATemplate%3AHarvard+citation+documentation" class="Z3988"></span>
#default = < style="">Article text.<ref group="" name="FOOTNOTEBGI1996429">BGI 1996, p. 429.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Important Book. Big Government Institution. 1996.</>
}}
padding:;}} "|

Article text.<ref group="" name="FOOTNOTEPopular Magazine199629">Popular Magazine 1996, p. 29.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • "An Article by an Anonymous Author". Popular Magazine. 1996.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Citation has |date= and no |year=

Either the |{{SAFESUBST:#if:date|date=}} or |{{SAFESUBST:#if:year|year=}} of a citation template can be matched—the template logic can extract the year from a full date. If the date parameter is not a full date, then the extraction will fail. If the link does not seem to work, it also possible to set both |{{SAFESUBST:#if:date|date=}} and |{{SAFESUBST:#if:year|year=}} parameters. The template will display the date and use the year for the anchor. These two examples show a year being successfully extracted from full date.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.{{sfn|Smith|1997|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = 11 May 1997 | title = Smith's 1997 paper | journal= Important Journal }}|

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Smith|1997|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = 11 May 1997 | title = Smith's 1997 paper | journal= Important Journal }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{sfn|Smith|1997|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = 11 May 1997 | title = Smith's 1997 paper | journal= Important Journal }}</syntaxhighlight> pre =
Article text.{{sfn|Smith|1997|p=101}}

==Notes==
{{reflist}}

==References==
* {{cite journal
| last = Smith | first = Karen
| date = 11 May 1997
| title = Smith's 1997 paper
| journal= Important Journal
}}
#default = < style="">Article text.{{sfn|Smith|1997|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = 11 May 1997 | title = Smith's 1997 paper | journal= Important Journal }}</> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith1997101">Smith 1997, p. 101.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, Karen (11 May 1997). "Smith's 1997 paper". Important Journal.

}}{{#if:Article text.{{sfn|Smith|1998|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = May 1998 | title = Smith's 1998 paper | journal= Important Journal }}|

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Smith|1998|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = May 1998 | title = Smith's 1998 paper | journal= Important Journal }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{sfn|Smith|1998|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = May 1998 | title = Smith's 1998 paper | journal= Important Journal }}</syntaxhighlight> pre =
Article text.{{sfn|Smith|1998|p=101}}

==Notes==
{{reflist}}

==References==
* {{cite journal
| last = Smith | first = Karen
| date = May 1998
| title = Smith's 1998 paper
| journal= Important Journal
}}
#default = < style="">Article text.{{sfn|Smith|1998|p=101}} ==Notes== {{reflist}} ==References== * {{cite journal | last = Smith | first = Karen | date = May 1998 | title = Smith's 1998 paper | journal= Important Journal }}</> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith1998101">Smith 1998, p. 101.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, Karen (May 1998). "Smith's 1998 paper". Important Journal.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Using {{{1}}} with {{cite comic}}

The {{cite comic}} template uses the parameter |{{SAFESUBST:#if:ref|ref=}} to create an anchor for the Harvard citation templates. This can be set with {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfnRef|sfnRef]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvid|harvid]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, or using CITEREF directly with a concatenation of #CITEREF plus the parameters passed to the Harvard citation template.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.{{sfn|Morrison|1987}} ==Notes== {{reflist}} ==References== * {{cite comic |writer=Morrison, Grant |artist=Yeowell, Steve |title=2000 AD |date=August 15, 1987 |publisher=[[Fleetway]] |ref={{sfnref|Morrison|1987}} }}|

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Morrison|1987}} ==Notes== {{reflist}} ==References== * {{cite comic |writer=Morrison, Grant |artist=Yeowell, Steve |title=2000 AD |date=August 15, 1987 |publisher=[[Fleetway]] |ref={{sfnref|Morrison|1987}} }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{sfn|Morrison|1987}} ==Notes== {{reflist}} ==References== * {{cite comic |writer=Morrison, Grant |artist=Yeowell, Steve |title=2000 AD |date=August 15, 1987 |publisher=[[Fleetway]] |ref={{sfnref|Morrison|1987}} }}</syntaxhighlight> pre =
Article text.{{sfn|Morrison|1987}}

==Notes==
{{reflist}}

==References==
* {{cite comic
 |writer=Morrison, Grant
 |artist=Yeowell, Steve
 |title=2000 AD
 |date=August 15, 1987
 |publisher=[[Fleetway]]
 |ref={{sfnref|Morrison|1987}}
}}
#default = < style="">Article text.{{sfn|Morrison|1987}} ==Notes== {{reflist}} ==References== * {{cite comic |writer=Morrison, Grant |artist=Yeowell, Steve |title=2000 AD |date=August 15, 1987 |publisher=[[Fleetway]] |ref={{sfnref|Morrison|1987}} }}</> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTEMorrison1987">Morrison 1987.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • {{#if:CITEREFMorrison1987|}}{{#if: |
    {{{creator}}} (wa)
  }}{{#if:Morrison, Grant|
    {{#if:|
      , 
    }}Morrison, Grant{{#if:
,
                                }} (w)
  }}{{#if:Yeowell, Steve|
    {{#if:Morrison, Grant|
      , 
    }}Yeowell, Steve{{#if:
, {{{coartists}}}
                                }} (a)
  }}{{#if:|
    {{#if:Morrison, Grant|
      , 
    }}{{{penciller}}}{{#if:
, {{{copencillers}}}
                                     }} (p)
  }}{{#if:|
    {{#if:Morrison, Grant|
      , 
    }}{{{inker}}}{{#if:
, {{{coinkers}}}
                             }} (i)
  }}{{#if:|
    {{#if:Morrison, Grant|
      , 
    }}{{{colorist}}} (col)
  }}{{#if:|
    {{#if:Morrison, Grant|
      , 
    }}{{{letterer}}} (let)
  }}{{#if:|
    {{#if:Morrison, Grant|
      , 
    }}{{{editor}}} (ed)
  }}{{#if:|
    {{#if:Morrison, Grant|
      , 
    }}{{{others}}}
  }}{{#if:Morrison, Grant|
    . 
  }}{{#if:|
    {{#if:|
      [{{#ifeq: {{{url-status}}}|live 
{{{url}}}
       }} "{{{story}}}"]{{#if:|
                                              ({{{format}}})
                                           }}|
      "{{{story}}}"{{#if:|
                                  ({{{format}}})
                               }}
    }}{{#if:2000 AD
2000 AD
      }}|
    {{#if:|
      [{{#ifeq: {{{url-status}}}|live 
{{{url}}}
         }} 2000 AD]{{#if:|
                                                ({{{format}}})
                                             }}|
       2000 AD{{#if:|
                                    ({{{format}}})
                                 }}
    }}
  }}{{#if:|

{{#if:

. {{{newspaper}}}}}{{#if: ({{{location}}})}}{{#if:August 15, 1987 . August 15, 1987

}} }}{{#if:

, vol. {{{volume}}}
  }}{{#if:|
    , no. {{{issue}}}
  }}{{#if:||{{#if:
, p. {{{page}}} {{#if: , {{{at}}}|, pp. {{{pages}}}}}
     }}
  }}{{#if:|/{{{panel}}}}}
 }}{{#if:|

{{#if:

[{{{supplement}}}]}}{{#if:Fleetway , Fleetway}}{{#if: , p. {{{page}}} {{#if: , {{{at}}}|, pp. {{{pages}}}}}
     }}
  }}{{#if:|/{{{panel}}}}}

{{#if:August 15, 1987| (August 15, 1987)}}{{#if:Fleetway|

    . {{#if:|
            {{{location}}}: 
          }}Fleetway
  }}
 }}{{#if:|
    , {{{id}}}
  }}{{#switch:
en En English =
       , Template:In lang
     }}
  }}{{#if:|{{#if:|{{
     #ifeq:{{{url-status}}}|live
. [ Archived] from the original . Archived from [{{{url}}} the original]}}{{
     #if:| on {{{archive-date}}}
     }}
  }}{{#if: |
     . Retrieved 
  }}}}.{{#if:|
       "{{{quote}}}"}}{{#if:CITEREFMorrison1987|}}{{#if:2000 AD|
  }}{{#if:August 15, 1987|
  }}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Citation format does not support anchors: {{wikicite}}

In a few very rare cases, it may be impossible for the citation templates to create an anchor. Either (1) the citation is formatted with a template that does not support the |{{SAFESUBST:#if:ref|ref=}} parameter or (2) the source can't be described using our citation templates at all. In these cases, it is possible to use {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:wikicite|wikicite]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} to make the anchor. (As of November 2010, there are only approximately 100 articles that require this technique.) It is also possible that (3) local editors would prefer not to use citation templates. In this case, it is important to discuss what the local editors would like to do about the bad links. It is always possible to simply remove {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harv|harv]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} or {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, leaving plain text without links.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.{{sfn |Big Government Agency|1999}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = {{cite report | title=Important Government Report | publisher=Big Government Agency | date=1999 }} | ref = {{harvid|Big Government Agency|1999}} }} |

padding:;}} "|
{{#switch:
none = Article text.{{sfn |Big Government Agency|1999}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = {{cite report | title=Important Government Report | publisher=Big Government Agency | date=1999 }} | ref = {{harvid|Big Government Agency|1999}} }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{sfn |Big Government Agency|1999}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = {{cite report | title=Important Government Report | publisher=Big Government Agency | date=1999 }} | ref = {{harvid|Big Government Agency|1999}} }} </syntaxhighlight> pre =
Article text.{{sfn |Big Government Agency|1999}}

==Notes==
{{reflist}}

==References==
* {{wikicite
 | reference = {{cite report
 | title=Important Government Report
 | publisher=Big Government Agency
 | date=1999
 }}
 | ref = {{harvid|Big Government Agency|1999}}
}}
#default = < style="">Article text.{{sfn |Big Government Agency|1999}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = {{cite report | title=Important Government Report | publisher=Big Government Agency | date=1999 }} | ref = {{harvid|Big Government Agency|1999}} }} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTEBig Government Agency1999">Big Government Agency 1999.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Important Government Report (Report). Big Government Agency. 1999.

}}{{#if:Article text.{{sfn |A particularly unusual citation}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = A source that can't be described using our citation templates at all. | ref = {{harvid|A particularly unusual citation}} }} |

padding:;}} "|
{{#switch:
none = Article text.{{sfn |A particularly unusual citation}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = A source that can't be described using our citation templates at all. | ref = {{harvid|A particularly unusual citation}} }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.{{sfn |A particularly unusual citation}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = A source that can't be described using our citation templates at all. | ref = {{harvid|A particularly unusual citation}} }} </syntaxhighlight> pre =
Article text.{{sfn |A particularly unusual citation}}

==Notes==
{{reflist}}

==References==
* {{wikicite
| reference = A source that can't be described
using our citation templates at all.
| ref = {{harvid|A particularly unusual citation}}
}}
#default = < style="">Article text.{{sfn |A particularly unusual citation}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = A source that can't be described using our citation templates at all. | ref = {{harvid|A particularly unusual citation}} }} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTEA particularly unusual citation">A particularly unusual citation.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • A source that can't be described using our citation templates at all.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

It is also possible to use {{#switch:o

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|cite|cite}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:cite|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:cite|!--|-->|</cite>}}
}} to achieve the same effect, but this may not be compatible with HTML 5.

No closing period: |ps=none

Using |{{SAFESUBST:#if:ps|ps=}}none in {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} removes the final period. Compare the two examples. Suppressing the default period (full stop) ensures consistency with Citation style 2, as produced by {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Citation|Citation]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, which does not use a trailing period (full stop) when rendering full citations. The postscript is only effective the first time {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} is used for a particular author, year, and location. An empty |{{SAFESUBST:#if:ps|ps=}} will also suppress terminal punctuation, but |{{SAFESUBST:#if:ps|ps=}}none is recommended in order to make it clear that an editor intended there to be no terminal punctuation.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Article text.{{sfn|Smith|2011|ps=none}} == Notes == {{reflist}} |

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Smith|2011|ps=none}} == Notes == {{reflist}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.{{sfn|Smith|2011|ps=none}} == Notes == {{reflist}} </syntaxhighlight> pre =
Article text.{{sfn|Smith|2011|ps=none}}
== Notes ==
{{reflist}}
#default = < style=""> Article text.{{sfn|Smith|2011|ps=none}} == Notes == {{reflist}} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith2011">Smith 2011</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if: Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} |

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} </syntaxhighlight> pre =
Article text.{{sfn|Smith|2011}}
== Notes ==
{{reflist}}
#default = < style=""> Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith2011">Smith 2011.</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Note that {{harvnb}} does not emit a closing period by default: Smith 2020, p. 25

If an article is using this template, and nothing happens when you click on the highlighted wikilink from a Harvard style citation to a full citation at the bottom of the page, there are several possible solutions. If:

  1. The correct citation does not appear at the bottom of the article. Solution: Find the source (it may be copied from an article on a similar subject), and check that it verifies the text. If the source can't be found, tag the citation with {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:citation not found|citation not found]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}.
  2. The correct citation appears at the bottom of the article, and
    1. The Harvard citation uses a template (such as {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} or {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harv|harv]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}):
      1. The citation uses a template from the list at Citation Style 1:
        1. The name is spelled or capitalized differently here than in the citation. Solution: check the source for the correct spelling, and use the same spelling, spacing, and capitalization in both the short and full citations.
        2. The year is different here than the citation. Solution: check the source for the correct year, and use the same year in both the short and full citations.
        3. The template has a |{{SAFESUBST:#if:date|date=}} field and no |{{SAFESUBST:#if:year|year=}} field, but the format of the |{{SAFESUBST:#if:date|date=}} field is unusual. Solution: Try to fix the date. If the link still does not work, add |{{SAFESUBST:#if:year|year=}} to the citation template. (It's okay if it has both.)
        4. The citation does not have an author's, or an editor's, last name (authors take precedence over editors). Solution: check that |{{SAFESUBST:#if:ref|ref=}}{{harvid}} is set correctly (see below).
      2. The citation uses a template that does not support |{{SAFESUBST:#if:ref|ref=}} (See Wikipedia:Citation templates and reference anchors). Solution: Consider modifying the template to support |{{SAFESUBST:#if:ref|ref=}}. Alternatively, an anchor can be created using {{wikicite|id={{harvid|args}}|reference={{citation}}}}.
      3. The full citation does not use a template:
        1. It has no wikicode to create an anchor. Solution: If {{cite *}} citation templates are used liberally throughout the article, then reformat the full citation with the appropriate {{cite *}} template (and set the |{{SAFESUBST:#if:ref|ref=}} appropriately, if necessary). Otherwise consult with local editors on the talk page about how to proceed. Either add {{cite *}} templates and {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harv|harv]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} templates, or remove all templates, depending on what local editors prefer. A few articles use {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:wikicite|wikicite]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} to create an anchor as an alternative to standard templates.
        2. It uses a {{#switch:pair
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|cite|cite}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:cite|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:cite|!--|-->|</cite>}}
}} span to create an anchor. Solution: remove the cite span (these are deprecated) and proceed following the recommendation immediately above.
        1. It uses {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:wikicite|wikicite]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}. Solution: Check that the text in |{{SAFESUBST:#if:id|id=}}{{harvid}} matches the text in {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:wikicite|wikicite]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}.
    1. If the Harvard citation uses a handwritten wikilink, such as [[#Reference-Smith2006|Smith (2006)]]:
      1. The citation uses a citation template which supports |{{SAFESUBST:#if:ref|ref=}} (See Wikipedia:Citation templates and reference anchors). Solution: Check that |{{SAFESUBST:#if:ref|ref=}} is set to a matching id.
      2. Otherwise, check that the reference has {{wikicite|ref=id|reference=citation}} with a matching id.

Templates that have broken wikilinks using these templates are added to the category [[:Category:{{#ifeq:|Category|All articles with broken links to citations|All articles with broken links to citations }}|Category:{{#ifeq:|Category|All articles with broken links to citations|All articles with broken links to citations }}]]{{#if:{{safesubst:#switch: no

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}| =1408|font-weight: bold; color: #DD0000;}}">( 0 )}}.

When a short-cite template links to a full citation that is rendered by a template that wraps a CS1 template, like {{cite DNB}} (which wraps {{cite encyclopedia}}), a no target error may be displayed even when the short-cite template is valid and the link works. That is a "false positive" error. The error message can be suppressed by adding |{{SAFESUBST:#if:ignore-err|ignore-err=}}yes to the template, or by adding the template {{Sfn whitelist}} with the anchor ID(s) to the article. If you are testing changes in Special:ExpandTemplates and the error message cannot be suppressed, try testing in a sandbox or user subpage instead.

{{{1}}} embedded in list-defined ref does not work

If you embed an {{{1}}} template in a list-defined reference, you may get a false-positive "missing key" error which looks like this:

A list-defined reference named ". . ." is not used in the content (see the help page).

This is a false-positive: list-defined references do not work correctly when references are nested. It is due to a long-standing bug in mediawiki software (see phab:T22707). A workaround is possible using {{sfnlink}}.

Additional bugs associated with embedding footnotes in list-defined references are known. One of them is that the reference name given in the error message will identify the wrong list-defined reference in the first false-positive error message on the page; this is tracked in {{#if:|Phabricator: }}{{#if:T26600|{{#ifeq:T|T|T26600|TT26600}}{{#if:| ({{{label1}}})}}|Phabricator}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{2}}}|{{{2}}}]]|[[Phabricator:T{{{2}}}|T{{{2}}}]]}}{{#if:| ({{{label2}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{3}}}|{{{3}}}]]|[[Phabricator:T{{{3}}}|T{{{3}}}]]}}{{#if:| ({{{label3}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{4}}}|{{{4}}}]]|[[Phabricator:T{{{4}}}|T{{{4}}}]]}}{{#if:| ({{{label4}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{5}}}|{{{5}}}]]|[[Phabricator:T{{{5}}}|T{{{5}}}]]}}{{#if:| ({{{label5}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{6}}}|{{{6}}}]]|[[Phabricator:T{{{6}}}|T{{{6}}}]]}}{{#if:| ({{{label6}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{7}}}|{{{7}}}]]|[[Phabricator:T{{{7}}}|T{{{7}}}]]}}{{#if:| ({{{label7}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{8}}}|{{{8}}}]]|[[Phabricator:T{{{8}}}|T{{{8}}}]]}}{{#if:| ({{{label8}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{9}}}|{{{9}}}]]|[[Phabricator:T{{{9}}}|T{{{9}}}]]}}{{#if:| ({{{label9}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{10}}}|{{{10}}}]]|[[Phabricator:T{{{10}}}|T{{{10}}}]]}}{{#if:| ({{{label10}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{11}}}|{{{11}}}]]|[[Phabricator:T{{{11}}}|T{{{11}}}]]}}{{#if:| ({{{label11}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{12}}}|{{{12}}}]]|[[Phabricator:T{{{12}}}|T{{{12}}}]]}}{{#if:| ({{{label12}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{13}}}|{{{13}}}]]|[[Phabricator:T{{{13}}}|T{{{13}}}]]}}{{#if:| ({{{label13}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{14}}}|{{{14}}}]]|[[Phabricator:T{{{14}}}|T{{{14}}}]]}}{{#if:| ({{{label14}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{15}}}|{{{15}}}]]|[[Phabricator:T{{{15}}}|T{{{15}}}]]}}{{#if:| ({{{label15}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{16}}}|{{{16}}}]]|[[Phabricator:T{{{16}}}|T{{{16}}}]]}}{{#if:| ({{{label16}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{17}}}|{{{17}}}]]|[[Phabricator:T{{{17}}}|T{{{17}}}]]}}{{#if:| ({{{label17}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{18}}}|{{{18}}}]]|[[Phabricator:T{{{18}}}|T{{{18}}}]]}}{{#if:| ({{{label18}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{19}}}|{{{19}}}]]|[[Phabricator:T{{{19}}}|T{{{19}}}]]}}{{#if:| ({{{label19}}})}}}}{{#if:|{{#iferror:{{#expr:1}}

 |{{#switch:{{{1}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}
 |{{#switch:{{{2}}}
    |fig= 
    |en= 
    |em= 
    |thin= 
    |hair= 
    | 
  }}

}}• {{#ifeq:T|T|[[Phabricator:{{{20}}}|{{{20}}}]]|[[Phabricator:T{{{20}}}|T{{{20}}}]]}}{{#if:| ({{{label20}}})}}}}{{#if:| ({{{label}}})}}.

Other author–date citation templates

There are several templates used to create short citations; they differ in the use and placement of parentheses, in the separator before the page or location, and in whether a terminal full stop (period) is present:

In-text templates
Templates Aliases Example
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citation no brackets|Harvard citation no brackets]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvnb|harvnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} Smith 2006, p. 25
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citation|Harvard citation]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harv|harv]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} (Smith 2006, p. 25)
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citation text|Harvard citation text]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvtxt|harvtxt]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} [[#CITEREFSmith2006|Smith (2006{{#if:25 )}}
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citation with colon text|Harvard citation with colon text]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcoltxt|harvcoltxt]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} [[#CITEREFSmith2006|Smith (2006{{#if:25 )}}
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citation with colon|Harvard citation with colon]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcol|harvcol]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} (Smith 2006:25)
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citation with colon no brackets|Harvard citation with colon no brackets]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcolnb|harvcolnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} Smith 2006:25
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citations|Harvard citations]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvs|harvs]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} nb|yes|{{#ifeq:|nb|yes|}}}}|yes yes (}}}}{{
#if:Smith
{{
    #if: 
[[ |{{
       #if: John
John
     }}Smith]]
{{
       #if: John
John
     }}Smith
  }}{{
    #if: 
{{
       #if: 
, yes|and|&}}
     }}{{
       #if: 
[[ | ]]
     }}{{
       #if: 
yes|, and | & }}{{
          #if: 
[[ | ]]
        }}{{
          #if:
et al.
        }}
     }}
  }}
{{
    #if: 
{{
       #if: 
[[ |{{
          #if: 
,
        }}]]
{{
          #if: 
,
        }}
     }}{{
       #if: 
{{
          #if: 
; &
        }}{{
          #if: 
[[ | ]]
        }}{{
          #if: 
& {{
             #if: 
[[ | ]]
           }}{{
             #if:
et al.
           }}
        }}
     }}, ed{{#if:|s}}.
  }}

}} {{#ifeq:{{#ifeq:|nb|yes|{{#ifeq:|nb|yes|}}}}|yes||{{#ifeq:yes|yes|(| }}}}2006{{#if:|,  }}{{#if:2007

, 2007|}}{{#if:|,  }}{{#if: , [[#{{__#if:__|{{#ifeq:|none||}}__|CITEREF{{#if:Smith__|Smith__|__}}__}}|]]|}}{{#if:|,  }}{{#if: , [[#{{__#if:__|{{#ifeq:|none||}}__|CITEREF{{#if:Smith__|Smith__|__}}__}}|]]|}}{{#if:|,  }}{{#if: , [[#{{__#if:__|{{#ifeq:|none||}}__|CITEREF{{#if:Smith__|Smith__|__}}__}}|]]|}}{{#if:|,  }}{{#if: , [[#{{__#if:__|{{#ifeq:|none||}}__|CITEREF{{#if:Smith__|Smith__|__}}__}}|]]|}}{{#if:|,  }}{{#ifeq:{{#ifeq:|nb|yes|{{#ifeq:|nb|yes|}}}}|yes )}} (and many other forms).
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvard citation year brackets|Harvard citation year brackets]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvp|harvp]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} Smith (2006), p. 25
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Harvc|Harvc]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Citec|Citec]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} (Cite several contributions/chapters in a larger work)
Article text.<ref group="" name="FOOTNOTEStoutJohnson1957">Stout & Johnson 1957.</ref> More article text.<ref group="" name="FOOTNOTEWadleigh1957">Wadleigh 1957.</ref> Even more article text.<ref>Stefferud 1957</ref>

References

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

Sources

{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Shortened footnote template|Shortened footnote template]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} Article text.<ref group="" name="FOOTNOTESmith200625">Smith 2006, p. 25.</ref>
{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Sfnp|Sfnp]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} Article text.<ref group="" name="FOOTNOTESmith200625">Smith (2006), p. 25.</ref>
{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Sfnm|Sfnm]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} Article text.<ref group="" name="FOOTNOTESmithJonesBrown202015Smith200650">Smith, Jones & Brown 2020, p. 15; Smith 2006, p. 50.</ref>
{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
{{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:Sfnmp|Sfnmp]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} Article text.<ref group="" name="FOOTNOTESmithJonesBrown202015Smith200650">Smith, Jones & Brown (2020), p. 15; Smith (2006), p. 50.</ref>
{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

Full citations can be created manually or by templates:

  • Citation Style 1 templates
  • {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:citation|citation]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}

All of these templates have the same parameters and basic functionality. This page describes all of them except the parameters of {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfnm|sfnm]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} and {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvs|harvs]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}; please see their documentation pages. Editors editing one of these templates are requested to make parallel changes to the other versions.

Applications of these templates

Shortened footnote: {{sfn}} or {{harvnb}}

Template {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvnb|harvnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} inside a {{#switch:o

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} span can be used to create a shortened footnote that is linked to the full citation at the bottom of the article. Template {{[[:{{ safesubst:#if:  | {{{sister}}}: }}{{ safesubst:#if:  | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if:  | |{{{2}}} }}{{ safesubst:#if:  | |{{{3}}} }}{{ safesubst:#if:  | |{{{4}}} }}{{ safesubst:#if:  | |{{{5}}} }}{{ safesubst:#if:  | |{{{6}}} }}{{ safesubst:#if:  | |{{{7}}} }}{{ safesubst:#if:  | |{{{8}}} }}{{ safesubst:#if:  | |{{{9}}} }}}} (without the use of {{#switch:o
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}) has the same effect, automatically adds a period (full stop) after the page number, and combines identical footnotes automatically.
{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Article text.{{sfn|Smith|2007|p=25}} More article text.{{sfn|Smith|2007|p=25}} Still more article text.{{sfn|Smith|2007|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2007 | title = Smith's Book }} |

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Smith|2007|p=25}} More article text.{{sfn|Smith|2007|p=25}} Still more article text.{{sfn|Smith|2007|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2007 | title = Smith's Book }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.{{sfn|Smith|2007|p=25}} More article text.{{sfn|Smith|2007|p=25}} Still more article text.{{sfn|Smith|2007|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2007 | title = Smith's Book }} </syntaxhighlight> pre =
Article text.{{sfn|Smith|2007|p=25}}
More article text.{{sfn|Smith|2007|p=25}}
Still more article text.{{sfn|Smith|2007|p=26}}

==Notes==
{{reflist}}

==References==
* {{cite book
 | last = Smith | first = John
 | date = 2007
 | title = Smith's Book
}}
#default = < style=""> Article text.{{sfn|Smith|2007|p=25}} More article text.{{sfn|Smith|2007|p=25}} Still more article text.{{sfn|Smith|2007|p=26}} ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2007 | title = Smith's Book }} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith200725">Smith 2007, p. 25.</ref> More article text.<ref group="" name="FOOTNOTESmith200725">Smith 2007, p. 25.</ref> Still more article text.<ref group="" name="FOOTNOTESmith200726">Smith 2007, p. 26.</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references/>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, John (2007). Smith's Book.

}}{{#if: Article text.<ref name=Smith2008p25>{{harvnb|Smith|2008|p=25}}.</ref> More article text.<ref name=Smith2008p25/> Still more article text.<ref>{{harvnb|Smith|2008|p=26}}.</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2008 | title = Smith's Book }} |

padding:;}} "|
{{#switch:
none = Article text.<ref name=Smith2008p25>{{harvnb|Smith|2008|p=25}}.</ref> More article text.<ref name=Smith2008p25/> Still more article text.<ref>{{harvnb|Smith|2008|p=26}}.</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2008 | title = Smith's Book }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.<ref name=Smith2008p25>{{harvnb|Smith|2008|p=25}}.</ref> More article text.<ref name=Smith2008p25/> Still more article text.<ref>{{harvnb|Smith|2008|p=26}}.</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2008 | title = Smith's Book }} </syntaxhighlight> pre =
Article text.<ref name=Smith2008p25>{{harvnb|Smith|2008|p=25}}.</ref>
More article text.<ref name=Smith2008p25/>
Still more article text.<ref>{{harvnb|Smith|2008|p=26}}.</ref>

==Notes==
{{reflist}}

==References==
* {{cite book
 | last = Smith | first = John
 | date = 2008
 | title = Smith's Book
}}
#default = < style=""> Article text.<ref name=Smith2008p25>{{harvnb|Smith|2008|p=25}}.</ref> More article text.<ref name=Smith2008p25/> Still more article text.<ref>{{harvnb|Smith|2008|p=26}}.</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | date = 2008 | title = Smith's Book }} </> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

In text attribution: {{harvtxt}}

Template {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvtxt|harvtxt]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} can be used to link an in-text attribution to the full citation at the bottom of the page.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:According to {{harvtxt|Smith|2009|p=25}} ... ==References== * {{citation | last = Smith | first = John | date = 2009 | title = Smith's Book }} |

padding:;}} "|
{{#switch:
none = According to {{harvtxt|Smith|2009|p=25}} ... ==References== * {{citation | last = Smith | first = John | date = 2009 | title = Smith's Book }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">According to {{harvtxt|Smith|2009|p=25}} ... ==References== * {{citation | last = Smith | first = John | date = 2009 | title = Smith's Book }} </syntaxhighlight> pre =
According to {{harvtxt|Smith|2009|p=25}} ...

==References==
* {{citation
 | last = Smith | first = John
 | date = 2009
 | title = Smith's Book
}}
#default = < style="">According to {{harvtxt|Smith|2009|p=25}} ... ==References== * {{citation | last = Smith | first = John | date = 2009 | title = Smith's Book }} </> }} padding:;}} "|

According to Smith (2009{{#if:25||)}}, p. 25{{#if:25|)}} ... {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, John (2009), Smith's Book

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Bundled citation: {{harvnb}} or {{sfnm}}

Template {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvnb|harvnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} can be used to bundle citations. {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfnm|sfnm]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} also produces bundled citations.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Article text ({{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}). |

padding:;}} "|
{{#switch:
none = Article text ({{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}). syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text ({{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}). </syntaxhighlight> pre =
Article text ({{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}).
#default = < style=""> Article text ({{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}). </> }} padding:;}} "|

Article text (Smith 2010, p. 25; Jones 2010).

}}{{#if: Article text.<ref>{{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}</ref> |

padding:;}} "|
{{#switch:
none = Article text.<ref>{{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}</ref> syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.<ref>{{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}</ref> </syntaxhighlight> pre =
Article text.<ref>{{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}</ref>
#default = < style=""> Article text.<ref>{{harvnb|Smith|2010|p=25}}; {{harvnb|Jones|2010}}</ref> </> }} padding:;}} "|

Article text.<ref>Smith 2010, p. 25; Jones 2010</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references />

}}{{#if: Article text.{{sfnm|1a1=Smith|1y=2010|1p=25|2a1=Jones|2y=2010}} |

padding:;}} "|
{{#switch:
none = Article text.{{sfnm|1a1=Smith|1y=2010|1p=25|2a1=Jones|2y=2010}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.{{sfnm|1a1=Smith|1y=2010|1p=25|2a1=Jones|2y=2010}} </syntaxhighlight> pre =
Article text.{{sfnm|1a1=Smith|1y=2010|1p=25|2a1=Jones|2y=2010}}
#default = < style=""> Article text.{{sfnm|1a1=Smith|1y=2010|1p=25|2a1=Jones|2y=2010}} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith201025Jones2010">Smith 2010, p. 25; Jones 2010.</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}} <references />

}}{{#if: ==References== * {{cite book |last = Smith |first = John |date = 2010 |title = Smith's book}} * {{cite book |last = Jones |first = Mary |date = 2010 |title = Jones' book}} |

padding:;}} "|
{{#switch:
none = ==References== * {{cite book |last = Smith |first = John |date = 2010 |title = Smith's book}} * {{cite book |last = Jones |first = Mary |date = 2010 |title = Jones' book}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> ==References== * {{cite book |last = Smith |first = John |date = 2010 |title = Smith's book}} * {{cite book |last = Jones |first = Mary |date = 2010 |title = Jones' book}} </syntaxhighlight> pre =
==References==
* {{cite book |last = Smith |first = John |date = 2010 |title = Smith's book}}
* {{cite book |last = Jones |first = Mary |date = 2010 |title = Jones' book}}
#default = < style=""> ==References== * {{cite book |last = Smith |first = John |date = 2010 |title = Smith's book}} * {{cite book |last = Jones |first = Mary |date = 2010 |title = Jones' book}} </> }} padding:;}} "|

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, John (2010). Smith's book.
  • Jones, Mary (2010). Jones' book.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Note that {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} is inappropriate for bundled citations; use {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvnb|harvnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} or {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfnm|sfnm]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}.

Harvard citation: {{harv}}

Template {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harv|harv]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} creates a parenthetical reference with a link to the full citation. It should only be used within footnotes or on internal pages. Use of inline parenthetical referencing within the body text of articles has been deprecated by the Wikipedia community since 2022. This usage has not been deprecated within internal pages such as Wikipedia documentation, user pages, or wikiprojects, though there is rarely a practical use for it instead of just using normal citation footnotes.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:Article text.<ref>{{harv|Smith|2006|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | title = Smith's book | date = 2006 }}|

padding:;}} "|
{{#switch:
none = Article text.<ref>{{harv|Smith|2006|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | title = Smith's book | date = 2006 }} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Article text.<ref>{{harv|Smith|2006|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | title = Smith's book | date = 2006 }}</syntaxhighlight> pre =
Article text.<ref>{{harv|Smith|2006|p=25}}</ref>

==Notes==
{{reflist}}

==References==
* {{cite book
 | last = Smith | first = John
 | title = Smith's book
 | date = 2006
}}
#default = < style="">Article text.<ref>{{harv|Smith|2006|p=25}}</ref> ==Notes== {{reflist}} ==References== * {{cite book | last = Smith | first = John | title = Smith's book | date = 2006 }}</> }} padding:;}} "|

Article text.<ref>(Smith 2006, p. 25)</ref>

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Smith, John (2006). Smith's book.

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

More exotic Harvard citations: {{harvid}} or {{harvs}}

More exotic Harvard citations can be constructed using the {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvs|harvs]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} template, such as multiple papers by the same author, using both the first and last names, links to articles about the author, and others. Any kind of unusual link can also be constructed using the idiom [[#{{harvid|parameters}}|link name]]. ({{citeref}} is a wrapper for {{harvid}} making it easier to consistently create such internal links in small superscript[n] or plain-text label styles.)

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: The theory was developed by {{harvs|txt|first=F. J.|last=Murray|author1-link=F. J. Murray|first2=J.|last2=von Neumann|author2-link=John von Neumann|year=1936|year2=1937|year3=1943}}. |

padding:;}} "|
{{#switch:
none = The theory was developed by {{harvs|txt|first=F. J.|last=Murray|author1-link=F. J. Murray|first2=J.|last2=von Neumann|author2-link=John von Neumann|year=1936|year2=1937|year3=1943}}. syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> The theory was developed by {{harvs|txt|first=F. J.|last=Murray|author1-link=F. J. Murray|first2=J.|last2=von Neumann|author2-link=John von Neumann|year=1936|year2=1937|year3=1943}}. </syntaxhighlight> pre =
The theory was developed by {{harvs|txt|first=F. J.|last=Murray|author1-link=F. J. Murray|first2=J.|last2=von Neumann|author2-link=John von Neumann|year=1936|year2=1937|year3=1943}}.
#default = < style=""> The theory was developed by {{harvs|txt|first=F. J.|last=Murray|author1-link=F. J. Murray|first2=J.|last2=von Neumann|author2-link=John von Neumann|year=1936|year2=1937|year3=1943}}. </> }} padding:;}} "|

The theory was developed by {{#ifeq:{{#ifeq:txt|nb|yes|{{#ifeq:|nb|yes|}}}}|yes||{{#ifeq:{{#ifeq:txt|txt|yes|{{#ifeq:|txt|yes|}}}}|yes||(}}}}{{

#if:Murray
{{
    #if: F. J. Murray
{{ #if: F. J. F. J. }}Murray {{
       #if: F. J.
F. J.
     }}Murray
  }}{{
    #if: von Neumann
{{
       #if: 
, txt|yes|{{#ifeq:|txt|yes|}}}}|yes|and|&}}
     }}{{
       #if: John von Neumann
J. von Neumann J. von Neumann
     }}{{
       #if: 
txt|yes|{{#ifeq:|txt|yes|}}}}|yes|, and | & }}{{
          #if: 
[[ | ]]
        }}{{
          #if:
et al.
        }}
     }}
  }}
{{
    #if: 
{{
       #if: 
[[ |{{
          #if: 
,
        }}]]
{{
          #if: 
,
        }}
     }}{{
       #if: 
{{
          #if: 
; &
        }}{{
          #if: 
[[ | ]]
        }}{{
          #if: 
& {{
             #if: 
[[ | ]]
           }}{{
             #if:
et al.
           }}
        }}
     }}, ed{{#if:|s}}.
  }}

}} {{#ifeq:{{#ifeq:txt|nb|yes|{{#ifeq:|nb|yes|}}}}|yes||{{#ifeq:{{#ifeq:txt|txt|yes|{{#ifeq:|txt|yes|}}}}|yes|(| }}}}1936{{#if:|,  }}{{#if:1937

, 1937|}}{{#if:|,  }}{{#if:1943 , 1943|}}{{#if:|,  }}{{#if: , [[#{{__#if:__|{{#ifeq:|none||}}__|CITEREF{{#if:Murray__|Murrayvon_Neumann__|__}}__}}|]]|}}{{#if:|,  }}{{#if: , [[#{{__#if:__|{{#ifeq:|none||}}__|CITEREF{{#if:Murray__|Murrayvon_Neumann__|__}}__}}|]]|}}{{#if:|,  }}{{#if: , [[#{{__#if:__|{{#ifeq:|none||}}__|CITEREF{{#if:Murray__|Murrayvon_Neumann__|__}}__}}|]]|}}{{#if:|,  }}{{#ifeq:{{#ifeq:txt|nb|yes|{{#ifeq:|nb|yes|}}}}|yes )}}.

}}{{#if: The theory was developed by [[F. J. Murray]] and [[John von Neumann|J. von Neumann]] ([[#{{harvid|Murray|von Neumann|1936}}|1936]],[[#{{harvid|Murray|von Neumann|1937}}|1937]],[[#{{harvid|Murray|von Neumann|1943}}|1943]]). |

padding:;}} "|
{{#switch:
none = The theory was developed by [[F. J. Murray]] and [[John von Neumann|J. von Neumann]] ([[#{{harvid|Murray|von Neumann|1936}}|1936]],[[#{{harvid|Murray|von Neumann|1937}}|1937]],[[#{{harvid|Murray|von Neumann|1943}}|1943]]). syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> The theory was developed by [[F. J. Murray]] and [[John von Neumann|J. von Neumann]] ([[#{{harvid|Murray|von Neumann|1936}}|1936]],[[#{{harvid|Murray|von Neumann|1937}}|1937]],[[#{{harvid|Murray|von Neumann|1943}}|1943]]). </syntaxhighlight> pre =
The theory was developed by [[F. J. Murray]] and [[John von Neumann|J. von Neumann]] ([[#{{harvid|Murray|von Neumann|1936}}|1936]],[[#{{harvid|Murray|von Neumann|1937}}|1937]],[[#{{harvid|Murray|von Neumann|1943}}|1943]]).
#default = < style=""> The theory was developed by [[F. J. Murray]] and [[John von Neumann|J. von Neumann]] ([[#{{harvid|Murray|von Neumann|1936}}|1936]],[[#{{harvid|Murray|von Neumann|1937}}|1937]],[[#{{harvid|Murray|von Neumann|1943}}|1943]]). </> }} padding:;}} "|

The theory was developed by F. J. Murray and J. von Neumann (1936, 1937, 1943).

}}{{#if: == References == * {{citation | last1 = Murray | first1 = F. J. | date = 1936 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1937 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1943 | ...}} |

padding:;}} "|
{{#switch:
none = == References == * {{citation | last1 = Murray | first1 = F. J. | date = 1936 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1937 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1943 | ...}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> == References == * {{citation | last1 = Murray | first1 = F. J. | date = 1936 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1937 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1943 | ...}} </syntaxhighlight> pre =
== References ==
* {{citation | last1 = Murray | first1 = F. J. | date = 1936 | ...}}
* {{citation | last1 = Murray | first1 = F. J. | date = 1937 | ...}}
* {{citation | last1 = Murray | first1 = F. J. | date = 1943 | ...}}
#default = < style=""> == References == * {{citation | last1 = Murray | first1 = F. J. | date = 1936 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1937 | ...}} * {{citation | last1 = Murray | first1 = F. J. | date = 1943 | ...}} </> }} padding:;}} "|

{{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
References

}}

  • Murray, F. J.; von Neumann, John (1936), Mathematics Paper
  • Murray, F. J.; von Neumann, John (1937), Another Mathematics Paper
  • Murray, F. J.; von Neumann, John (1943), Yet Another Mathematics Paper

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Some articles use this idiom [[#CITEREFid | link name ]]. See notes on implementation details below.

Variations

Using colon format: {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcol|harvcol]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcolnb|harvcolnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcoltxt|harvcoltxt]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}

Templates {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcol|harvcol]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcolnb|harvcolnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}, and {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvcoltxt|harvcoltxt]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} use a colon to indicate the page number(s) or location.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:{{harvcol|Smith|2011|p=25}}|

padding:;}} "|
{{#switch:
none = {{harvcol|Smith|2011|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">{{harvcol|Smith|2011|p=25}}</syntaxhighlight> pre =
{{harvcol|Smith|2011|p=25}}
#default = < style="">{{harvcol|Smith|2011|p=25}}</> }} padding:;}} "|

(Smith 2011:25)

}}{{#if:{{harvcolnb|Smith|2011|p=25}}|

padding:;}} "|
{{#switch:
none = {{harvcolnb|Smith|2011|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">{{harvcolnb|Smith|2011|p=25}}</syntaxhighlight> pre =
{{harvcolnb|Smith|2011|p=25}}
#default = < style="">{{harvcolnb|Smith|2011|p=25}}</> }} padding:;}} "|

}}{{#if:{{harvcoltxt|Smith|2011|p=25}}|

padding:;}} "|
{{#switch:
none = {{harvcoltxt|Smith|2011|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">{{harvcoltxt|Smith|2011|p=25}}</syntaxhighlight> pre =
{{harvcoltxt|Smith|2011|p=25}}
#default = < style="">{{harvcoltxt|Smith|2011|p=25}}</> }} padding:;}} "|

Smith (2011{{#if:25||)}}:25{{#if:25|)}}

}}{{#if:{{harvcol|Smith|2011|p=25–26}}|

padding:;}} "|
{{#switch:
none = {{harvcol|Smith|2011|p=25–26}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">{{harvcol|Smith|2011|p=25–26}}</syntaxhighlight> pre =
{{harvcol|Smith|2011|p=25–26}}
#default = < style="">{{harvcol|Smith|2011|p=25–26}}</> }} padding:;}} "|

(Smith 2011:25–26)

}}{{#if:{{harvcol|Smith|2011|loc=ch. 3}}|

padding:;}} "|
{{#switch:
none = {{harvcol|Smith|2011|loc=ch. 3}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">{{harvcol|Smith|2011|loc=ch. 3}}</syntaxhighlight> pre =
{{harvcol|Smith|2011|loc=ch. 3}}
#default = < style="">{{harvcol|Smith|2011|loc=ch. 3}}</> }} padding:;}} "|

(Smith 2011:ch. 3)

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Parentheses around the year: {{sfnp}} and {{harvp}}

Template {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfnp|sfnp]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} puts parentheses around the year. Compare the two examples.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if: Article text.{{sfnp|Smith|2011}} == Notes == {{reflist}} |

padding:;}} "|
{{#switch:
none = Article text.{{sfnp|Smith|2011}} == Notes == {{reflist}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.{{sfnp|Smith|2011}} == Notes == {{reflist}} </syntaxhighlight> pre =
Article text.{{sfnp|Smith|2011}}
== Notes ==
{{reflist}}
#default = < style=""> Article text.{{sfnp|Smith|2011}} == Notes == {{reflist}} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith2011">Smith (2011).</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if: Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} |

padding:;}} "|
{{#switch:
none = Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"> Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} </syntaxhighlight> pre =
Article text.{{sfn|Smith|2011}}
== Notes ==
{{reflist}}
#default = < style=""> Article text.{{sfn|Smith|2011}} == Notes == {{reflist}} </> }} padding:;}} "|

Article text.<ref group="" name="FOOTNOTESmith2011">Smith 2011.</ref> {{safesubst:#switch:

 {{safesubst:#if: 
{{{demospace}}} main other
   }} 
 }}
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. other #default =
Notes

}}

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
style="column-width: calc( 0.9 * {{{1}}} );"}} style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references>
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Similarly, in order to mimic Citation Style 1 citations, template {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvp|harvp]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} puts parentheses around the year.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}{{#if:{{harvp|Smith|2011|p=25}}|

padding:;}} "|
{{#switch:
none = {{harvp|Smith|2011|p=25}} syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">{{harvp|Smith|2011|p=25}}</syntaxhighlight> pre =
{{harvp|Smith|2011|p=25}}
#default = < style="">{{harvp|Smith|2011|p=25}}</> }} padding:;}} "|

Smith (2011), p. 25

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}{{#if:|

padding:;}} "|
{{#switch:
none = syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> pre =

#default = < style=""></> }} padding:;}} "|

}}

Implementation notes

These templates use two elements: a wikilink in the body of the article, and an anchor in the reference section of the article. Clicking on the wikilink repositions the page at the anchor.

Citation template anchor

The most common citation templates are Citation Style 1 or Citation Style 2. By default, Module:Citation/CS1 creates an anchor {{#switch:o

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|a|a}}{{#if:name="CITEREF"| name="CITEREF"}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:a|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:a|!--|-->|</a>}}
}} followed by the concatenation of the following parameters:
  • last or last1 or surname or surname1 or author-last or author-last1 or author1-last or author-surname or author-surname1 or author1-surname or author or author1 or authors,
  • last2 or surname2 or author-last2 or author2-last or author-surname2 or author2-surname or author2,
  • last3 or surname3 or author-last3 or author3-last or author-surname3 or author3-surname or author3,
  • last4 or surname4 or author-last4 or author4-last or author-surname4 or author4-surname or author4,
  • editor-last or editor-last1 or editor1-last or editor-surname or editor-surname1 or editor1-surname or editor1 or editor,
  • editor-last2 or editor2-last or editor-surname2 or editor2-surname or editor2,
  • editor-last3 or editor3-last or editor-surname3 or editor3-surname or editor3,
  • editor-last4 or editor4-last or editor-surname4 or editor4-surname or editor4,
  • date, year

This covers the most common templates. Information about all of the templates is available at Wikipedia:Citation templates and reference anchors.

Use of the date parameter in place of the year parameter in citation templates is preferred.

The Harvard citation templates create a wikilink to the anchor. For example {{Harv|Smith|2006|p=25}} produces the link <syntaxhighlight lang="text" class="" style="" inline="1">#CITEREFSmith2006</syntaxhighlight> and {{Citation|last=Smith|first=John|date=27 January 2006|title=My Life}} produces the anchor <syntaxhighlight lang="text" class="" style="" inline="1">CITEREFSmith2006</syntaxhighlight>.

Using CITEREF directly

A few articles create a custom ID using <syntaxhighlight lang="text" class="" style="" inline="1">CITEREF</syntaxhighlight>, either in place of the Harvard citation template (e.g. [[#CITEREFSmith2006|(2006)]]) or as a value for |{{SAFESUBST:#if:ref|ref=}} in the citation template. A custom ID must follow these rules:

  • Names are case-sensitive. Please do not use raNdOM capitalization.
  • Names must not be purely numeric; the software will accept something like ":31337" (which is punctuation plus a number), but it will ignore "31337" (purely numeric).
  • Names should have semantic value, so that they can be more easily distinguished from each other by human editors who are looking at the wikitext. This means that ref names like "Nguyen 2010" are preferred to names like ":31337".
  • Names must be unique. You may not use the same name to define different groups or footnotes. Try to avoid picking a name that someone else is likely to choose for a new citation, such as ":0" or "NYT".
  • Please consider keeping reference names short, simple, and restricted to the standard English alphabet and numerals. If spaces are used, the following technical restrictions become relevant:
    • Quotation marks are preferred but optional if the only characters used are letters A–Z, a–z, digits 0–9, and the symbols !$%&()*,-.:;<@[]^_`{|}~. That is, all printable ASCII characters except #"'/=>?\ and space.
    • Inclusion of any other characters, including spaces, requires that the reference name be enclosed in quotes; for example, name="John Smith". But quote-enclosed reference names may not include a less-than sign (<) or a double straight quote symbol ("), which may, however, be included by escaping as &lt; and &quot; respectively.{{#if:
  • If CITEREF is used, then spaces in the |{{SAFESUBST:#if:ref|ref=}} field must be replaced with underscores|
  • If CITEREF is used, then spaces in the |{{SAFESUBST:#if:ref|ref=}} field must be replaced with underscores}}
    • The quote marks must be the standard, straight, double quotation marks ("); curly or other quotes will be parsed as part of the reference name.
  • You may optionally provide reference names even when the reference name is not required. This makes later re-use of the sourced reference easier.

Examples:

Where cite_name is a name such as the publisher.

To avoid the sometimes difficult to remember syntax for links to CITEREF anchors, {{citeref}} can be used to create internal wikilinks with either small superscript-style labels (like this[n]) or plain free-text labels to such anchors. It can be used inside of other citations.

Note that the <syntaxhighlight lang="text" class="" style="" inline="1">CITEREF</syntaxhighlight> prefix is necessary for the reference tooltips gadget (MediaWiki:Gadget-ReferenceTooltips.js) to detect that a link goes to a citation.

Template {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} creates a named footnote, so that identical footnotes are combined automatically. The footnote name begins with <syntaxhighlight lang="text" class="" style="" inline="1">FOOTNOTE</syntaxhighlight> followed by a concatenation of the arguments to {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:sfn|sfn]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}}. E.g.: this template call {{sfn|Smith|2006|p=26}} should have exactly the same functionality as {{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:name="FOOTNOTESmith200626"| name="FOOTNOTESmith200626"}}
}}{{#switch:pair
 |c|close = {{Harvnb}}
 |e|empty|s|single|v|void =  />
 |o|open = >{{Harvnb}}
 |p|pair = {{#ifeq:ref|!--||>}}{{Harvnb}}
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} which, in turn, has the same functionality as {{#switch:pair
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:name="FOOTNOTESmith200626"| name="FOOTNOTESmith200626"}}
}}{{#switch:pair
 |c|close = [[#CITEREFSmith2006|Smith (2006)]], p. 26
 |e|empty|s|single|v|void =  />
 |o|open = >[[#CITEREFSmith2006|Smith (2006)]], p. 26
 |p|pair = {{#ifeq:ref|!--||>}}[[#CITEREFSmith2006|Smith (2006)]], p. 26
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}.

The ref name becomes more complicated when the page (p) parameter includes a URL, e.g. {{sfn|Joyce|1903|p=213}}, which, once defined, can be called by {{#switch:empty

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:name="FOOTNOTEJoyce1903[httpsarchiveorgdetailsaconcisehistory00joycgoogpagen226 213]"| name="FOOTNOTEJoyce1903[httpsarchiveorgdetailsaconcisehistory00joycgoogpagen226 213]"}}
}}{{#switch:empty
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:empty
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}. The "p=" and the characters |,:,.,/,?,=; are therefore stripped out of the URL. The content of the loc parameter is similarly appended after this.

The call to {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Template:harvnb|harvnb]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}{{ safesubst:#if: | |{{{4}}} }}{{ safesubst:#if: | |{{{5}}} }}{{ safesubst:#if: | |{{{6}}} }}{{ safesubst:#if: | |{{{7}}} }}{{ safesubst:#if: | |{{{8}}} }}{{ safesubst:#if: | |{{{9}}} }}}} has been subst'ed for quicker load times.

Tracking categories

{{#if:|{{{name}}}|Category:Pages using sfn with unknown parameters}} (0)