সাঁচ:Harvcolnb[[#CITEREF|]] The Harvard citation templates create an author-date citation with a one-directional link to the first matching citation template on the same page. There are six templates used to create in-text citations; they differ in the use and placement of parenthesis and in the separator before the pge or location:
Full citations can be created manually or by templates:
Shortened footnotes can be create by using: All of these templates have the same parameters and basic functionality. This page describes the first six in detail; for the others see their documentation pages. Editors editing one of these templates are requested to make parallel changes to the other versions. UsageIn the body of the article:
In the references section (or in an earlier footnote):
Parameters Up to four authors can be given as parameters. (If there are more than 4 authors only the first 4 should be listed. See #Large numbers of authors, below.) The last parameter is the year of publication. (All these examples have links which operate. Click on highlighted text "(Smith 2006, পৃষ্ঠা 25)".)
The optional parameters
The parameter Reference section The links in the Harvard citation templates can find anchors in Citation Style 1, Citation Style 2 and similar templates. To make the anchor, parameter
ApplicationsHarvard citation: {{harv}}
Template {{harv}} creates a parenthetical reference with a link to the full citation in the references section at the bottom of the article.
Template {{harvnb}} inside a In text attribution: {{harvtxt}}
Template {{harvtxt}} can be used to link an in-text attribution to the full citation at the bottom of the page.
Bundled citation: {{harvnb}}
Template {{harvnb}} can be used to bundle citations.
Note that {{sfn}} is inappropriate for bundled citations; use {{harvnb}}. প্ৰধান পৃষ্ঠা: Template:Harvard citations আৰু Template:harvid
More exotic Harvard citations can be constructed using the {{harvs}} 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]].
Some articles use this idiom [[#CITEREFid | link name ]]. See notes on implementation details below. VariationsUsing colon format: {{harvcol}}, {{harvcolnb}}, {{harvcoltxt}}Templates {{harvcol}}, {{harvcolnb}}, {{harvcoltxt}} use a colon to indicate the page number(s) or location.
Adding a URL for the page or locationIf a specific link to the page or section is available, a URL can be added to the location or page number.
Possible issuesWikilink to citation does not workIf 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:
Templates that have broken wikilinks using these templates are added to the category শ্ৰেণী:All articles with broken links to citations. More than one work in a yearFor authors who have published more than one work in the same year, the standard way to differentiate such works is to put a lowercase letter after the year (e.g. place
Large numbers of authorsOnly the first four authors are required by the template. Listing more is not supported. It also possible to use the
No author name in citation templateSome 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 to works that do not have a specific author. Several choices are:
An article should adopt one of these styles consistently. Using
Citation has |
লিপি | প্ৰদৰ্শন কৰে |
---|---|
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 | ref = harv }} |
Article text.[1]
টোকা
তথ্যসূত্ৰ
|
লিপি | প্ৰদৰ্শন কৰে |
---|---|
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 | ref = harv }} |
Article text.[1]
টোকা
তথ্যসূত্ৰ
|
Citation template does not support |ref=harv
The Citation Style Vancouver family of templates use parameter |ref=harvid
to create an anchor for the Harvard citation templates. This must be set to a concatenation of the parameters passed to the Harvard citation template.
লিপি | প্ৰদৰ্শন কৰে |
---|---|
Article text.{{sfn|Smith|1999|p=101}} ==Notes== {{reflist}} ==References== * {{vcite book | last = Smith | first = Karen | year = 1999 | title = Smith's 1999 Book | harvid = Smith1999 }} |
Article text.[1]
টোকা
তথ্যসূত্ৰ
|
লিপি | প্ৰদৰ্শন কৰে |
---|---|
Article text.{{sfn|Smith|2000|p=101}} ==Notes== {{reflist}} ==References== * {{cite thesis | last = Smith | first = Karen | date = May 2000 | title = Smith's Thesis | ref = {{harvid|Smith|2000}} }} |
Article text.[1]
টোকা
তথ্যসূত্ৰ
|
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 |ref=
parameter (such as {{cite report}}) or (2) the source can't be described using our citation templates at all. In these cases, it is possible to use {{wikicite}} 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 {{harv}} or {{sfn}}.
লিপি | প্ৰদৰ্শন কৰে |
---|---|
Article text.{{sfn |Big Government Agency|1999}} ==Notes== {{reflist}} ==References== * {{wikicite | reference = {{cite report | title=Important Government Report | publisher=Big Government Agency | year=1999 }} | ref = {{harvid|Big Government Agency|1999}} }} |
Article text.[1]
টোকা
তথ্যসূত্ৰ
|
লিপি | প্ৰদৰ্শন কৰে |
---|---|
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}} }} |
Article text.[1]
টোকা
তথ্যসূত্ৰ
|
It is also possible to use <cite></cite>
to achieve the same effect, but this may not be compatible with HTML 5.
Recommended style
The recommended Harvard referencing style potentially uses all four templates. Each automatically generates a hypertext link based on the name(s) and date. Here is an example
লিপি | প্ৰদৰ্শন কৰে |
---|---|
Some works on gravitation are so massive they warp spacetime themselves {{Harv|Misner|Thorne|Wheeler|1973}}; yet {{Harvtxt|Einstein|1915}} presented essential equations with notable brevity. The essential ingredients are the curvature tensor and the stress-energy tensor ({{Harvnb|Einstein|1915|loc=p. 844}}; {{Harvnb|Misner|Thorne|Wheeler|1973|loc=p. 41}}). ==References== *{{Citation | last=Misner | first=Charles W. | last2=Thorne | first2=Kip S. | first3=John Archibald | last3=Wheeler | title=Gravitation | publisher=W. H. Freeman | location = San Francisco | year = 1973 | month = September | id = ISBN 0-7167-0344-0 }} *{{Citation | last =Einstein | first =Albert | title =Die Feldgleichungen der Gravitation (The Field Equations of Gravitation) | journal =Königlich Preussische Akademie der Wissenschaften | pages =844–847 | year =1915 }} |
Some works on gravitation are so massive they warp spacetime themselves (Misner, Thorne & Wheeler 1973); yet Einstein (1915) presented essential equations with notable brevity. The two ingredients are the curvature tensor and the stress-energy tensor (Einstein 1915, p. 844; Misner, Thorne & Wheeler 1973, p. 41).
References
|
In short:
- For a single work with no author in the text (the most common case), use {{Harv}}.
- For a single work with the author named in the text, use {{Harvtxt}}.
- For multiple works at the same point, use explicit parentheses and {{Harvnb}} separated by semicolons.
- For anything more complicated use {{Harvs}}.
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. If |ref=harv
is set, then {{Citation/core}} creates an anchor <a name="CITEREF"></a>
followed by the concatenation of the following parameters:
- last or last1 or surname or surname1 or author or author1 or authors,
- last2 or surname2 or author2,
- last3 or surname3 or author3,
- last4 or surname4 or author4,
- editor-last or editor-surname or editor1-last or editor1-surname or editor or editors,
- editor2-last or editor2-surname,
- editor3-last or editor3-surname,
- editor4-last or editor4-surname,
- year.
Template {{Citation}} sets |ref=harv
as the default.
This covers the most common templates. Information about all the templates is available at User:Gadget850/Citation templates— anchors.
Please note that the above list does not include the coauthor parameter, which is ignored in generating the citation's CITEREF anchor. It is recommended that, when used with the harv family templates, citation templates always use the numbered last parameters instead of coauthor so that a more accurate CITEREF anchor may be generated. If coauthor is used, it will not be possible to generate a Harvard citation that displays the authors' names correctly and that generates a link to the correct CITEREF anchor.
Use of the date parameter in place of the year parameter in citation templates is preferred when full dates are known. The date parameter should not be used to simply encode a year, as this can fail to generate a viable
link.
#CITEREF
Harvard citation wikilink
The Harvard citation templates create a wikilink to the anchor. For example {{Harv|Smith|2006|p=25}}
produces the link
and #CITEREFSmith2006
{{Citation|last=Smith|first=John|date=27 January 2006|title=My Life}}
produces the anchor
.
CITEREFSmith2006
Using CITEREF directly
A few articles create a custom ID using
, either in place of the Harvard citation template (e.g. CITEREF
) or as a value for [[#CITEREFSmith2006|(2006)]]
|ref=
in the citation template.
A custom ID must follow these rules:
- Names are case-sensitive
- Names may not be a numeric integer
- Quotes are optional if the only characters used are letters A–Z, a–z, digits 0–9 and the symbols
!$%&()*,-.:;<@[]^_`{|}~
- Inclusion of any other characters including spaces require that the name be enclosed in in straight quotes (")
- Quote enclosed names may not include a less-than sign (<) or a quote symbol (")
- If CITEREF is used, then spaces in the
|ref=
field must be replaced with underscores
- It is recommended that names be kept simple and restricted to the standard English alphabet and numerals.
Examples:
{{sfn|
cite name|
year}}
{{cite book|ref=CITEREF
cite_nameyear}}
cite name|
Where cite_name is a name such as the publisher.
year}}
}}
Template {{sfn}} creates a named footnote, so that identical footnotes are combined automatically. The footnote name begins with
followed by a concatenation of the arguments to {{sfn}}. E.g.: this template call FOOTNOTE
{{sfn|Smith|2006|p=26}}
should have exactly the same functionality as <ref name="FOOTNOTESmith200626">{{Harvnb}}</ref>
which, in turn, has the same functionality as <ref name="FOOTNOTESmith200626">>[[#CITEREFSmith2006|Smith (2006)]], p. 26</ref>
The call to {{harvnb}} has been subst'ed for quicker load times.
Notes
- ↑ As noted at MediaWiki Help: A four-digit number is interpreted as hours and minutes if possible, and otherwise as year:
{{#time: Y m d H:i:s | 2010 }} → 2010 01 02 00:00:00 Input is treated as a time rather than a year.
{{#time: Y m d H:i:s | 1960 }} → 1960 01 02 00:00:00 Since 19:60 is not a valid time, 1960 is treated as a year.
{{#time: Y | 2010 }} → 2010 Input is treated as a time rather than a year.
{{#time: Y | 1960 }} → 1960 Since 19:60 is not a valid time, 1960 is treated as a year.
|
The above documentation is transcluded from সাঁচ:Harvcolnb/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |