आकृति:R
Intent
[सम्पादन करी]Provides a simple wrapper for up to nine consecutive <ref name="RefName" />
citation tags that minimizes visual impact on the text which, along with the simpler syntax, increases code readability and ease of editing.
Comparison to <ref>
[सम्पादन करी]Note how much shorter the coding is when using {{r}}
.
Using <ref> |
For example, fact<ref name=RefName/><ref name=Bam/><ref name=Bar/> and fact.<ref name=Bas/><ref name=Bay/><ref name=Baz/>
|
---|---|
Using {{r}}
|
For example, fact{{r|RefName|Bam|Bar}} and fact.{{r|Bas|Bay|Baz}}
|
References using {{r}}
and references using <ref>
can coexist on the same page.
Usage
[सम्पादन करी]Usage | Display | Notes |
---|---|---|
{{r|RefName}}
|
Text.[१] | Equivalent to <ref name="RefName" /> .
|
{{r|RefName|p=100}}
|
Text.[१]:100 | Adds a page number (or other location identifier) within the source.
The If the article cites only one location in a given source, reduce clutter by coding simply |
{{r|RefName|p=10–14}}
|
Text.[१]:10–14
Text.[१]:3, 6 Text.[१]:§C Text.[१]:Dust jacket Text.[१]:para. 7 | |
{{r|RefName|Bam|Bar}}
|
Text.[१][२][३] | Equivalent to {{r|RefName}}{{r|Bam}}{{r|Bar}} or <ref name=RefName/><ref name=Bam/><ref name=Bar/> .
Up to nine references may be "bundled" this way. |
{{r|1=RefName|2=Bam|3=Bar|4=Bas|p1=100|p2=10–14|p4=§C}}
|
Text.[१]:100[२]:10–14[३][४]:§C | Equivalent to {{r|RefName|p=100}}{{r|Bam}}{{r|Bar|p=10–14}}{{r|Bas|p=§C}} .
In the example, not all references have quotes; make sure that e.g. |
{{r|group=Notes|NtName}}
|
Text.[Notes १]
Text.[Notes १]:13 |
The |group= , |grp= , and |g= parameters are equivalent and echo <ref group=Notes name=NtName/> .
If present, the parameter applies to all references in the template. |
{{r|RefName|p=100|q=quote from the text}}
|
Text.[१]:100 | Makes sense only if |p= (or one of its synonyms) is present. |quote= (or |q= ) underlines the superscript page number/ |
{{r|1=RefName|2=Bam|3=Bar|4=Bas|p1=100|p2=10–14|p4=§C|q1=Quote from 100|q4=Quote from §C}}
|
Text.[१]:100[२]:10–14[३][४]:§C | In the example, not all references have quotes; make sure that e.g. |1= matches |p1= matches |q1= .
|
The ref names must be defined; this is normally done in a References section (as demonstrated below). The separate Notes section is also illustrated.
===References=== {{reflist|refs= <ref name=RefName>Reference text.</ref> <ref name=Bam>Bam reference text.</ref> <ref name=Bar>Bar reference text.</ref> <ref name=Bas>Bas reference text.</ref> <ref name=Bay>Bay reference text.</ref> <ref name=Baz>Baz reference text.</ref> }} ===Notes=== {{reflist|group=Notes|refs= <ref name=NtName>Note text.</ref> <ref name=NtCam>Cam note text.</ref> }}
Resulting in:
TemplateData
[सम्पादन करी]See the monthly error report for this template.
TemplateData for R
Provides a simple wrapper for up to nine consecutive <ref name=RefName/> citation tags that minimizes visual impact on the text which, along with the simpler syntax, increases code readability and ease of editing.
पैरामीटर | विवरण | प्रकार | स्थिति | |
---|---|---|---|---|
Reference group | group g grp | The reference group of all the references displayed; see WP:REFGROUP for help.
| स्ट्रिंग | सुझावित |
Reference name 1 | 1 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | आवश्यक |
Pages number(s): reference 1 | page1 p page pages pp p1 pages1 pp1 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | सुझावित |
Quote: reference 1 | q1 quote q quote1 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | सुझावित |
Reference name 2 | 2 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | सुझावित |
Pages number(s): reference 2 | page2 p2 pages2 pp2 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 2 | q2 quote2 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
Reference name 3 | 3 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | सुझावित |
Pages number(s): reference 3 | page3 p3 pages3 pp3 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 3 | q3 quote3 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
Reference name 4 | 4 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | वैकल्पिक |
Pages number(s): reference 4 | page4 p4 pages4 pp4 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 4 | q4 quote4 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
Reference name 5 | 5 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | वैकल्पिक |
Pages number(s): reference 5 | page5 p5 pages5 pp5 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 5 | q5 quote5 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
Reference name 6 | 6 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | वैकल्पिक |
Pages number(s): reference 6 | page6 p6 pages6 pp6 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 6 | q6 quote6 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
Reference name 7 | 7 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | वैकल्पिक |
Pages number(s): reference 7 | page7 p7 pages7 pp7 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 7 | q7 quote7 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
Reference name 8 | 8 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | वैकल्पिक |
Pages number(s): reference 8 | page8 p8 pages8 pp8 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 8 | q8 quote8 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
Reference name 9 | 9 | If this is "RefName", the template displays <ref name="RefName"/>. | स्ट्रिंग | वैकल्पिक |
Pages number(s): reference 9 | page9 p9 pages9 pp9 | Adds a page number (or other location identifier) within the source. Note that you can also put this information in the original reference instead so it need only be stated once.
| सामग्री | वैकल्पिक |
Quote: reference 9 | q9 quote9 | A quote from the source. Appears when hovering over the page number, so the page number must be specified. | स्ट्रिंग | वैकल्पिक |
See also
[सम्पादन करी]- Help:List-defined references, which provides all the specifications for using List-defined references, especially with regard to naming references and groups.
- Shortened footnotes in Wikipedia:Citing sources, which describes the most common way of citing multiple pages of the same source.
- {{sfn}}, a template that implements the most common way of citing multiple pages of the same source.
- Citation bundling in Wikipedia:Citing sources, a recommended way of combining a list of several consecutive footnotes into a single footnote.
- Wikipedia:Footnotes
- Wikipedia:Citing sources
The above documentation is transcluded from आकृति:R/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |