Jump to content

Template:Citation needed: Difference between revisions

From Consumer Rights Wiki
Kostas (talk | contribs)
m Improve template logic, formating, move to table for examples
Changed visualeditor docs.
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><sup>&#91;<i>citation needed</i>{{#if:{{{reason|}}}|&#32;&#45;&#32;{{{reason}}}}}{{#if:{{{date|}}}|&#32;&#40;{{{date}}}&#41;}}&#93;</sup></includeonly><noinclude>
<includeonly><sup>&#91;<i>[[Consumer Rights Wiki:Verifiability|citation needed]]</i>{{#if:{{{reason|}}}|&#32;&#45;&#32;{{{reason}}}}}{{#if:{{{date|}}}|&#32;&#40;{{{date}}}&#41;}}&#93;</sup>{{#ifeq:{{{nocat}}}|yes||[[Category:Articles in need of citations]]}}</includeonly><noinclude>
Use this template when an uncited claim is made in an article.  
Use this template when an uncited claim is made in an article. The "[[:Category: Articles in need of citations|Articles in need of citations]]" category is automatically applied to the article when published.
== Usage ==
== Usage ==
Simply add <nowiki>{{Citation needed}}</nowiki> after the statement that needs a citation.
Simply add <nowiki>{{Citation needed}}</nowiki> after the statement that needs a citation.
Line 32: Line 32:
"date": {
"date": {
"description": "When the tag was added ",
"description": "When the tag was added ",
"type": "date"
"type": "date",
"label": "Date"
},
},
"reason": {
"reason": {
"description": "Why a citation is needed (if unclear)",
"description": "Why a citation is needed (if unclear)",
"type": "string",
"label": "Reason"
},
"nocat": {
"label": "Disable category",
"description": "If set to “yes”, disable the ‘Articles in need of citations’ category from automatically appearing.",
"example": "“yes” to disable category, anything else to enable.",
"type": "string"
"type": "string"
}
}
},
},
"description": "The parameters accepted by this template. "
"description": "The parameters accepted by this template. ",
"format": "inline"
}
}
</templatedata>
</templatedata>

Latest revision as of 19:12, 20 October 2025

Use this template when an uncited claim is made in an article. The "Articles in need of citations" category is automatically applied to the article when published.

Usage

Simply add {{Citation needed}} after the statement that needs a citation. This creates a superscript "citation needed" tag that appears as:

I want to mark this[citation needed]

Examples

Examples of usage for the template

Example Result
Some cars can fly{{Citation needed}} Some cars can fly[citation needed]
The sky is blue{{Citation needed|date=January 2024}} The sky is blue[citation needed (January 2024)]
This fact requires proof{{Citation needed|reason=Source is personal account}} This fact requires proof[citation needed - Source is personal account]
This fact requires proof{{Citation needed|reason=No reliable sources|date=Jan 2024}} This fact also requires proof[citation needed - No reliable sources (Jan 2024)]

Template Data

The parameters accepted by this template.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Datedate

When the tag was added

Dateoptional
Reasonreason

Why a citation is needed (if unclear)

Stringoptional
Disable categorynocat

If set to “yes”, disable the ‘Articles in need of citations’ category from automatically appearing.

Example
“yes” to disable category, anything else to enable.
Stringoptional

See also