Jump to content

උදවු:Cite errors

විකිපීඩියා වෙතින්

The Wikipedia footnotes system has the ability to detect errors. This page documents the error messages and provides an understanding of the problem and solutions.

Error messages

[සංස්කරණය]

The messages will be formatted as an error, and are visible on the rendered page after hitting the "Publish changes" button.

These messages are dependent on the language setting in Special:Preferences— this list applies only to "en — English".

  • අනීතික <ref> ටැගය;

නාමයක් නොමැති ආශ්‍රේය සඳහා පෙළක් තිබිය යුතුය

  • අනීතික <ref> ටැගය;

පෙළ විරහිත ආශ්‍රේය සඳහා නමක් තිබිය යුතුය

  • අනීතික <ref> ටැගය;

අනීතික නාමයන්, නිද. පමණට වැඩි

  • අනීතික <ref> ටැගය;

නම සරල පූර්ණාංකයක් විය නොහැක. විස්තරශීලි ශිර්ෂයක් භාවිතා කරන්න

  • <ref> ටැගය සොයාගත නොහැකි බැවින් </ref> වසා දමමින්
  • අනීතික <ref> ටැගය;

$1 නමැති ආශ්‍රේයන් සඳහා කිසිදු පෙළක් සපයා නොතිබුණි

  • අනීතික <references> ටැගය;

කිසිම පරාමිතිකයකට ඉඩ නොදෙයි. <references /> භාවිත කරන්න

  • උපයෝග්‍ය පසුසබැඳුම් ලේබල අවසාන විය. MediaWiki:Cite references link many format backlink labels පණිවුඩයෙහි තවත් ඒවා අර්ථදක්වන්න
  • "$1" නම් කණ්ඩායම සඳහා <ref> ටැග පැවතුණත්, ඊට අදාළ <references group="$1"/> ටැග සොයාගත නොහැකි විය.
  • <references> හි <ref> නම් ටැගය "$1" යන පරස්පර සමූහ ගුණාංග දරයි.
  • මාධ්‍යවිකි:Cite error references missing group
  • <references> හි "$1" නමැති <ref> ටැගය පෙර පෙළෙහි භාවිතා වූයේ නැත.
  • <references> හි <ref> ටැගයට නමක් ආදේශකොට නැත.
  • Invalid <ref> tag; name "$1" defined multiple times with different content
  • <references> හි "$1" නමැති <ref> ටැගයට අන්තර්ගතයක් නැත.
  • උපුටාදැක්වීම් දෝෂය: $1

Other problems

[සංස්කරණය]

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

In ref name use only straight quotation marks

[සංස්කරණය]

When you cite the same source more than once on a page, use only straight quotation marks " " to enclose the reference name. Do not use curly quotation marks “ ”, which are treated as simply another character, not as quotation marks. An error message will appear if the original and repeat references use a mix of straight and curly quotation marks. The syntax to define a named reference is:

<ref name="name">content</ref>

To repeat the named reference:

<ref name="name" />

A page shows in the reference error category, but no cite errors show

[සංස්කරණය]

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>}}
[සංස්කරණය]

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

[සංස්කරණය]

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.

Some templates may include <ref>...</ref> tags; for example {{botanist}}. If a template of this type is 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.

Method 1

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

Method 2

Add the following code to the end of the template:

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

Method 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.

Method 4

Include the <references /> tag within the template itself using the group parameter. See Help talk:Cite errors/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.

refTools can be enabled via මනාප → සංස්කරණය කරනවා → Usability features. It includes an error checking tool for common problems.

Messages, namespaces and categories

[සංස්කරණය]

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.

"https://si.wikipedia.org/w/index.php?title=උදවු:Cite_errors&oldid=523670" වෙතින් සම්ප්‍රවේශනය කෙරිණි