Участник:Overmind/Справка по рефам

Материал из Lurkmore
Перейти к навигации Перейти к поиску

References

According to scientists, the Sun is pretty big.[1] The Moon, however, is not so big.[2]

Notes

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
  2. R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.

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]

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]

Notes

  1. 1,0 1,1 1,2 Remember that when you refer to the same footnote multiple times, the text from the first reference is used. Ошибка цитирования Неверный тег <ref>: название «multiple» определено несколько раз для различного содержимого

Grouped references

This may be disabled by $wgAllowCiteGroups = false; if desired. However, it is enabled on the foundation wikis.

The following example generates separate reference lists for citations and miscellaneous footnotes:

According to scientists, the Sun is pretty big [1]. In fact, it is very big [footnotes 1].

Notes

  1. Take their word for it. Don't look directly at the sun!

References

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.

The anonymous group works as before, while the named group reference will show up as [footnotes 1], and the references will look like this:

  1. Test of the group argument

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 section, to the place where they will actually appear to the reader. Thus,

According to scientists, the Sun is pretty big.[1][1] The Moon, however, is not so big.[2][2]

Notes

  1. 1,0 1,1 E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
  2. 2,0 2,1 R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.

will have the same output as the first example above.


The quick brown fox jumps over the lazy dog.[1] Amazingly few discotheques provide jukeboxes.[2] How razorback-jumping frogs can level six piqued gymnasts.[3]

References

[1] [2] [3]


  1. 1,0 1,1 This is reference 1.
  2. 2,0 2,1 This is reference 2.
  3. 3,0 3,1 This is reference 3.

Template: Reflist

<div class="references-small {{#if: {{{colwidth|}}} | references-column-width | {{#iferror: {{#ifexpr: {{{1|1}}}>1 | references-column-count references-column-count-{{{1}}} }} }} }}" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; column-count:{{{1}}};" }} }}>
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div>
source
[1]