Jump to content

Help:Cite

This is a fully translated help. Click here for more information.
From DawoumWiki, the free Mathematics self-learning

Cite는 페이지에 각주를 더하는 것을 가능하게 만듭니다.

기술적으로 자세한 것에 대해 Extension:Cite를 참조하십시오.

Usage

<ref> 태그의 기본 개념은 지정된 섹션에서 각주로 ref 태그에 의한 감싸진 텍스트를 삽입하는 것이며, 이것은 자리표시자 태그 <references />로 인식됩니다. 이 형식은 이전 형식과 교환해서 사용할 수 없습니다–반드시 둘 중 하나를 선택해야 합니다.

추가적인 자리표시자 태그 <references />는 텍스트에 삽입될 수 있고, 해당 그룹에서, 해당 지점까지 모든 <ref> 태그는 그곳에 삽입될 것입니다.

만약 기사에 <references />를 포함하는 것을 잊으면, 각주는 나타나지 않을 것이지만, 참조는 페이지의 끝에 표시될 것입니다.

이 페이지 자체는 이 문자의 끝에서 하나와 같이 각주를 사용합니다.[note 1] 만약 "Edit this page"를 클릭함으로써 이 페이지의 소스를 보면, 각주의 작업 예제를 볼 수 있습니다.

위키텍스트 렌더링
The Sun is pretty big.<ref>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–25.</ref> The Moon, however, is not so big.<ref>R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44–46.</ref>

==Notes==
<references />

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–25.
  2. ^ R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44–46.

Multiple uses of the same footnote

각주에 고유한 식별자를 제공하기 위해, <ref name="name">를 사용하십시오. 그런-다음 같은 이름을 갖는 ref 태그를 사용함으로써 같은 각주를 다시 참조할 수 있습니다. 두 번째 태그 안의 텍스트는 문제가 되지 않는데, 왜냐하면 텍스트는 첫 번째 참조에 이미 존재하기 때문입니다. 전체 각주를 복사하거나, 다음과 같이 종료된 빈 참조 태그를 사용할 수 있습니다: <ref name="name" />.

다음 예제에서, 같은 소스는 세 번 인용됩니다.

위키텍스트 결과
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" />

==Notes==
<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]

Notes
  1. ^ a b c Remember that when you refer to the same footnote multiple times, the text from the first reference is used.
name 속성에 사용되는 식별자는 알파벳 문자를 요구함을 주목하십시오. 단지 숫자에만 의존하면 오류 메시지를 생성할 것입니다. 이름이 공백, 구두점 또는 기타 표식을 포함하지 않는 한 따옴표는 선택적입니다. 이름은 단순하게 유지하고 ASCII 문자 집합으로 제한하는 것을 추천합니다.

The <references /> tag

<references /> 태그는 페이지에서 해당 지점까지 <ref> 태그에서 정의된 모든 인용 텍스트를 삽입합니다. 예를 들어, 위의 인용에 기초된, note 그룹에 대해 참조가 있어야 합니다.

위키텍스트 결과
<references group="note"/>
  1. ^ This footnote is used as an example in the "How to use" section.

참조 목록은 반응형 폭을 가질 수 있습니다 (일부 경우에서 여러 열에 참조를 표시합니다). 해당 경우에서, responsive 속성이 해당 동작을 구성하기 위해 사용됩니다. 기본 구성을 사용하는 위키에서, 이것은 모든 각 페이지에서 발생할 것입니다; 다른 위키들에서, 그것을 활성화해야 합니다.

위키피디아의 일부 언어판에서, 긴 참조 목록은 <references />를 통합하는 템플릿 {{Reflist}}을 사용하여 배치될 수 있습니다. 그것은 여러 열에 참조 목록을 표시하기 위해 선택적 매개변수를 제공합니다. 예를 들어, 힌디어 및 인터랭귀지 위키피디ㅏ는 CSS 선택기 references-small을 참조 텍스트를 일반 텍스트보다 작게 만들기 위해 사용합니다.

이 방법으로 템플릿을 사용하는 것은 호환성, 성능 및 기능상의 이유로 강하게 비-추천합니다.

만약 페이지가 둘 이상의 <references /> 목록을 포함하면, 각 목록은 이전 참조 목록 뒤에 정의된 <ref> 태그를 포함합니다. 만약 이들 참조 목록이 템플릿에 의해 생성되면, 각각은 첫 번째 참조 목록 앞에 정의된 참조 태그를 나열하고, 참조 목록이 아닌 참조 태그가 있다고 말하는 오류 메시지가 있습니다.

Grouped references

이것은 원한다면 $wgAllowCiteGroups = false;에 의해 비-활성화될 수 있습니다.

다음 예제는 인용과 기타 각주에 대해 분리된 참조 목록을 생성합니다:

위키텍스트 결과
According to scientists, the Sun is pretty big.<ref>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–25.</ref> In fact, it is very big.<ref group="footnotes"> Take their word for it. Don't look directly at the sun!</ref>

==Notes==
<references group="footnotes" />

==References==
<references />
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–25.

익명 그룹은 이전 처럼 작동하지만, 이름-지어진 그룹으로 향하는 참조는 오직 지정된 <references /> 요소에 표시될 것입니다.

그룹 속성에 사용된 식별자는 알파벳 문자를 요구함을 주목하십시오. 오직 숫자-표시에 의존하면 오류 메시지를 생성할 것입니다. 이름이 공백, 구두점 또는 기타 표시를 포함하지 않은 한 따옴표는 선택적입니다. 이름은 단순하게 유지하고 ASCII 문자 집합으로 제한하는 것을 추천합니다.

주어진 그룹의 렌더링은 MediaWiki:Cite_link_label_group-name을 생성하고 사용된 기호를 공백 또는 줄 바꿈으로 구분된 순서대로 나열함으로써 위키 전체에 걸쳐 사용자-정의될 수 있습니다. 예를 들어, 만약 MediaWiki:Cite_link_label_group-lower-alpha가 다음 컨텐츠로 생성되면

a b c d e f g h i j k l m n o p q r s t u v w x y z

첫 번째 <ref group="lower-alpha">...</ref>[a]로 렌더링하고, 두 번째 것은 [b]로 렌더링하고, 이런 식으로 계속되어, 26번째 것은 [z]로 렌더링합니다. 사용자 지정 렌더링 그룹에서 정의된 기호의 숫자보다 더 많은 각주를 사용하는 것은 오류이므로, 이 그룹에서 27번째 각주는 오류의 원인이 됩니다.

다음 그룹 이름은 종종 각각 다음 메시지에 의해 사용자-지정 그룹으로 정의됩니다:

그룹 이름 메시지
upper-alpha MediaWiki:Cite link label group-upper-alpha
lower-alpha MediaWiki:Cite link label group-lower-alpha
upper-roman MediaWiki:Cite link label group-upper-roman
lower-roman MediaWiki:Cite link label group-lower-roman
lower-greek MediaWiki:Cite link label group-lower-greek
인용 링크 레이블 그룹 페이지는 기본적으로 생성되지 않습니다. 만약 위키가 그것들을 구성하지 않으면, <ref group="lower-alpha">...</ref>와 같은 마크업은 lower-alpha 1으로 렌더링될 것입니다.

Citing different parts of the same source

같은 저작물의 여러 부분이 기사에서 참조로 사용될 때, 참조 섹션에서 그것들을 클러스터링할 수 있습니다. 이것은 독자에게 같은 출처에서 유래한 참조를 식별하기 위한 방법을 제공합니다. 역시 매번 전체 출처를 반복하지 않고도 같은 출처의 다른 부분을 인용하는 것을 허용합니다.

위키텍스트 결과
According to scientists, the Sun is pretty big.<ref name="Miller">E. Miller, ''The Sun'', (New York: Academic Press, 2005).</ref> In fact, it is very big.<ref extends="Miller">p. 123</ref> Take their word for it. Don't look directly at the sun!<ref extends="Miller">p. 42</ref>

==References==
<references />
According to scientists, the Sun is pretty big.[1] In fact, it is very big.[1.1] Take their word for it. Don't look directly at the sun![1.2]
References

1. E. Miller, The Sun, (New York: Academic Press, 2005)
   1.1 ↑ p. 123
   1.2 ↑ p. 42

이 기능은 베타 클러스터 외부의 위키에서 아직 작동하지 않으므로, 위의 예가 모조품이라는 이유임을 주목하십시오. WMDE Technical Wishes/Book referencing에서 프로젝트 업데이트를 따를 수 있습니다.

Separating references from text

텍스트-내 참조는 텍스트를 또 다른 페이지로 복사하는 것을 쉽게 만듭니다; 다른 한편으로, 그것들은 읽기 어렵게 만듭니다. 많은 데이터, 인용문 또는 정교한 인용 템플릿을 포함하는 참조는 실제로 표시되는 텍스트보다 소스에서 훨씬 더 많은 부분을 차지할 수 있습니다. 이것을 방지하기 위해, 최신 버전의 확장은 일부 또는 모든 참조를 <references /> 섹션으로 실제로 독자에게 표시되는 위치로 이동하는 것을 허용합니다.

위키텍스트 결과
According to scientists, the Sun is pretty big.<ref name="miller" /> The Moon, however, is not so big.<ref name="smith" />

==Notes==
<references>
<ref name="miller">E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–25.</ref>
<ref name="smith">R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44–46.</ref>
</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–25.
  2. ^ R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44–46.

따라서, 위의 코드는 위의 첫 번째 예제와 같은 출력을 가질 것이지만, 참조 번호와 순서는 일반적으로 같지 않을 것입니다.

Substitution and embedded parser functions

인용의 <ref> 태그는 미디어위키의 파서 함수 (예를 들어 {{#ifexpr:…}}) 또는 변수 (예를 들어 {{PAGENAME}}) 또는 subst: 이전에 파싱되기 때문에, 이것들은 인용 참조 내에서 작동하지 않을 것입니다. 대신에, 마법 단어 magic word {{#tag:…}}를 사용해야 합니다.

위키텍스트 결과
Foo<ref>This is not working, see {{cite journal|url=https://www.google.com |author= |date= |accessdate={{subst:#time:Y-m-d|now}}|title=Search}}</ref> bar baz…
Foo{{#tag:ref|Whereas this does, see {{cite journal|url=https://www.google.com |author= |date= |accessdate={{subst:#time:Y-m-d|now}}|title=Search}}}} bar baz…
<references />

Foo[1] bar baz… Foo[2] bar baz…

  1. ^ This is not working, see "Search". Retrieved {{subst:#time:Y-m-d|now}}. {{cite journal}}: Check date values in: |accessdate= (help); Cite journal requires |journal= (help)
  2. ^ Whereas this does, see "Search". Retrieved 2021-03-11. {{cite journal}}: Cite journal requires |journal= (help)

Adding an automatic heading before the references list

미디어위키 1.28까지, 우리는 시스템 메시지 MediaWiki:Cite references prefix를 각 참조 목록 앞에 자동으로 삽입되는 위키-전체 제목을 정의하기 위해 사용할 수 있었습니다. 미디어위키 1.29에서, 이 시스템 메시지가 제거되었습니다. 이제 제목을 입력하는 해킹 방법은 MediaWiki:Common.js에 다음 코드를 추가하는 것입니다:

$(document).ready(function(){
    $('.mw-references-wrap').before('<h2>References</h2>');
});

만약 오직 텍스트 제목 (링크 또는 기타 활성 요소 없음)를 필요로 하면 MediaWiki:Common.css에 다음을 추가할 수 있습니다 (Chrome 4, IE9, FF 3.5, Safari 3.1, Opera 7):

.mw-references-wrap::before {
  content: "Blue references";
  color: #0645ad;
  text-decoration: none;
  background: none;
  font-style: italic;
  font-size: 100%;
  font-weight: bold;
  line-height: 1.6;
  direction: ltr;
  font-family: sans-serif;
}

Merging two texts into a single reference

전형적인 Wikisource 문제는 소스 자료에서 여러 페이지에 걸쳐있는 참조입니다. 이것들은 참조의 첫 번째 부분에 대해 {{name}} 태그를 사용하고, 같은 이름을 사용하여 태그 {{name}}로 다음 부분에 태그를 지정하여 병합될 수 있습니다.

예제:

위키텍스트 결과
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.</ref>

<ref follow="main">Simply include the additional text in a tag with the &lt;ref follow="…"> attribute, matching the first ref's name.</ref>

==References==
<references/>

This is an example of merging multiple texts into the same footnote.[1]


References

  1. ^ Remember that all the texts will be included in the reference containing the name="…" attribute. Simply include the additional text in a tag with the <ref follow="…"> attribute, matching the first ref's name.

이 구문을 사용할 때, 각주의 "follow" 부분이 참조의 첫 부분과 같은 페이지에 포함되도록 주의하십시오. 참조 이름은 숫자로 시작할 수 없으므로, 항상 <ref name="p32"><ref follow="p32">>와 같은 텍스트를 포함함을 주목하십시오.

Customization

<ref><references>의 출력 형식은 미디어위키 메시지를 통해 거의 완벽하게 사용자-정의할 수 있으며, 예를 들어 위키 구성에 따라 미디어위키 이름공간을 통해 수정될 수 있습니다.

<ref><references>의 출력과, 만약 있다면, 여기에 전달되는 값 ($1, $2, $3 ...)을 제어하는 메시지의 목록에 대해, 미디어위키에서 직접 얻어질 수 있는 기본값의 최신 목록을 참조하십시오.

불완전한 목록
  • cite_reference_link_key_with_num
    1. key
    2. num
  • cite_reference_link_prefix
  • cite_reference_link_suffix
  • cite_references_link_prefix
  • cite_references_link_suffix
  • cite_reference_link
    1. ref ID
    2. backlink ID
    3. count to display
  • cite_references_link_one
    • <references />가 출력하는 출처 목록의 형식을 지정하기 위해 사용되며, 백링크 ID, 참조 ID 및 메모 텍스트의 세 가지를 구성합니다.
    1. backlink ID — 출처 목록의 번호 순서를 만드는 데 사용됩니다.
    2. ref ID — 텍스트의 실제 참조로 되돌아가는 링크를 위해 사용되며, 이것은 여기에서 ^ 기호를 구성할 수 있다는 것입니다.
    3. text of note — 출처 정보를 설명하는 위에 사용된 텍스트
  • cite_references_link_many
    1. backlink ID
    2. list of links
    3. text of note
  • cite_references_link_many_format
    1. ref ID
    2. 백링크로 사용하기 위한 숫자 값
    3. 사용자-지정 값 (백링크로 사용하기 위한 cite_references_link_many_format_backlink_labels에서 정의된 것처럼)
  • cite_references_link_many_format_backlink_labels
  • cite_references_link_many_sep
  • cite_references_link_many_and
  • cite_references_suffix

Set references to use ^ and letters

기본 위쪽 화살표 (↑)를 캐럿 (^)으로 대체하기 위해, 다음 시스템 메시지를 수정하십시오. 이들 모든 페이지는 Special:AllMessages에서 찾을 수 있습니다.

MediaWiki:Cite references link one
From To
<li id="$1"$4><span class="mw-cite-backlink">[[#$2|↑]]</span> $3</li>
<li id="$1"$4><span class="mw-cite-backlink">[[#$2|^]]</span> $3</li>
MediaWiki:Cite references link many
From To
<li id="$1"$4><span class="mw-cite-backlink"> $2</span> $3</li>
<li id="$1"$4><span class="mw-cite-backlink">^ $2</span> $3</li>
MediaWiki:Cite references link many format

$2를 $3로 바꾸면 링크를 1.0, 1.1, 1.2에서 a, b, c 등으로 변경합니다.

From To
<sup>[[#$1|$2]]</sup>
<sup>[[#$1|$3]]</sup>

이들 페이지를 처음 검색하면 일치하는 결과가 없을 것입니다. 코드를 편집하기 위해 단순히 "Create this page"를 클릭하십시오. 참조를 갖는 페이지가 다시 작성될 때까지 변경 사항이 표시되지 않습니다.

Set reference and reference number highlighting

미디어위키 1.26에서 시작하여 강조 표시를 위한 선택기가 Cite/modules/ext.cite.css에 통합되었습니다. 따라서 아래의 CSS 코드는 더 이상 수동으로 추가할 필요가 없습니다.

MediaWiki:Common.css 페이지에 다음 코드를 추가합니다.

/* make the Cite extension list of references look smaller and highlight clicked reference in blue */
ol.references { font-size: 90%; }
ol.references li:target { background-color: #ddeeff; }
sup.reference:target { background-color: #ddeeff; }

Broken references

만약 <ref> 또는 <references /> 태그가 잘못 사용되면, Cite 확장은 페이지에 오류 메시지를 더할 것이고, "Pages with reference errors" 카테고리를 추가할 것입니다. 이들 오류 메시지는 기사 컨텐츠 또는 참조 섹션에서 사용자 인터페이스 언어로 나타납니다. 예를 들어:

위키텍스트 결과
This is an example of a references error message.<ref broken>Intended text.</ref>

==Notes==
<references />

This is an example of a references error message.Cite error: The <ref> tag has too many names (see the help page).

Notes

Parsoid의 인용 오류 표현에 대해 사양을 참조하십시오.

See also