“模板:Unreferenced”的版本间的差异

wikilife>Mathglot
(Update to add 'find' param to control display of {{find sources}}, per this discussion.)
(没有差异)

2020年7月2日 (四) 10:07的版本

{{#ifeq:|left|}}

50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:unreferenced |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:模板:Unreferenced
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}
{{#if:||{{#ifeq:Unreferenced|Unreferenced|}}}}

Usage

When to use

You should only add this template to articles that contain no citations or references of any kind.

Do not add this template:

  • In articles that have some citations, but not enough, the {{More citations needed}} template should be used instead as a general template, or the {{Unreferenced section}} template for individual sections that have no citations.
  • In articles containing a list of sources at the end, but no inline citations, including parenthetical references or in-text attributions, consider {{no footnotes}} when the article would be significantly improved by detailed attribution of sources to specific claims.
  • Watch out for lists of general references that someone has incorrectly listed under ==External links==. If the link leads to a reliable source that supports some article content, then that website is a reference, not an external link.
  • Other templates, listed below, should be used when the citations are inadequate for other reasons.

Alternatives:

  • Be bold! Consider searching for sources and citing them in the article, instead of adding this template.
  • In articles about people and businesses, consider using the more specific {{Third-party sources}} template, to encourage citation of WP:Independent sources rather than the subject's own website.
  • See Wikipedia:Biographies of living people for guidance on dealing with unreferenced biographies of living people.
  • Consider not adding this template to very brief stubs, since anyone visiting the page can see, in a single glance, that it contains no citations.

How to use

{{Unreferenced|date=11月 2024}}

or

{{subst:Unreferenced}}

Substitution of this template will automatically fill the date parameter.

The optional |{{SAFESUBST:#if:find|find=}} parameter is available, for modifying the operation of the {{find sources}} links displayed by the template:

{{Unreferenced|find=search keyword(s)|date=11月 2024}}

see below for details.

To flag an individual section as being unreferenced, use the {{Unreferenced section}} template, which categorizes more narrowly:

{{Unreferenced section|date=11月 2024}}

Date parameter:

The |{{SAFESUBST:#if:date|date=}} parameter is (generally[1]) used to indicate when the template was added to a page. An example of its usage is {{Unreferenced|date=11月 2024}}. Adding this parameter sorts the article into monthly subcategories of Category:Articles lacking sources, rather than adding it to Category:Articles lacking sources itself, allowing the oldest problems to be identified and dealt with first. If the date parameter is omitted, a bot will add it later.

Find parameter:

The |{{SAFESUBST:#if:find|find=}} parameter is available to control the presentation and operation of the {{find sources}} links optionally displayed by the {{Unreferenced}} template. By default, the template displays {{find sources}} with a quoted search term equivalent to the exact article title. Sometimes, especially if the article has a long, descriptive title, or if it includes parenthetical disambiguation terms, this may not give useful results. The find parameter can be used to provide the search keywords of your choice to the {{find sources}} links. The value "none" may be passed (|find=none) to suppress display of find sources.

General information

This template can either be placed at the top of an article, at the bottom of the article page (in an empty "References" or "Notes" section—usually just before a {{Reflist}} template), or on the article's talk page.

Categorization

This template adds the article to Category:Articles lacking sources and a monthly subcategory such as Category:Articles lacking sources from 11月 2024 (as described above), which are hidden categories.

Differences from related templates

The similar template {{More citations needed}} adds an article to Category:Articles needing additional references. {{More medical citations needed}} adds the article to Category:Articles needing additional medical references as well as Category:Articles needing additional references.

Short-cut

TemplateData

{{#if:|{{#switch:
|={{#ifeq:{{safesubst:#switch: {{{lc}}}
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Unreferenced}}.
|#default=[1]

}}|This is the {{#if:|TemplateData|TemplateData}} documentation for this template used by VisualEditor and other tools; {{#switch:

|={{#ifeq:{{safesubst:#switch: yes
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Unreferenced}}.
|#default=[2]

}}}}

TemplateData for Unreferenced

{{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:模板|模板
   | template
   | other
   }}
 }}

| template = {{#if:{{#ifeq:Unrefer|sandbox|1}}{{#ifeq:Unreferenced|doc|1}}||

}} | other | #default = }} <templatedata> { "description": "This template generates a tag to indicate that an article has no citations.", "format": "inline", "params": { "1": { "label": "Type (e.g., section)",

"description": "Text to replace the word \"article\", usually \"section\". This is a legacy feature, and this usage has been replaced with the separate '{{#ifeq:{{#if:|left}}|left|}}' template.",

"type": "string", "required": false, "deprecated": true, "autovalue": "section", "example": "section" }, "date": { "label": "Month and year", "description": "Provides the month and year of the citation request; e.g., 'January 2013', but not 'jan13'", "type": "string", "required": false, "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "example": "January 2013", "suggested": true } }, "paramOrder": [ "1", "date" ] } </templatedata>

Tracking categories

  • [[:Category:{{#ifeq:All artic|Category:|模板:Str right|All articles lacking sources}}|{{#if:|{{{name}}}|Category:{{#ifeq:All artic|Category:|模板:Str right|All articles lacking sources}}}}]] (0)
  • [[:Category:{{#ifeq:All artic|Category:|模板:Str right|All articles needing additional references}}|{{#if:|{{{name}}}|Category:{{#ifeq:All artic|Category:|模板:Str right|All articles needing additional references}}}}]] (0)

See also

Footnotes

1 }}
     | -moz-column-width: {{{1}}}; -webkit-column-width: {{{1}}}; column-width: {{{1}}};
     | {{#switch:|1=|2=-moz-column-width: 30em; -webkit-column-width: 30em; column-width: 30em;|#default=-moz-column-width: 25em; -webkit-column-width: 25em; column-width: 25em;}} }}
   | {{#if: 
     | -moz-column-width: {{{colwidth}}}; -webkit-column-width: {{{colwidth}}}; column-width: {{{colwidth}}}; }} }} list-style-type: {{#switch: 
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = {{{group}}}
   | #default = decimal}};">
  1. Because of the nature of the workflow using the current date makes sense, it is simpler to add, especially for the WP:bots it means that older dated categories do not have to be constantly created and deleted, and it enables some measure of progress. Moreover it is "good enough" to get the articles into the workflow and the intention is to ensure they are cleaned up eventually. Occasionally however it may be useful to bulk add items, to older categories, for example when the system was initially set up, when merging two schemes or when adding to the current month would swamp it disproportionately.

{{#if:{{#ifeq:Unrefer|sandbox|1}}{{#ifeq:Unreferenced|doc|1}}|| }}