साँचा:R/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:R
imported>MerlIwBot द्वारा परिवर्तित २२:५२, १८ फ़रवरी २०१३ का अवतरण (Robot: Adding th:แม่แบบ:R)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा: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 = }}

Usage

Provides a simple wrapper for (up to 5 consecutive) <ref name="foo" /> citation tags that minimizes visual impact on the text, which along with the simpler syntax increases code readability and editability. For example:

usage notes
{{r|ref_name}} Adds a reference like fooसाँचा:r, equivalent to <ref name="ref_name" />. This can be combined, like {{r|ref_name|another|more|ref4}} (equivalent to <ref name="ref_name" /><ref name="another" /><ref name="more" /><ref name="ref4" />).
{{r|ref_name|group=bar}} Adds a reference like fooसाँचा:r for a reference in the bar group (for pages with multiple reference sections). The group applies to all references in the {{r}} call.
{{r|ref_name|page1=100}} Adds a reference like fooसाँचा:r, with a page number (page1 applies to the first reference, page2 to the second, etc.). This is only needed for multiple references to different pages in the source.
सन्दर्भ त्रुटि: <references> में परिभाषित <ref> टैग में group प्राचल (पैरामीटर) "bar" दिया है जो उससे पहले पृष्ठ के पाठ में मौजूद नहीं है।

Examples

Comparison to <ref>

unwrapped For example, fact<ref name="bacelieri" /><ref name="cochrane2006" /><ref name="emed_hpv" /> and fact.<ref name="emed_plantar" /><ref name="hipusa" /><ref name="kunnamo" />
wrapped with {{r}} For example, fact.{{r|bacelieri|cochrane2006|emed_hpv}} and fact{{r|emed_plantar|hipusa|kunnamo}}

Pages

By passing page numbers to the parameters page1 through page5, this template will add a superscripted page number to the reference. Using the code {{r|ref_name|bar|baz|page1=20|page3=5–12}}, one can generate references like these.साँचा:r The ref names must be defined, normally in a references section (as demonstrated below):

{{reflist|refs=
<ref name="ref_name">Foo.</ref>
<ref name="bar">Bar.</ref>
<ref name="baz">Baz.</ref>
}}

Resulting in: साँचा:reflist

See also