Template:Refref/core: Difference between revisions
m (1 revision imported) |
WikiDwarfBOT (talk | contribs) m (→top: clean up, replaced: Wikipedia: → Bharatpedia: (6)) |
||
Line 2: | Line 2: | ||
|+ Formatting references using inline citations | |+ Formatting references using inline citations | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
| colspan=2 | <p><small>All information in Wikipedia articles should be [[ | | colspan=2 | <p><small>All information in Wikipedia articles should be [[Bharatpedia:Verification|verified]] by [[Bharatpedia:Citing sources|citations]] to [[Bharatpedia:Reliable sources|reliable sources]]. Our preferred method of citation is using the <span class="plainlinks">"[http://www.mediawiki.org/wiki/Extension:Cite/Cite.php cite.php]"</span> form of inline citations, using the <nowiki><ref></ref></nowiki> elements. Using this method, each time a particular source is mined for information (''don't copy word-for-word''!), a footnote is placed in the text ("inline"), that takes one to the detail of the source when clicked, set forth in a references [[Help:Section|section]] after the text of the article.</small></p><p> | ||
<small>In brief, anywhere you want a footnote to appear in a piece of text, you place an opening <nowiki><ref></nowiki> tag followed by the text of the citation which you want to appear at the bottom of the article, and close with a <nowiki></ref></nowiki> tag. Note the closing slash ("/"). For multiple use of a single reference, the opening ref tag is given a name, like so: <nowiki><ref name="name"></nowiki> followed by the citation text and a closing <nowiki></ref></nowiki> tag. Each time you want to use that footnote again, you simply use the first element with a slash, like so: <nowiki><ref name="name" /></nowiki>.</small></p><p><small>In order for these references to appear, you must tell the software where to display them, using either the code <nowiki><references/></nowiki> or, most commonly, the template, {{tl|Reflist}} which can be modified to display the references in columns using <nowiki>{{Reflist|colwidth=30em}}</nowiki>. Per our [[ | <small>In brief, anywhere you want a footnote to appear in a piece of text, you place an opening <nowiki><ref></nowiki> tag followed by the text of the citation which you want to appear at the bottom of the article, and close with a <nowiki></ref></nowiki> tag. Note the closing slash ("/"). For multiple use of a single reference, the opening ref tag is given a name, like so: <nowiki><ref name="name"></nowiki> followed by the citation text and a closing <nowiki></ref></nowiki> tag. Each time you want to use that footnote again, you simply use the first element with a slash, like so: <nowiki><ref name="name" /></nowiki>.</small></p><p><small>In order for these references to appear, you must tell the software where to display them, using either the code <nowiki><references/></nowiki> or, most commonly, the template, {{tl|Reflist}} which can be modified to display the references in columns using <nowiki>{{Reflist|colwidth=30em}}</nowiki>. Per our [[Bharatpedia:Manual of Style|style guidelines]], the references should be displayed in a separate section denominated "References" located after the body of the article.</small></p> | ||
|- style="vertical-align: top; text-align: center;" | |- style="vertical-align: top; text-align: center;" | ||
| <small>'''''[[ | | <small>'''''[[Bharatpedia:Footnotes|Inline citation]] code; what you type in 'edit mode' '''''</small> | ||
| <small>'''''What it produces when you save'''''</small> | | <small>'''''What it produces when you save'''''</small> | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
Line 11: | Line 11: | ||
| style="width: 400px;"|<p>Two separate citations.<ref>Citation text.</ref><ref>Citation text2.</ref></p><p><br /><br /> Multiple<ref name="multiple">Citation text3.</ref> citation<ref name="multiple" /> use.<ref name="multiple" /></p><p><u style="font-size: larger;"><br /><br /><br />'''References'''_________________</u></p>{{Reflist}} | | style="width: 400px;"|<p>Two separate citations.<ref>Citation text.</ref><ref>Citation text2.</ref></p><p><br /><br /> Multiple<ref name="multiple">Citation text3.</ref> citation<ref name="multiple" /> use.<ref name="multiple" /></p><p><u style="font-size: larger;"><br /><br /><br />'''References'''_________________</u></p>{{Reflist}} | ||
|- | |- | ||
| style="text-align: center;" colspan="2" | <p><small>Templates that can be used between <kbd><nowiki><ref>...</ref></nowiki></kbd> tags to format references</small></p><p>{{tl|Citation}} • {{tl|Cite web}} • {{tl|Cite book}} • {{tl|Cite news}} • {{tl|Cite journal}} • [[:Category:Citation templates|Others]] • [[ | | style="text-align: center;" colspan="2" | <p><small>Templates that can be used between <kbd><nowiki><ref>...</ref></nowiki></kbd> tags to format references</small></p><p>{{tl|Citation}} • {{tl|Cite web}} • {{tl|Cite book}} • {{tl|Cite news}} • {{tl|Cite journal}} • [[:Category:Citation templates|Others]] • [[Bharatpedia:Citation templates|Examples]]</p> | ||
|- | |- | ||
|}{{Z3}}<!-- Template:Refref --> | |}{{Z3}}<!-- Template:Refref --> |
Revision as of 17:38, 31 May 2021
All information in Wikipedia articles should be verified by citations to reliable sources. Our preferred method of citation is using the "cite.php" form of inline citations, using the <ref></ref> elements. Using this method, each time a particular source is mined for information (don't copy word-for-word!), a footnote is placed in the text ("inline"), that takes one to the detail of the source when clicked, set forth in a references section after the text of the article. In brief, anywhere you want a footnote to appear in a piece of text, you place an opening <ref> tag followed by the text of the citation which you want to appear at the bottom of the article, and close with a </ref> tag. Note the closing slash ("/"). For multiple use of a single reference, the opening ref tag is given a name, like so: <ref name="name"> followed by the citation text and a closing </ref> tag. Each time you want to use that footnote again, you simply use the first element with a slash, like so: <ref name="name" />. In order for these references to appear, you must tell the software where to display them, using either the code <references/> or, most commonly, the template, {{Reflist}} which can be modified to display the references in columns using {{Reflist|colwidth=30em}}. Per our style guidelines, the references should be displayed in a separate section denominated "References" located after the body of the article. | |
Inline citation code; what you type in 'edit mode' | What it produces when you save |
Two separate citations.<ref>Citation text.</ref><ref>Citation text2.</ref>
{{Reflist}} |
|
Templates that can be used between <ref>...</ref> tags to format references {{Citation}} • {{Cite web}} • {{Cite book}} • {{Cite news}} • {{Cite journal}} • Others • Examples |