Modèle:Unfocused/doc

De Wikisisar
< Modèle:Unfocused
Révision datée du 21 octobre 2017 à 21:02 par TDLaouer (discussion | contributions) (1 révision importée)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:Modèle:Unfocused
                  | [[Category:{{#switch:Modèle |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 |{{#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 |{{#if:reason|reason=}} parameter.

Example of use
{{{{#if:Unfocused|Unfocused| tlc|...}}{{#ifeq:reason=the article covers both widgets and doodads and should be split|reason=the article covers both widgets and doodads and should be split| |reason=the article covers both widgets and doodads and should be split | }}{{#ifeq:date=mai 2024|date=mai 2024| |date=mai 2024 | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}

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., {{{{#if:Unfocused|Unfocused| tlc|...}}{{#ifeq:{{SUBST:DATE}}|{{SUBST:DATE}}| |{{SUBST:DATE}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}. See Help:Substitution for more information.
  • The |{{#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

  • |{{#if:date|date=}}mai 2024 - required parameter, will be added by a bot if omitted
  • |{{#if:reason|reason=}}text - optional parameter which adds advisory text
  • |{{#if:talk|talk=}}section - optional parameter which indicates the talk page section

Examples

Paste-ready example: {{{{#if:Unfocused|Unfocused| tlc|...}}{{#ifeq:date=mai 2024|date=mai 2024| |date=mai 2024 | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
Example with reason: {{{{#if:Unfocused|Unfocused| tlc|...}}{{#ifeq:date=mai 2024|date=mai 2024| |date=mai 2024 | }}{{#ifeq:reason= |reason= | |reason= | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
Example with talk: {{{{#if:Unfocused|Unfocused| tlc|...}}{{#ifeq:date=mai 2024|date=mai 2024| |date=mai 2024 | }}{{#ifeq:talk= |talk= | |talk= | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}

TemplateData

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

See the monthly error report for this template.

TemplateData for Unfocused

{{#ifeq:doc|sandbox||

}} <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