User:Phlsph7/AddCitationNeededTagsToUnreferencedParagraphs

Source: Wikipedia, the free encyclopedia.
User script
Add "Citation needed" tags to unreferenced paragraphs
DescriptionInserts "Citation needed" tags to paragraphs lacking references.
Author(s)Phlsph7
First releasedMarch 16, 2023; 12 months ago (2023-03-16)
UpdatedMarch 19, 2023
    (12 months ago)
Browser supportall modern browsers
Skin supportall
SourceUser:Phlsph7/AddCitationNeededTagsToUnreferencedParagraphs.js

Add "Citation needed" tags to unreferenced paragraphs is a user script to assist editors in marking unreferenced paragraphs with

parenthetical style
and that it may mistake text in multiline comments or templates for paragraphs.

Installation

To install this script, go to your common.js and add the following line:

importScript('User:Phlsph7/AddCitationNeededTagsToUnreferencedParagraphs.js'); // Backlink: [[User:Phlsph7/AddCitationNeededTagsToUnreferencedParagraphs.js]]

If you run into problems or have suggestions on how to improve the script, please discuss them at User_talk:Phlsph7/AddCitationNeededTagsToUnreferencedParagraphs.

Usage

After the script is installed, it can be accessed when editing pages via the toolbox by clicking on the link Add "Citation needed" tags. Upon clicking the link, the wikitext in the text editor is changed accordingly and an edit summary is added. A short notification appears to inform the user of how many tags were added and what other tags are already found in the article.

Explanation and limitations

According to WP:Verifiability, "all material must be attributable to reliable, published sources" and "any material challenged or likely to be challenged must be supported by inline citations." Inline citations are usually placed after a passage to support it. This normally happens using the reftags (<ref>...</ref>) or similar templates ({{R}}, {{sfn}}, ...).

The script has various limitations that can result in the addition of tags where they do not belong or in the oversight of unreferenced paragraphs. Because of them, it is essential that the editor previews the added tags and makes the necessary adjustments before publishing the result.

Because of these limitations, even articles to which no tags are added may be in violation of the Wikipedia verifiability criteria.