Template:Harvard citation is permanently
protected from editing because it is a
heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's
documentation to add usage notes or
categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template was considered for deletion on 2012 January 24. The result of the discussion was " WP:SNOW keep". |
Given the commonality in markup for the author-date templates, I have developed a meta-template at {{ Harvard citation/core}}. See Template talk:Sfn#Core update. ---— Gadget850 (Ed) talk 01:40, 9 April 2012 (UTC)
Done ---— Gadget850 (Ed) talk 16:46, 28 April 2012 (UTC)
Please see Module_talk:Footnotes#consolidating_and_abandoning_Template:Harvard_citation/core.
— Trappist the monk ( talk) 16:08, 8 August 2018 (UTC)
Laws usually get referenced with
So everytime, we have a slash inside; not a whitespace.
Would it be possible to set a parameter that specifies the delimiter (just like ps=...)? Short footnote references to laws look strange if they have a whitespace inside.
Thank you in advance! 17:22, 28 February 2019 (UTC) — Preceding
unsigned comment added by
C-Kobold (
talk •
contribs)
Concerning examples: I am currently working on User:C-Kobold/EU parliament national election systems, where I need a lot of short references to laws. C-Kobold ( talk) 20:39, 28 February 2019 (UTC)
If the harv-template is not suited for this purpose, which template can I use instead? C-Kobold ( talk) 20:42, 28 February 2019 (UTC)
undoubtedly can be adapted to a special case like this." I suggest we continue this on your Talk page. ♦ J. Johnson (JJ) ( talk) 22:08, 28 February 2019 (UTC)
Not certain this is the proper forum, or whether the footnotes/cs1 module talk pages would be better. Please feel free to move this to the appropriate page.
Citations with work titles that display nested quote marks are rendered properly with a non-breaking thin space U+202F NARROW NO-BREAK SPACE. However it seems that this does not happen when the citation displays as a tooltip when a pointer hovers over the harvard citation link.
Body
Some wikitext.
[1]
Footnotes
-
^ (
Author 2024) .
References
Author (2024).
"Title with 'quotation'" (PDF). Journal (issue).
doi:
10.123/123asd. {{
cite journal}}
: |issue=
has extra text (
help); |last=
has generic name (
help); Check |doi=
value (
help); Invalid |ref=harv
(
help)
This is exhibited using Safari 12.1. 72.43.99.138 ( talk) 14:20, 7 May 2019 (UTC)
{{
cite journal}}
template to show this more clearly. cs1|2 uses css from
Module:Citation/CS1/styles.css to render the access icon for the doi link and to kern quote marks – cs1|2 does not use thin-space characters for kerning; the pdf icon is provided by
MediaWiki:Common.css.title=
attribute, which can contain only plain unstyled text, delimited either a pair of double quotes or a pair of apostrophes. This in turn means that if the tooltip contains double quotes, you need to use apostrophes as the delimiters, and vice versa. --
Redrose64 🌹 (
talk) 16:01, 7 May 2019 (UTC)
title=
attribute ignores trailing spaces. Cs1 css uses 0.2em for kerning, which is the width of
thin space. This is not rendered by the tooltip as the trailing whitespace is removed, and then the cs1 work=
title=
argument is rendered accordingly (in this case, in double quotes). I gather this maybe a minor issue, but technically it does not seem insurmountable. The culprit is in {{
tooltip}} and perhaps the associated module.
65.88.88.75 (
talk) 18:21, 7 May 2019 (UTC)
culprit is in {{ tooltip}}. This text has a tool tip. Nor do I think that the problem has anything to do with a
title
attribute. This text has a tool-tip. Notice how both of these <abbr>...</abbr>
and title=
tool tips have similar appearance but are distinctly different from the 'tool-tip' rendered by
mw:Reference_Tooltips.{{
tooltip}}
template until 18:21, 7 May 2019 (UTC). This template uses
the <abbr>...</abbr>
element, the documentation for which states The title
attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else.
- it is a therefore misuse of that element if it is used purely for the purpose of generating a tooltip. The documentation for {{
tooltip}}
cautions against this, several times. --
Redrose64 🌹 (
talk) 19:54, 7 May 2019 (UTC)
culprit is in {{ tooltip}}. And yes I know that I did not use it as an abbreviation. The point was to show that the style of a tool tip rendered using
<abbr>...</abbr>
and the style of a tool tip rendered using a title=
attribute differ markedly from the tool tips rendered by
mw:Reference_Tooltips.Following a cursory look at MediaWiki:Gadget-ReferenceTooltips.js it seems to me it may be more trouble to fix this than is worth. Several other pieces of extensively used code seem to be involved, but I don't have the time to hunt down exactly how the various CS1 arguments are parsed in order to display as they do. Thank you for your inputs anyway. 72.43.99.138 ( talk) 00:53, 8 May 2019 (UTC)
<a href="#cite_note-rv2001-1">
. When you hover over that link, the ReferenceTooltips gadget extracts the value of the href=
attribute, i.e. cite_note-rv2001-1
and examines the page HTML looking for another tag which has that value in its id=
attribute - this is the destination of that link. It finds a <li id="cite_note-rv2001-1">
tag. It then scans from the end of that tag until the closing tag that matches it (in this case, a </li>
tag), copying content to a string. Here it is: <span class="mw-cite-backlink"><b><a href="#cite_ref-rv2001_1-0">^</a></b></span> <span class="reference-text">Several biographies of Krishnamurti have been published, for example <a href="#CITEREFVernon2001">Vernon 2001</a>. Most biographies concentrate on his life rather than on his ideas.</span>
mw-cite-backlink
- in this case, it's the first <span>...</span>
and its contents. Then it draws a balloon at the mouse pointer position, into which it places the remaining portion of the string. --
Redrose64 🌹 (
talk) 20:24, 8 May 2019 (UTC)
<a href="#cite_note-hr1996-p49-5">
, currently superscripted with id #5. Hovering over that Harvard anchor will bring up the actual reference: <li><cite id="CITEREFRodrigues1996" class="citation journal">Rodrigues, Hillary (January 1996). <span class="cs1-lock-subscription" title="Paid subscription required"><a rel="nofollow" class="external text" href="http://search.ebscohost.com/login.aspx?direct=true&db=rfh&AN=ATLA0001893630">"J. Krishnamurti's 'religious mind<span class="cs1-kern-right">'</span>"</a></span>. <i>Religious Studies and Theology</i>. <b>15</b> (1): 40–55. <a href="/wiki/International_Standard_Serial_Number" title="International Standard Serial Number">ISSN</a> <a rel="nofollow" class="external text" href="https://www.worldcat.org/issn/0829-2922">0829-2922</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2016-01-10</span></span> – via <a href="/wiki/ATLASerials" title="ATLASerials">ATLASerials</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Religious+Studies+and+Theology&rft.atitle=J.+Krishnamurti%27s+%27religious+mind%27&rft.volume=15&rft.issue=1&rft.pages=40-55&rft.date=1996-01&rft.issn=0829-2922&rft.aulast=Rodrigues&rft.aufirst=Hillary&rft_id=http%3A%2F%2Fsearch.ebscohost.com%2Flogin.aspx%3Fdirect%3Dtrue%26db%3Drfh%26AN%3DATLA0001893630&rfr_id=info%3Asid%2Fen.wikipedia.org%3AChoiceless+awareness" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></li>
<span class="cs1-kern-right">
in that reference seems to be ignored.
108.182.15.109 (
talk) 00:49, 9 May 2019 (UTC)
class="cs1-kern-right"
does is act as a selector for this rule: .mw-parser-output .cs1-kern-right, .mw-parser-output .cs1-kern-wl-right {
padding-right: 0.2em;
}
.mw-parser-output
classes of the selectors, since they are added automatically by the style sheet parser). If the rule is wrong, go to
Module talk:Citation/CS1/styles.css, which redirects to
Help talk:Citation Style 1 (this being a central discussion page for most of the CS1 templates and modules), and raise the issue there.<span class="cs1-kern-right">...</span>
is added by
Module:Citation/CS1, which is one of the modules that underlie {{
cite journal}}
. If adding that span is incorrect, it is a matter for the talk page for the module concerned, i.e.
Module talk:Citation/CS1, which also redirects to
Help talk:Citation Style 1.{{
Harvard citation}}
works or how it is used. This is the
talk page for discussing improvements to the
template {{
Harvard citation}}
, nothing else. --
Redrose64 🌹 (
talk) 09:26, 9 May 2019 (UTC)
<span class="cs1-lock-subscription" title="static subscription text">
. In this case, the lock icon associated with the access requirement disappears. So there may be other considerations too (css was mentioned as one, which may be a relevant issue).
108.182.15.109 (
talk) 13:14, 9 May 2019 (UTC)|title=
) this will be rendered properly by
mw:Reference_Tooltips. But it will also show as extra space in the citation wikitext.
108.182.15.109 (
talk) 14:05, 9 May 2019 (UTC)
|quote=
when the quotation does not/should not include punctuation inside the quote marks. Note the pertinent CS1 template parameter |postscript=
is suppressed when |quote=
is used.
65.88.88.69 (
talk) 21:37, 9 May 2019 (UTC)Correct rendering
{{harv|Author|{{CURRENTYEAR}}}}
results in (
Author 2024)
1. Incorrect rendering [eg ref anchor uses journal issue month+year]
{{harv|Author|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
results in (
Author & April 2024)
2. Incorrect rendering [eg serial spanning 10 years, en dash rendered in html]
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
results in (
Author & 2014–2024)
3. Incorrect rendering [Author-Title (MLA) style]
{{harv|Author|Title}}
results in (
Author & Title)
Possibly a missing pipe?
72.43.99.138 (
talk) 13:44, 17 May 2019 (UTC)
{{harv|Author|{{LASTYEAR|10}}{{ndash}}{{CURRENTYEAR}}}}
results in (
Author 2014–2024)
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
results in (
Author 2014–2024)
{{harv|Author|2009{{ndash}}19}}
results in (
Author 2009–19)
{{harv|Author|2009–19}}
results in (
Author 2009–19)
{{
ndash}}
(not the html entity –
). These work:
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
→ (
Author 2014–2024){{cite book |author=Author |title=Serial spanning 10 years |date=2009–2019 |ref=harv}}
→ Author (2009–2019). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Invalid |ref=harv
(
help){{harv|Author|{{LASTYEAR|10}}{{ndash}}{{CURRENTYEAR}}a}}
→ (
Author 2014–2024a){{cite book |author=Author |title=Serial spanning 10 years |date=2009{{ndash}}2019a |ref=harv}}
→ Author (2009–2019a). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Invalid |ref=harv
(
help){{harv|Author|2009{{ndash}}19}}
→ (
Author 2009–19){{cite book |author=Author |title=Serial spanning 10 years |date=2009{{ndash}}19 |ref=harv}}
→ Author (2009–19). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Invalid |ref=harv
(
help)–
entity as a separator (
cs|2 documented here):
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
→ (
Author & 2014–2024){{cite book |author=Author |title=Serial spanning 10 years |date=2009–2019 |ref=harv}}
→ Author (2009–2019). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Check date values in: |date=
(
help); Invalid |ref=harv
(
help)|ref={{harvid|Author|Month Year}}
? (using literals to avoid confusion). Btw, the html-rendered en dash should be allowed in |ref=
as it does not emit metadata, correct?
98.0.246.242 (
talk) 16:42, 17 May 2019 (UTC)
{{harv|''The New York Times''|1895}}
→ (
The New York Times 1895){{cite news |title=Title |newspaper=Then New York Times |date=17 March 1895 |ref={{harvid|''The New York Times''|1895}}}}
→ "Title". Then New York Times. 17 March 1895.|ref=
is not made part of the citation's metadata.{{harv|Author|{{dash year|{{CURRENTYEAR}}}}}}
→ (
Author 2024–25){{CURRENTYEAR}}
or {{
LASTYEAR}}
be used. What would happen on 1 January? The reference will not magically alter its publication date, it will still have been published in 2019. --
Redrose64 🌹 (
talk) 15:54, 17 May 2019 (UTC)
{{LASTYEAR}}
and {{CURRENTYEAR}}
(along with the magic word {{CURRENTMONTHNAME}}
) were used in examples as variables, for illustration purposes. They should not be taken as parameter values.
98.0.246.242 (
talk) 16:29, 17 May 2019 (UTC)Please see the discussion at Module talk:Footnotes § broken harv link reporting where a broken harv-link reporting scheme is proposed.
— Trappist the monk ( talk) 17:46, 16 March 2020 (UTC)
Currently the page reads: "...typically used within <ref>...</ref> tags". This should be changed to reflect the deprecation of parenthical citation from September 2020. I propose changing the "typically" to "always". Mateussf ( talk) 03:37, 2 February 2021 (UTC)
The template Harv and its derivatives Harvnb and Sfn seem to always give errors in mobile view when the argument of the "last"-parameter contains an accented character. I have seen this with French and with Irish names. See examples in the citations of Antoine Hamilton and Claude de Mesmes, Comte d'Avaux. With many thanks and best regards, Johannes Schade ( talk) 09:55, 15 October 2023 (UTC)
Can we update the documentation to provide the situations where this template is most appropriate to use now that it has been deprecated for body text? Per recent discussions at Help talk:Shortened footnotes and Wikipedia talk:Manual of Style, the parenthetical citations generated by this template are still accepted within explanatory notes. Although {{ harvnb}} is more common, this template can be placed within ref tags as a shortened footnote. Are there other situations where {{ harv}} is commonly used and accepted on Wikipedia? Rjjiii ( talk) 05:16, 18 March 2024 (UTC)
Template:Harvard citation is permanently
protected from editing because it is a
heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's
documentation to add usage notes or
categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template was considered for deletion on 2012 January 24. The result of the discussion was " WP:SNOW keep". |
Given the commonality in markup for the author-date templates, I have developed a meta-template at {{ Harvard citation/core}}. See Template talk:Sfn#Core update. ---— Gadget850 (Ed) talk 01:40, 9 April 2012 (UTC)
Done ---— Gadget850 (Ed) talk 16:46, 28 April 2012 (UTC)
Please see Module_talk:Footnotes#consolidating_and_abandoning_Template:Harvard_citation/core.
— Trappist the monk ( talk) 16:08, 8 August 2018 (UTC)
Laws usually get referenced with
So everytime, we have a slash inside; not a whitespace.
Would it be possible to set a parameter that specifies the delimiter (just like ps=...)? Short footnote references to laws look strange if they have a whitespace inside.
Thank you in advance! 17:22, 28 February 2019 (UTC) — Preceding
unsigned comment added by
C-Kobold (
talk •
contribs)
Concerning examples: I am currently working on User:C-Kobold/EU parliament national election systems, where I need a lot of short references to laws. C-Kobold ( talk) 20:39, 28 February 2019 (UTC)
If the harv-template is not suited for this purpose, which template can I use instead? C-Kobold ( talk) 20:42, 28 February 2019 (UTC)
undoubtedly can be adapted to a special case like this." I suggest we continue this on your Talk page. ♦ J. Johnson (JJ) ( talk) 22:08, 28 February 2019 (UTC)
Not certain this is the proper forum, or whether the footnotes/cs1 module talk pages would be better. Please feel free to move this to the appropriate page.
Citations with work titles that display nested quote marks are rendered properly with a non-breaking thin space U+202F NARROW NO-BREAK SPACE. However it seems that this does not happen when the citation displays as a tooltip when a pointer hovers over the harvard citation link.
Body
Some wikitext.
[1]
Footnotes
-
^ (
Author 2024) .
References
Author (2024).
"Title with 'quotation'" (PDF). Journal (issue).
doi:
10.123/123asd. {{
cite journal}}
: |issue=
has extra text (
help); |last=
has generic name (
help); Check |doi=
value (
help); Invalid |ref=harv
(
help)
This is exhibited using Safari 12.1. 72.43.99.138 ( talk) 14:20, 7 May 2019 (UTC)
{{
cite journal}}
template to show this more clearly. cs1|2 uses css from
Module:Citation/CS1/styles.css to render the access icon for the doi link and to kern quote marks – cs1|2 does not use thin-space characters for kerning; the pdf icon is provided by
MediaWiki:Common.css.title=
attribute, which can contain only plain unstyled text, delimited either a pair of double quotes or a pair of apostrophes. This in turn means that if the tooltip contains double quotes, you need to use apostrophes as the delimiters, and vice versa. --
Redrose64 🌹 (
talk) 16:01, 7 May 2019 (UTC)
title=
attribute ignores trailing spaces. Cs1 css uses 0.2em for kerning, which is the width of
thin space. This is not rendered by the tooltip as the trailing whitespace is removed, and then the cs1 work=
title=
argument is rendered accordingly (in this case, in double quotes). I gather this maybe a minor issue, but technically it does not seem insurmountable. The culprit is in {{
tooltip}} and perhaps the associated module.
65.88.88.75 (
talk) 18:21, 7 May 2019 (UTC)
culprit is in {{ tooltip}}. This text has a tool tip. Nor do I think that the problem has anything to do with a
title
attribute. This text has a tool-tip. Notice how both of these <abbr>...</abbr>
and title=
tool tips have similar appearance but are distinctly different from the 'tool-tip' rendered by
mw:Reference_Tooltips.{{
tooltip}}
template until 18:21, 7 May 2019 (UTC). This template uses
the <abbr>...</abbr>
element, the documentation for which states The title
attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else.
- it is a therefore misuse of that element if it is used purely for the purpose of generating a tooltip. The documentation for {{
tooltip}}
cautions against this, several times. --
Redrose64 🌹 (
talk) 19:54, 7 May 2019 (UTC)
culprit is in {{ tooltip}}. And yes I know that I did not use it as an abbreviation. The point was to show that the style of a tool tip rendered using
<abbr>...</abbr>
and the style of a tool tip rendered using a title=
attribute differ markedly from the tool tips rendered by
mw:Reference_Tooltips.Following a cursory look at MediaWiki:Gadget-ReferenceTooltips.js it seems to me it may be more trouble to fix this than is worth. Several other pieces of extensively used code seem to be involved, but I don't have the time to hunt down exactly how the various CS1 arguments are parsed in order to display as they do. Thank you for your inputs anyway. 72.43.99.138 ( talk) 00:53, 8 May 2019 (UTC)
<a href="#cite_note-rv2001-1">
. When you hover over that link, the ReferenceTooltips gadget extracts the value of the href=
attribute, i.e. cite_note-rv2001-1
and examines the page HTML looking for another tag which has that value in its id=
attribute - this is the destination of that link. It finds a <li id="cite_note-rv2001-1">
tag. It then scans from the end of that tag until the closing tag that matches it (in this case, a </li>
tag), copying content to a string. Here it is: <span class="mw-cite-backlink"><b><a href="#cite_ref-rv2001_1-0">^</a></b></span> <span class="reference-text">Several biographies of Krishnamurti have been published, for example <a href="#CITEREFVernon2001">Vernon 2001</a>. Most biographies concentrate on his life rather than on his ideas.</span>
mw-cite-backlink
- in this case, it's the first <span>...</span>
and its contents. Then it draws a balloon at the mouse pointer position, into which it places the remaining portion of the string. --
Redrose64 🌹 (
talk) 20:24, 8 May 2019 (UTC)
<a href="#cite_note-hr1996-p49-5">
, currently superscripted with id #5. Hovering over that Harvard anchor will bring up the actual reference: <li><cite id="CITEREFRodrigues1996" class="citation journal">Rodrigues, Hillary (January 1996). <span class="cs1-lock-subscription" title="Paid subscription required"><a rel="nofollow" class="external text" href="http://search.ebscohost.com/login.aspx?direct=true&db=rfh&AN=ATLA0001893630">"J. Krishnamurti's 'religious mind<span class="cs1-kern-right">'</span>"</a></span>. <i>Religious Studies and Theology</i>. <b>15</b> (1): 40–55. <a href="/wiki/International_Standard_Serial_Number" title="International Standard Serial Number">ISSN</a> <a rel="nofollow" class="external text" href="https://www.worldcat.org/issn/0829-2922">0829-2922</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2016-01-10</span></span> – via <a href="/wiki/ATLASerials" title="ATLASerials">ATLASerials</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Religious+Studies+and+Theology&rft.atitle=J.+Krishnamurti%27s+%27religious+mind%27&rft.volume=15&rft.issue=1&rft.pages=40-55&rft.date=1996-01&rft.issn=0829-2922&rft.aulast=Rodrigues&rft.aufirst=Hillary&rft_id=http%3A%2F%2Fsearch.ebscohost.com%2Flogin.aspx%3Fdirect%3Dtrue%26db%3Drfh%26AN%3DATLA0001893630&rfr_id=info%3Asid%2Fen.wikipedia.org%3AChoiceless+awareness" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></li>
<span class="cs1-kern-right">
in that reference seems to be ignored.
108.182.15.109 (
talk) 00:49, 9 May 2019 (UTC)
class="cs1-kern-right"
does is act as a selector for this rule: .mw-parser-output .cs1-kern-right, .mw-parser-output .cs1-kern-wl-right {
padding-right: 0.2em;
}
.mw-parser-output
classes of the selectors, since they are added automatically by the style sheet parser). If the rule is wrong, go to
Module talk:Citation/CS1/styles.css, which redirects to
Help talk:Citation Style 1 (this being a central discussion page for most of the CS1 templates and modules), and raise the issue there.<span class="cs1-kern-right">...</span>
is added by
Module:Citation/CS1, which is one of the modules that underlie {{
cite journal}}
. If adding that span is incorrect, it is a matter for the talk page for the module concerned, i.e.
Module talk:Citation/CS1, which also redirects to
Help talk:Citation Style 1.{{
Harvard citation}}
works or how it is used. This is the
talk page for discussing improvements to the
template {{
Harvard citation}}
, nothing else. --
Redrose64 🌹 (
talk) 09:26, 9 May 2019 (UTC)
<span class="cs1-lock-subscription" title="static subscription text">
. In this case, the lock icon associated with the access requirement disappears. So there may be other considerations too (css was mentioned as one, which may be a relevant issue).
108.182.15.109 (
talk) 13:14, 9 May 2019 (UTC)|title=
) this will be rendered properly by
mw:Reference_Tooltips. But it will also show as extra space in the citation wikitext.
108.182.15.109 (
talk) 14:05, 9 May 2019 (UTC)
|quote=
when the quotation does not/should not include punctuation inside the quote marks. Note the pertinent CS1 template parameter |postscript=
is suppressed when |quote=
is used.
65.88.88.69 (
talk) 21:37, 9 May 2019 (UTC)Correct rendering
{{harv|Author|{{CURRENTYEAR}}}}
results in (
Author 2024)
1. Incorrect rendering [eg ref anchor uses journal issue month+year]
{{harv|Author|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
results in (
Author & April 2024)
2. Incorrect rendering [eg serial spanning 10 years, en dash rendered in html]
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
results in (
Author & 2014–2024)
3. Incorrect rendering [Author-Title (MLA) style]
{{harv|Author|Title}}
results in (
Author & Title)
Possibly a missing pipe?
72.43.99.138 (
talk) 13:44, 17 May 2019 (UTC)
{{harv|Author|{{LASTYEAR|10}}{{ndash}}{{CURRENTYEAR}}}}
results in (
Author 2014–2024)
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
results in (
Author 2014–2024)
{{harv|Author|2009{{ndash}}19}}
results in (
Author 2009–19)
{{harv|Author|2009–19}}
results in (
Author 2009–19)
{{
ndash}}
(not the html entity –
). These work:
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
→ (
Author 2014–2024){{cite book |author=Author |title=Serial spanning 10 years |date=2009–2019 |ref=harv}}
→ Author (2009–2019). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Invalid |ref=harv
(
help){{harv|Author|{{LASTYEAR|10}}{{ndash}}{{CURRENTYEAR}}a}}
→ (
Author 2014–2024a){{cite book |author=Author |title=Serial spanning 10 years |date=2009{{ndash}}2019a |ref=harv}}
→ Author (2009–2019a). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Invalid |ref=harv
(
help){{harv|Author|2009{{ndash}}19}}
→ (
Author 2009–19){{cite book |author=Author |title=Serial spanning 10 years |date=2009{{ndash}}19 |ref=harv}}
→ Author (2009–19). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Invalid |ref=harv
(
help)–
entity as a separator (
cs|2 documented here):
{{harv|Author|{{LASTYEAR|10}}–{{CURRENTYEAR}}}}
→ (
Author & 2014–2024){{cite book |author=Author |title=Serial spanning 10 years |date=2009–2019 |ref=harv}}
→ Author (2009–2019). Serial spanning 10 years. {{
cite book}}
: |author=
has generic name (
help); Check date values in: |date=
(
help); Invalid |ref=harv
(
help)|ref={{harvid|Author|Month Year}}
? (using literals to avoid confusion). Btw, the html-rendered en dash should be allowed in |ref=
as it does not emit metadata, correct?
98.0.246.242 (
talk) 16:42, 17 May 2019 (UTC)
{{harv|''The New York Times''|1895}}
→ (
The New York Times 1895){{cite news |title=Title |newspaper=Then New York Times |date=17 March 1895 |ref={{harvid|''The New York Times''|1895}}}}
→ "Title". Then New York Times. 17 March 1895.|ref=
is not made part of the citation's metadata.{{harv|Author|{{dash year|{{CURRENTYEAR}}}}}}
→ (
Author 2024–25){{CURRENTYEAR}}
or {{
LASTYEAR}}
be used. What would happen on 1 January? The reference will not magically alter its publication date, it will still have been published in 2019. --
Redrose64 🌹 (
talk) 15:54, 17 May 2019 (UTC)
{{LASTYEAR}}
and {{CURRENTYEAR}}
(along with the magic word {{CURRENTMONTHNAME}}
) were used in examples as variables, for illustration purposes. They should not be taken as parameter values.
98.0.246.242 (
talk) 16:29, 17 May 2019 (UTC)Please see the discussion at Module talk:Footnotes § broken harv link reporting where a broken harv-link reporting scheme is proposed.
— Trappist the monk ( talk) 17:46, 16 March 2020 (UTC)
Currently the page reads: "...typically used within <ref>...</ref> tags". This should be changed to reflect the deprecation of parenthical citation from September 2020. I propose changing the "typically" to "always". Mateussf ( talk) 03:37, 2 February 2021 (UTC)
The template Harv and its derivatives Harvnb and Sfn seem to always give errors in mobile view when the argument of the "last"-parameter contains an accented character. I have seen this with French and with Irish names. See examples in the citations of Antoine Hamilton and Claude de Mesmes, Comte d'Avaux. With many thanks and best regards, Johannes Schade ( talk) 09:55, 15 October 2023 (UTC)
Can we update the documentation to provide the situations where this template is most appropriate to use now that it has been deprecated for body text? Per recent discussions at Help talk:Shortened footnotes and Wikipedia talk:Manual of Style, the parenthetical citations generated by this template are still accepted within explanatory notes. Although {{ harvnb}} is more common, this template can be placed within ref tags as a shortened footnote. Are there other situations where {{ harv}} is commonly used and accepted on Wikipedia? Rjjiii ( talk) 05:16, 18 March 2024 (UTC)