Auyda/Cómo citar
Uso
The basic concept of the <ref> tag is that it inserts the text enclosed by the ref tags as a footnote in a designated section, which you indicate with the placeholder tag <references />. This format cannot be used interchangeably with the older format — you must pick one or the other.
Additional placeholder tags <references /> can be inserted in the text, and all <ref> tags up to that point will be inserted there.
If you forget to include <references /> in the article, the footnotes will not disappear, but the references will be displayed at the end of the page.
This page itself uses footnotes, such as the one at the end of this sentence.[note 1] If you view the source of this page by clicking "Edit this page", you can see a working example of footnotes.
Wikitexto | Representación |
---|---|
The Sun is pretty big.<ref>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23-5.</ref> The Moon, however, is not so big.<ref>''R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44-6.</ref>
==Notas==
<references /> |
The Sun is pretty big.[1] The Moon, however, is not so big.[2] Notas
|
Usos múltiples de la misma nota a pie de página
To give a footnote a unique identifier, use <ref name="name">. You can then refer to the same footnote again by using a ref tag with the same name. The text inside the second tag doesn't matter, because the text already exists in the first reference. You can either copy the whole footnote, or you can use a terminated empty ref tag that looks like this: <ref name="name" />. The quotes are not required (but still correct) if the name contains no embedded spaces. The space before the closing "/" may be omitted.
In the following example, the same source is cited three times.
Wikitexto | Resultado |
---|---|
This is an example of multiple references to the same footnote.<ref name="multiple">Remember that when you refer to the same footnote multiple times, the text from the first reference is used.</ref>
Such references are particularly useful when citing sources, if different statements come from the same source.<ref name="multiple" /> Any reused tag should not contain extra content, that will spawn an error. Only use empty tags in this role.
A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.<ref name="multiple" />
==Notas==
<references /> |
This is an example of multiple references to the same footnote.[1]
Such references are particularly useful when citing sources, if different statements come from the same source.[1] Any reused tag should not contain extra content, that will spawn an error. Only use empty tags in this role. A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.[1] Notas
|
Merging two texts into a single reference
A typical wikisource issue is, how to merge into one reference texts split into different pages. This can be done using a <ref name="name"> tag for the first part of the reference, and tagging the following parts into different pages with a tag <ref follow="name">.
Here an example, deriving the text used into previous section:
Wikitexto | Representación |
---|---|
This is an example of merging multiple texts into the same footnote.<ref name="main">Remember that all the texts will be included into the reference containing the ''name='' attribute.<br /></ref>
<ref follow="main">Simply include the text to be merged into the first <ref name="main"> reference with a tag <ref follow="name"><br />This paragraph is included into a similar tag and it will be merged into the reference in former paragraph.</ref>
==Referencias==
<references/> |
This is an example of merging multiple texts into the same footnote.[1]
Referencias
|
When using this syntax into Page: namespace, take care that the ref follow part of the footnote is transcluded too into the same ns0 page, where the first part of footnote is transcluded. Use appropriately section tags to get this result. To also remind users that reference names should not solely be numbers, eg. <ref name="p32"> and <ref follow="p32">.
La etiqueta <references />
The <references />
tag inserts the text of all the citations which have defined in <ref>
tags up to that point in the page. For example, based on the citations above, there should be reference for the note group.
Wikitexto | Resultado |
---|---|
<references group="note"/> |
|
In some language editions of Wikipedia, long reference lists may be placed using the template {{Reflist}}
, which incorporates <references />
. It provides an optional parameter to display the reference list in multiple columns. For instance, the English, Hindi and Interlingua Wikipedias use the css selector references-small
to make the reference text smaller than normal text.
If a page includes more than one <references />
list, each list includes the <ref>
tags defined after the previous references list. If these references lists are produced by templates, each one lists the ref tags defined before the first references list, and there is an error message saying that there is a ref tag but not a references list.
Grouped references
This may be disabled by $wgAllowCiteGroups = false;
if desired.
The following example generates separate reference lists for citations and miscellaneous footnotes:
Wikitexto | Resultado |
---|---|
According to scientists, the Sun is pretty big <ref>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23-5.</ref> In fact, it is very big <ref group="footnotes"> Take their word for it. Don't look directly at the sun!</ref>
==Notas==
<references group="footnotes" />
==Referencias==
<references /> |
According to scientists, the Sun is pretty big [1] In fact, it is very big [footnotes 1]
Notas
Referencias
|
The anonymous group works as before, while references destined for the named group will only show up in the designated <references />
element.
Separating references from text
In-text references make it easy to copy the text to another page; on the other hand, they make it hard to read. References containing a lot of data, quotes or elaborate citation templates can make up a significantly larger fraction of the source than the text that will actually be visible. To avoid this, recent versions of the extension allow moving some or all of the references into the <references />
section, to the place where they will actually appear to the reader.
Wikitexto | Resultado |
---|---|
According to scientists, the Sun is pretty big.<ref name="miller" /> The Moon, however, is not so big.<ref name="smith" />
==Notas==
<references>
<ref name="miller">E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23-5.</ref>
<ref name="smith">R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44-6.</ref>
</references> |
According to scientists, the Sun is pretty big.[1] The Moon, however, is not so big.[2]
Notas
|
Thus, the code above will have the same output as the first example above, although the numbering and order of the references will not in general be the same.
Substitution and embedded parser functions
Since Cite's Plantilla:Tag tag is parsed before MediaWiki's parser functions (e.g. {{#ifexpr:…}}
) or variables (e.g. {{PAGENAME}}
) or before subst:
, these will not work inside of citation references.
Instead, you have to use the magic word {{#tag:…}}
.
Wikitexto | Resultado |
---|---|
Foo <ref>This is not working, see{{cite journal|url="www.google.com" |title=Search |author= |date= |accessdate={{subst:#time:Y-m-d|now}}}}</ref> bar baz…
Foo{{#tag:ref| Whereas this does, see {{cite journal|url="www.google.com" |title=Search |author= |date= |accessdate={{subst:#time:Y-m-d|now}}}}}} bar baz…
<references /> |
Foo [1] bar baz… Foo[2] bar baz…
|