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

wikilife>Primefac
(Changed protection level for "Template:Confusing": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
Ph9讨论 | 贡献
(导入1个版本)
 
(没有差异)

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

{{#ifeq:|left|}}

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

{{#ifeq:confusing |doc

    | 

{{#ifeq:show |show

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

Usage编辑

  • This template categorises tagged articles into Category:Wikipedia articles needing clarification.
  • You can specify whether the template applies to an article (default) or section by adding |article or |section after the template's name. There is also the Template:Confusing section template for the sections.
  • Wikipedia recommends the use of the reason parameter to explain what is confusing. For example:
{{Confusing|reason=the Wangler is referred to in the plural but the diagram shows only one}}
{{#ifeq:|left|}}
  • When a talk page discussion is held, a direct link to that discussion can be added via the |{{SAFESUBST:#if:talk|talk=}} parameter. For example:
{{Confusing|talk=Template talk:Confusing#Talk parameter please!}}
{{#ifeq:|left|}}
  • Do not capitalize the beginning of the reason, since it is preceded by "In particular, ".
  • Do not add a full stop/period at the end of the reason because the template automatically puts a full stop/period in.
  • Please do not subst: this template.

{{Confusing|small=left}} generates:

{{#ifeq:left|left|}}

{{Confusing|small=left|reason=the tensing of the article is ambiguous}} generates:

{{#ifeq:left|left|}}

See also编辑

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

}}}}

TemplateData for Confusing

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

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

}} | other | #default = }} <templatedata> { "description": "Mark text as confusing", "params": { "1": { "label": "Article or section?", "type": "string", "description": "Set to 'section' to specify that you are referring to the section", "default": "article" }, "talk": { "label": "Discussion location", "description": "The location on which the discussion on the issue is being held. Should be full page name, followed by #, followed by section name. Please do not enclose between and . The link will be automatically formatted using the section sign (§).", "example": "Template talk:Confusing#Talk parameter please!", "type": "wiki-page-name", "suggested": true }, "reason": { "label": "What is confusing?", "type": "string", "description": "Explain what part of the text needs to be clarified." }, "date": { "label": "Date", "type": "string", "description": "Date when it was added or verified" }, "small": { "type": "string", "description": "Set to 'left' if a small version should be shown instead of the default", "label": "Small?" } }, "paramOrder": [ "1", "talk", "reason", "date", "small" ], "format": "inline" } </templatedata>

{{#if:{{#ifeq:Confusi|sandbox|1}}{{#ifeq:Confusing|doc|1}}|| }}