This page, Help:Reftags, explains the use of the reftag element,...
This help page is a how-to guide. It details processes or procedures of some aspect(s) of Wikipedia's norms and practices. It is not one of Wiki's policies or guidelines, and may reflect varying levels of consensus and vetting. |
A reftag can also be defined by using wikitext function {{#tag:ref|...}}
to generate the text ...
and allow direct use of subst'ing of templates to embed equivalent markup inside a footnote, or to nest a ...
inside a {{#tag:ref|...}}
.
The general format is text
for a simple reftag footnote. However reftags can have a name="xx"
to define a footnote to be reused on a page by named ref, , as when citing the same webpage at several spots in the article text. There can be more than 3,000 reftag footnotes defined on a page, but usually there are less than a hundred.
This section is retained only for historical reference. Reason: The {{R}} template has been deprecated by community RfC since 2010 (its use "suspended" unless three conditions were met, which were not met).For a modern solution to citing different pages in a single source, see {{sfnp}} . |
When citing different pages in a single source, a named ref can be followed by a {{R}}
template. Given a ref like "book
", the ref "author1990"
can be reused, now using a different page number, say 53. This subsequent ref {{R|author1990|p=53}}
will show the same superscript number, with a suffix of a colon and, in this case 53, the page number.: 53 This format allows the reader to click to the reference section, and then click on other references from the same source.
Rather than define hundreds of footnotes in a single list, various reftags could split to some named groupings, such as using "..."
" to collect those footnotes into group name "gg"
as displayed by
. For example, a common tactic is to define footnote group "fn" which shows each link as "[fn 9]" for the 9th footnote in the group="fn"
. A group name can be multiple words in straight double quotation marks (group="set xx yy"
), but a single-word name with no punctuation or other special characters, just ASCII letters and numerals, can omit the quotation marks (as: group=fn
). Hence, many group names are typically one-word labels, to avoid excessive quotation marks.
Rather than using an element text
, an alternate method is to use the wikitext function tag:ref
, as {{#tag:ref|...text...}}
to define the contents of a footnote.
Examples:
{{#tag:ref|Example of tag:ref function}}
will show a superscript number: and list footnote "Example of tag:ref function" under the References.{{#tag:ref|Named reftag function xx1|name="xx1"}}
will show a superscript number: and list footnote "Named reftag function xx1" under the References below. The footnote name "xx1"
then can be reused by putting
at various points in the text.<ref>
citation feature provided by MediaWikiThis article uses material from the Wikipedia English article Help:Reftags, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Content is available under CC BY-SA 4.0 unless otherwise noted. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki English (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.