Jump to content

Template:Verify

From Wikinews, the free news source you can write!
[edit] Template documentation

This optional template can be used in two ways. It can be used to indicate the source or sources of a specific statement or it can be used to indicate that a statement needs a source.

The markup produced by this template is not meant to appear in published articles and must be removed by the reviewer before the article is published. This markup is intended to facilitate and expedite the review process.

Note to authors: This template does not replace proper source citation. Any URL used with this template must still be listed in the Sources section, as required by WN:Source. When possible, include attribution directly in the article text (e.g., "according to AP"), which is always preferred and strongly recommended.

The following excerpt from WN:Source explains the intended use of {{verify}}:

Where long, numerous, or complex sources are used, it may be helpful to leave advice for reviewers on the article's talk page and/or within the article to guide them on what information is sourced from where. This significantly speeds up review and is deeply appreciated by reviewers.

This template only modifies text when an article is a draft and contains {{develop}}, {{review}}, or {{tasks}}. In the absence of all of these templates, {{verify}} defaults to hidden and is only visible in source.

Examples

[edit]

To indicate the source of a given statement, use: {{Verify|source1=https://someURL.com}} which will render:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla facilisi. Vestibulum vitae elit non velit accumsan gravida.[Source]

To indicate two sources for a given statement, use: {{Verify|source1=https://SomeURL.com|source2=https://SomeOtherURL.com}} which will render:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla facilisi. Vestibulum vitae elit non velit accumsan gravida.[Source, Source]

To indicate a statement needs a source, use: {{Verify}} with no parameters to render:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla facilisi. Vestibulum vitae elit non velit accumsan gravida.[Unsourced]

To hide the template but still provide source information to the reviewer, use: {{Verify|source1=https://someURL.com|visibility=hidden}} which will render:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla facilisi. Vestibulum vitae elit non velit accumsan gravida. (No visible output, but the source information remains in the wikitext.)

To indicate that sources support the focal event of the article, use: {{Verify|source1=https://someURL.com|source2=https://SomeOtherURL.com|focal_event=true}} which will render:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla facilisi. Vestibulum vitae elit non velit accumsan gravida.[SOURCE, SOURCE]

When focal_event=true, the word SOURCE is displayed in bold and uppercase to distinguish sources that support the focal event of the article.

Parameters

[edit]
  • source1: The URL of the primary source for the statement.
  • source2: An optional second URL that supports the statement.
  • source3: An optional third URL that supports the statement.
  • source4: An optional fourth URL that supports the statement.
  • focal_event: If set to true, replaces "Source" with "SOURCE" in bold and uppercase to indicate that the sources support the focal event of the article.
  • visibility: If set to hidden, prevents the template from rendering any output in the article. The source remains visible in the source editor but not in the preview or final output.

Note for reviewers

[edit]

All occurrences of this template in an article must be removed before publishing, as the template, even when hidden, will remain in the published article.

There are two options to manage the template broadly (all occurrences in a given article):

MarkupManager

[edit]

User:Michael.C.Wright/MarkupManager is an interface based on javascript written specifically to allow one to scan for, hide, unhide, or remove all occurrences of the template from an article.

TemplateScript

[edit]

TemplateScript[1] is a tool based on javascript that can be used to manipulate all occurrences of {{Verify}}, while editing the article, with a single click. It was not specifically intended for this use but it does work.

The following code works:

{ name: 'Remove {{Verify}} template', script: function(editor) { // Remove all occurrences of {{Verify}} with or without parameters editor.replace(/\{\{Verify.*?\}\}/gi, ''); editor.appendEditSummary('Remove all instances of the {{Verify}} template.'); }, enabled: true },

The following code will hide all occurrences of the template in an article:

{ name: 'Hide {{Verify}} templates', script: function(editor) { // Find all instances of {{Verify}} that do not already have "visibility=hidden" editor.replace(/\{\{Verify(?![^}]*visibility\s*=\s*hidden)(.*?)\}\}/gi, '{{Verify$1|visibility=hidden}}'); editor.appendEditSummary('Add "visibility=hidden" to all instances of the {{Verify}} template without it.'); }, enabled: true },

See also

[edit]

This template uses Module:DetectDraft

Template description above

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Primary source URLsource1

The URL of the primary source for a given statement.

Example
https://SomeURL.com
Stringoptional
Second source URLsource2

An optional second URL for an additional source.

Example
https://AnotherURL.com
Stringoptional
Third source URLsource3

An optional third URL for an additional source.

Example
https://ThirdURL.com
Stringoptional
Fourth source URLsource4

An optional fourth URL for an additional source.

Example
https://FourthURL.com
Stringoptional
focal_eventfocal_event

If set to "true", replaces 'Source' with '**SOURCE**' in bold and uppercase.

Default
false
Example
focal_event=true
Booleanoptional
visibilityvisibility

If set to "hidden", this will prevent the template from rendering any text and must instead be viewed using the source editor.

Suggested values
hidden
Default
Visible (true)
Example
visibility=hidden
Booleanoptional