wikilife>Vanisaac
→‎See alsoclean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other
 
Ph9讨论 | 贡献
(导入1个版本)
 
(没有差异)

2020年12月27日 (日) 14:52的最新版本

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

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

Usage编辑

This template is used to signal that the article taken as a whole may lack a single, central point of focus or appears to be about more than one topic. It may benefit from being split.

Placement and talk

This is a dispute template which should be placed at the top of the article.

After posting this template, please start a section on the article's talk page to discuss. You can use the optional |{{SAFESUBST:#if:talk|talk=}} parameter to specify the name of a specific section on the talk page.

If the article appears to be about two or more specific topics, or meanders such that you cannot identify a single central focus, please specify this using the |{{SAFESUBST:#if:reason|reason=}} parameter.

Example of use
{{Unfocused|reason=the article covers both widgets and doodads and should be split|date=11月 2024}}

This renders as:

{{#ifeq:{{{small}}}|left|}}

Do not capitalize the beginning of the reason, since it is preceded by, "In particular, ". Also do not add a full stop at the end of the reason because the template automatically supplies it.

Notes:

  • The date-substitution template may be used to automatically generate the date, e.g., {{Unfocused|{{SUBST:DATE}}}}. See Help:Substitution for more information.
  • The |{{SAFESUBST:#if:date|date=}} parameter need not be added by the editor: if not entered, a bot will soon add it. The date parameter consists of the full English name of the current month with initial capital, a space, and the year, not full dates; e.g., "January 2013", but not "jan13". Any deviation from these two rules will result in an "invalid date parameter" error.

Parameters编辑

  • |{{SAFESUBST:#if:date|date=}}11月 2024 - required parameter, will be added by a bot if omitted
  • |{{SAFESUBST:#if:reason|reason=}}text - optional parameter which adds advisory text
  • |{{SAFESUBST:#if:talk|talk=}}section - optional parameter which indicates the talk page section
  • |{{SAFESUBST:#if:section|section=}}yes - optional parameter which replaces the word "article" with the word "section" to indicate that it is the section where it is placed that lacks focus

Examples编辑

Paste-ready example: {{Unfocused|date=11月 2024}}
Example with reason: {{Unfocused|date=11月 2024|reason=}}
Example with talk: {{Unfocused|date=11月 2024|talk=}}

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:Unfocused}}.
|#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:Unfocused}}.
|#default=[2]

}}}}

TemplateData for Unfocused

{{#switch:

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

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

}} | other | #default = }} <templatedata>{ "description": "A template to indicate that an article is unfocused", "params": { "date": { "label": "Date", "description": "The month and year the template was added", "example": "October 2015", "autovalue": "{{SUBST:CURRENTMONTHNAME}} {{SUBST:CURRENTYEAR}}", "type": "string", "required": true }, "reason": { "label": "Reason", "description": "A reason for adding the template", "type": "string" }, "talk": { "label": "Talk", "aliases": ["1"], "description": "The section heading on the article's talk page with relevant discussion", "type": "string" } }}</templatedata>

Redirects编辑

See also编辑