Pomoč:Napake pri sklicevanju

Iz Wikipedije, proste enciklopedije
(Preusmerjeno s strani Pomoč:Napake v navajanju)

Wikipedijin sistem sklicev na koncu besedila (footnotes) omogoča detektiranje napak. Ta stran opisuje napakovna sporočila in pomaga pri razumevanju problema in njegove rešitve.

Pregled[uredi | uredi kodo]

Za podrobne podatke o tej temi glej Pomoč:Sklici na koncu besedila.

Cite.php je MediaWiki razširitev (extension) inamenjen sistemu za sklice na koncu besedila.

<ref> Enkratna uporaba sklica je definirana z vsebino znotraj <ref>...</ref>:

<ref>vsebina</ref>

Večkratna uporaba sklica se lahko definira z imenom:

<ref name="foo">vsebina</ref>

Uporaba poimenovanega sklica:

<ref name="foo" />

Sklici so lahko definirani v skupinah:

<ref group="foo">vsebina</ref>

<references /> Za prikaz seznama sklicev, za vsemi oznakami <ref>...</ref>, vključite:

<references />

Za prikaz seznama sklicev definiranih v skupinah, vključite:

<references group="foo" />

Imena[uredi | uredi kodo]

Imena za sklice in skupine na koncu besedila morajo slediti sledečim pravilom:

  • Imena so občutljiva na velike in male črke
  • Imena ne smejo biti le števlične vrednosti
  • Imena morajo biti unikatna - ne smete uporabiti isto ime za dve različni skupini iali sklica
  • Navajanja so optimalna, če so znaki črke A–Z, a–z, cifre 0–9 in simboli !$%&()*,-.:;<@[]^_`{|}~
  • Vključitev kateregakoli drugega znaka, vključno s presledki, zahtevajo, da je ime znotraj narekovajev (")
  • Ne smejo vsebovati znaka manjše (<) ali simbola za navedke (")
  • Prosimo, da uporabljate enostavna imena, ki so omejena na standardno angleško abecedo in števila.
  • Imena lahko neobvezno dodate, tudi če to ni zahtevano.


Predloge[uredi | uredi kodo]

Razvitih je bilo več predlog nemenjenih uporabi s sklici:

  • {{Sklici}} doda oznako <references /> z nekaj možnostmi oblikovanja
  • {{R}} vsebuje do 5 poimenovanih sklicev
  • {{Sfn}} vsebuje poimenovane sklice za kratke sklice

Napakovna sporočila[uredi | uredi kodo]

Sporočilo bo oblikovano kot napaka.


Neveljavna oznaka <ref>; sklici brez imena morajo imeti vsebino (glej stran pomoči).
Stran pomoči
Neveljavna oznaka <ref>; sklici brez vsebine morajo imeti ime (glej stran pomoči).
Stran pomoči
Oznaka <ref> vsebuje preveč imen (glej stran pomoči).
Stran pomoči
Neveljavna oznaka <ref>; ime ne sme biti le število— uporabite opisni naslov (glej stran pomoči).
Stran pomoči
Paru <ref> oznak manjka zaključni </ref> (glej stran pomoči).
Stran pomoči
Neveljavna oznaka <ref>; sklici, poimenovani $1, ne vsebujejo besedila (glej stran pomoči).
Stran pomoči
Neveljavna oznaka <ref>; sklici, poimenovani $1, so definirani večkrat z različno vsebino (glej stran pomoči).
Stran pomoči
Neveljavna oznaka <references>; parametri niso dovoljeni. Uporabite <references/> (glej stran pomoči).
Stran pomoči
Neveljavna oznaka <ref>; dovoljen je le parameter "group". Uporabite predlogo {{Sklici}}, <references/> ali <references group="..."/> (glej stran pomoči).
Stran pomoči
Na tej strani obstajajo oznake <ref>, toda sklici se ne bodo izpisali brez predloge {{sklici}} (glej stran pomoči).
Stran pomoči
Zmanjkalo je oznak za povratne povezave (glej stran pomoči).
Stran pomoči
Obstajajo <ref group=$1> oznake na tej strani, toda sklici se ne bodo izpisali brez predloge {{sklici|group=$1}} (glej stran pomoči).
Stran pomoči
Sklic definiran v seznamu ima atribut nasprotujoče si skupine "$1" (glej stran pomoči).
Stran pomoči
Sklic definiran v seznamu z imenom skupine "$1" ni uporabljen v vsebini (glej stran pomoči).
Stran pomoči
Sklic definiran v seznamu imenovan "$1" ni uporabljen v vsebini (glej stran pomoči).
Stran pomoči
Sklic definiran v seznamu nima imena (glej stran pomoči).
Stran pomoči
Sklic definiran v seznamu z imenov "$1" je bil vključen, toda ni definiran v oznaki <references> (glej stran pomoči).
Stran pomoči
Notranja napaka; neveljaven $str in/ali $key. To se ne bi nikoli smelo zgoditi (glej stran pomoči).
Stran pomoči
Notranja napaka; neveljavni skladovni ključ. To se ne bi nikoli smelo zgoditi (glej stran pomoči).
Stran pomoči
Sklic umrl; $1: $2; (glej stran pomoči).
Stran pomoči
Napaka pri navajanju: $1
Stran pomoči

Drugi problemi[uredi | uredi kodo]

Some problems may not show a cite error message, while others may not be obvious.

A page shows in the reference error category, but no cite errors show[uredi | uredi kodo]

If <ref>...</ref> includes a URL with an =, and if the reference is inside a template, then the template will fail. Depending on the placement of the URL, the cite error message may not display, but the page will be included in the error category. Ensure that = are encoded as &#61;

refTools should catch this problem.

For example, an incorrectly nested reference where {{lower}} is being used to make the reference smaller:

{{lower|<ref>content1<ref>content2</ref>[http://www.washingtoninstitute.org/templateC05.php?CID=2386]</ref>}}

Reference links show in the body of the article, but do not show in the reference list[uredi | uredi kodo]

This may be caused by a template that is not properly closed with }}.

It can also be caused by multiple footnotes that are defined to use the same name. Links will be generated for both, but only the first will show in the references list: For example:

<ref name="foo">content1</ref>
<ref name="foo">content2</ref>

Only content1 will show. refTools will catch this problem.

Content on a non-article page is missing[uredi | uredi kodo]

If a footnote does not have a closing </ref>, it will "eat" the following text, causing it to not show. This normally shows a cite error, unless it is the last footnote on the page. Normally, this would then suppress the <references /> tag, generating an error, but the message for a missing <references /> tag is suppressed on non-article pages. refTools will catch this problem.

Predloge[uredi | uredi kodo]

Some templates may include <ref>...</ref> tags; for example {{botanist}}. If a template of this type in included without the <references /> tag, then an error is generated, but the problem is not obvious. refTools will not catch this problem.

Several methods are available for solving this problem. Below they are listed in order of preference. Note that only one of these is required, not all of them.

Metoda 1

If the template has a documentation page, add <references /> there.

Metoda 2

Add the following code to the end of the template:

<noinclude>
{{Template reference list}}
</noinclude>

Metoda 3

Add the following code to the end of the template:

<noinclude>
<div style="display: none"><references /></div>
</noinclude>

Cons: Hides the references, not informing the user that it is there; editors won't be able to check the references formatting.

Metoda 4

Include the <references /> tag within the template itself using the group parameter. See Pogovor o pomoči:Napake v navajanju/Testcases1 for an example.

Cons: Creates a separate references section that may not be obvious; does not allow reuse of the references within the body of the article.

Orodja[uredi | uredi kodo]

refTools can be enabled via Nastavitve → Urejanje → Usability features. It includes an error checking tool for common problems.

Sporočila, imenski prostori in kategorije[uredi | uredi kodo]

Internal messages are generated by the Cite.php extension and shown as a MediaWiki message. See the parser hooks section of Special:Version for the installed version of Cite.php. These messages are in the MediaWiki namespace and can be modified only by admins.

The MediaWiki messages use {{broken ref}} to control the namespace and category. Messages show only on main (article), user, template, category, help and file pages. Talk pages do not show error messages.

Category default sorting is by {{PAGENAME}} for the main namespace and by τ{{PAGENAME}} for template, category, help and file namespaces.