साँचा:SfnRef/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

Generate an identifier suitable as an anchor for a Harvard citation. This template, which can be used with either the name साँचा:tlc or the name साँचा:tlc, is intended to be paired with Harvard citation templates such as साँचा:tl, साँचा:tl, and साँचा:tl. This templates uses the same arguments as the other citation templates. As explained below, this template is needed only in some cases when the Harvard citation templates are used.

Usage

{{SfnRef|Last name of author(s)|Year}}

or

{{harvid|Last name of author(s)|Year}}

The first parameter is the first author's last name. Up to four authors can be given as parameters; if there are more than four authors, list only the first four. The last parameter is the year of publication, possibly with a letter suffixed to avoid ambiguity if there are multiple citations by the same set of authors in the same year.

All named parameters such as साँचा:para are ignored.

Purpose

This template creates the proper value for the साँचा:para parameter for use with साँचा:tl, साँचा:tl, साँचा:tl, and the other templates implemented via साँचा:tl, and for use by साँचा:tl, साँचा:tl and other templates that generate Vancouver system references. It is intended to be paired with साँचा:tl and uses the same arguments. As explained below, साँचा:tlc/साँचा:tlc is only necessary in a subset of the cases where साँचा:tlc is used.

साँचा:tlc creates a short footnote that is linked to a full footnote. साँचा:tlc creates the link automatically, but the full footnote must be assigned the proper ID value to be a valid target for that link.

When using the साँचा:tlc family of citation templates, the ID is created via the साँचा:para parameter. In most cases, the parameter should be coded as साँचा:para: this generates the ID from the last names of the first four authors. This parameter setting is not needed for साँचा:tl, which defaults to साँचा:para. However, if साँचा:para etc. are not used, such as when the author of the source is unknown and the short footnote specifies an organization name, साँचा:para will not create the proper ID value. In those cases, use साँचा:tlc to create the proper value without having to know the rules for how साँचा:tlc creates the ID.

The साँचा:tl etc. templates (with "vcite", not "cite") do not support साँचा:para and require the use of साँचा:tlc/साँचा:tlc to work with Harvard citations.

Examples

With the shortened footnote template

When citing an article published in the December 2004 edition of Rolling Stone where the author is unknown, you might create a short footnote as follows:

{{Sfn|Rolling Stone|2004}}

साँचा:para will not work in this case because "Rolling Stone" is not the name of the author. You may code the value for the साँचा:para parameter manually, or you can use साँचा:tlc and specify the same parameters as used with साँचा:tlc:

{{SfnRef|Rolling Stone|2004}}

The full footnote:

{{cite news |work=[[Rolling Stone]] |title=The RS 500 Greatest Songs of All Time |ref={{SfnRef|Rolling Stone|2004}} |date=December 2004}}

You can copy and paste the साँचा:tlc template code and change the name of the template from "Sfn" to "SfnRef". If your short footnote includes page numbers such as साँचा:tlc, you can copy and paste it to create साँचा:tlc; the साँचा:para parameter is not necessary but will do no harm.

With other Harvard templates

For example, a References section might contain the following markup:

{{vcite journal |author=Peh WC, Ng KH |title=Preparing the references |journal=Singapore Med J |volume=50 |issue=7 |pages=659–61 |year=2009 |pmid=19644619 |url=http://smj.sma.org.sg/5007/5007emw1.pdf |format=PDF |ref={{harvid|Peh|Ng|2009}} }}

This markup uses {{harvid|Peh|Ng|2009}} to generate the anchor identifier "साँचा:harvid", used internally to link Harvard references to citations. (This identifier is not visible to the article's reader.) The generated citation looks like this:

साँचा:vcite journal

Article prose can link to this citation with markup like the following:

साँचा:tlx

which generates the following:

साँचा:harv

To see how it works, click on the "साँचा:harv".

See also

साँचा:navbox