![]() | This template uses Lua: |
![]() | This template uses TemplateStyles: |
This template is a citation hybrid that has characteristics of the long-form cs1 and cs2 and characteristics of short-form {{sfn}}
and the {{harv}}
families of templates. Its purpose is to provide a method that allows editors to refer to a contribution or chapter in a larger work when more than a few such referrals are required. is not a substitute for a properly constructed citation.
Short-form templates and are often used to link from an article's references section to a long-form cs1|2 template in a bibliography section:
{{cite book}}
It is not uncommon for a source have multiple contributors. When it is necessary to refer to multiple contributions in the same source, repeating all of the bibliographic details in multiple long-form citation templates adds to references-section clutter. is designed to hold only the detail necessary to identify a contribution and link to the enclosing work's long-form citation where all of the bibliographic detail can be found:
The minimal form is:
{{harvc |last=contributor name |year=publication year |c=contribution title |in=source editor/author name}}
According to the comments in Module:Harvc, mistaken Harvc error: no target: error messages may be produced when the template is nested in other templates as on documentation pages. The otherwise undocumented parameter, , can be added to prevent this.
creates a CITEREF
anchor from one to four contribution or chapter author surnames and the value in . This allows to be the target of a link created by {{sfn}}
or family templates. From and , creates a CITEREF link similar to those created by {{harvnb}}
and {{sfn}}
{{citation}}
style (comma separators, no terminal punctuation, static text not capitalized)yes
, instructs to render source link without parentheses around the year; same format as that produced by {{harvnb}}
limited
, registration
, subscription
When a popflock.com resource article makes reference to a work that contains multiple chapters by different authors, bibliographies and reference sections can look rather cluttered:
As the list grows longer, the look becomes more cluttered with the unnecessarily repeated detail of full-length citations. With editors can link to shorter, less detailed contribution citations using standard implementations of {{sfn}}
templates[1] and {{harv}}
templates (like this: (Harper, Frank & McQuilkin 1957) and also wrapped in tags[2]). may also be wrapped in tags so that it becomes part of the article's References section.[3][4]
It may sometimes be necessary to cite a contribution of a source's editor or author such that through are the same as through , an editor's preface for example. Such citations can, depending on placement, cause or -family references to link directly to the citation instead of to the template, or cause circular links ( linking to itself because its CITEREF
anchor identifier is the same as the citation's CITEREF
anchor identifier). If is set, will use it as an anchor identifier; if is not set, will emit an error message when through are the same as through .
For example, to reference an editor's preface from article text, create a wikilink inside tags:[5]
<ref>[[#Stefferud preface|Stefferud 1957]]</ref>
Write a template with
{{harvc |last=Stefferud |first=A.|year=1957 |id=Stefferud preface |c=Preface |url=//archive.org/stream/yoa1957#page/n7/mode/1up |in=Stefferud}}
There are times when an author or authors will have contributed more than once to a work. When this occurs, it is necessary to disambiguate the CITEREF links from the or templates to the CITEREF id of the appropriate template.
In this example, author David Hunt contributed two appendices to Christmas Cacti: The Genus Schlumbergera and Its Hybrids.
There are two {{harvnb}}
templates that are disambiguated:
{{harvnb |Hunt |1995a}}
-> Hunt 1995a{{harvnb |Hunt |1995b}}
-> Hunt 1995bThese link to two templates which use for their CITEREF id and for the date in the rendering as a visual aid for readers:
{{harvc |in=McMillan |in2=Horobin |last=Hunt |first=David |c=Appendix I Names and synonyms of the species, subspecies and interspecific hybrids |year=1995 |anchor-year=1995a |mode=cs2 |nb=yes}}
{{harvc |in=McMillan |in2=Horobin |last=Hunt |first=David |c=Appendix III Excerpts from a Brazilian diary |year=1995 |anchor-year=1995b |mode=cs2 |nb=yes}}
and the single template:
{{Citation |last=McMillan |first=A. J. S. |last2=Horobin |first2=J. F. |year=1995 |title=Christmas Cacti: The Genus ''Schlumbergera'' and Its Hybrids |edition=p/b |publication-place=Sherbourne, Dorset, UK |publisher=David Hunt |isbn=978-0-9517234-6-3}}
emits these error messages:
CITEREF
link to the full citation. All are not required but must be used in order without numerical gaps.CITEREF
disambiguator. When the source does not have an identifiable year, use or with lowercase CITEREF
disambiguator.etal
CITEREF
anchor and link. The value of must be a three- or four-digit number with an optional lowercase CITEREF
disambiguator. When the source does not have an identifiable year, use or .CITEREF
anchor. Add at least one of the listed parameters.CITEREF
anchor identifier would conflict with the long-form citation's CITEREF
anchor identifier. See Examples