模板:Multiple issues

wikilife>Jc860352019年1月29日 (二) 23:30的版本 Module:Unsubst
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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

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

{{#ifeq:multiple issues |doc

    | 

{{#ifeq:show |show

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

Using too many individual article message boxes can distract from the article and make it unpleasant to look at, as in this example. This template tags articles or sections for multiple maintenance issues and then displays the alerts in a single box, as an alternative to using several space-consuming boxes.

Usage

Do not use this as the only message box on the article or section; it should be used with at least two other message boxes contained inside it.
Search for the best templates to express your issues at Wikipedia:Template messages or Wikipedia:Template messages/Examples.

The syntax for the template is:

{{Multiple issues|section=|
{{Issue 1}}
{{Issue 2}}
{{Issue 3}}
...
}}

where Issue 1, Issue 2, Issue 3, etc. are article maintenance templates (see Wikipedia:Template messages/Cleanup), which take their usual parameters, and {{Ambox}} templates, which usually should not be used. Each of these templates should be placed on individual lines, but must not be separated from each other by pipes or template parameters, because that would cause some or all of the banners to be hidden.

A |{{SAFESUBST:#if:section|section=}}yes| parameter can be used to modify the template to be used below a section header.

Example for an article

{{Multiple issues|
{{Orphan|date=January 2008}}
{{POV|date=June 2009}}
{{One source|date=March 2011}}
{{Notability|Corp|date=June 2012}}
}}

produces

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

Example for a section

{{Multiple issues|section=yes|
{{Unreferenced section|date=January 2012}}
{{Disputed-section|date=April 2012}}
{{Expand section|1=examples and additional citations|demospace=main|date=June 2012}}
}}

produces

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

General notes

  • Redundant issues: Please do not insert tags that are too similar to or redundant with each other. All articles that read like essays have an inappropriate tone, and in fact they end up in the same category, so it is unnecessary to add {{tone}} in addition to {{essay-like}}. {{Cleanup}} is very vague and so should be replaced with a more specific template whenever possible.
  • Too many issues: Similarly, if an article has many problems, please consider listing only the most important. A lengthy list is often less helpful than a shorter one. Remember that this tag is not intended as a badge of shame.
  • Only one issue: Don't use this template for a single issue; just use the stand-alone template. See Wikipedia:Template messages/Cleanup for a list of available tags.
  • Custom text: If no article maintenance template describes a problem, an {{Ambox}} lets you write custom text. Don't use it to add more than an article maintenance template says, since what is said should be concise and article maintenance templates usually are. In your custom text, link to a relevant policy or guideline so other editors understand why adherence to your Ambox is important. While an article maintenance template generally causes categorization that invites editing, an Ambox template does not, so, if at all feasible, use an article maintenance template instead.

Old syntax

Please see Template:Multiple issues/doc/old for the deprecated syntax this template used previously.

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

}}}}

TemplateData for Multiple issues

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

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

}} | other | #default = }} <templatedata> { "description": "This template is used to tag articles or sections for multiple maintenance issues and display the alerts in a single box.", "params": { "1": { "label": "Issues", "type": "content", "description": "The issues that you want to include. Use the full template syntax, with newlines between them.", "suggested": true }, "collapsed": { "label": "Collapsed", "description": "Allows the multiple messages to be hidden by default.", "example": "yes", "type": "string", "default": "no" }, "section": { "label": "Section", "description": "Allows the word \"article\" to be replaced with \"section\".", "example": "yes", "type": "string", "default": "no" } }, "format": "inline" } </templatedata>

Tracking categories

  • [[:Category:{{#ifeq:Pages usi|Category:|模板:Str right|Pages using multiple issues with unknown parameters}}|{{#if:|{{{name}}}|Category:{{#ifeq:Pages usi|Category:|模板:Str right|Pages using multiple issues with unknown parameters}}}}]] (0)
  • [[:Category:{{#ifeq:Articles |Category:|模板:Str right|Articles with multiple maintenance issues}}|{{#if:|{{{name}}}|Category:{{#ifeq:Articles |Category:|模板:Str right|Articles with multiple maintenance issues}}}}]] (0)

See also

{{#if:{{#ifeq:Multipl|sandbox|1}}{{#ifeq:Multiple issues|doc|1}}|| }}