模板:Incomprehensible

wikilife>DB17292020年11月27日 (五) 01:30的版本 (Reverted 2 edits by EmbracedDentine (talk) to last revision by CactusJack)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{#ifeq:|left|}}

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

{{#ifeq:incomprehensible |doc

    | 

{{#ifeq:show |show

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

Usage


Notes:

  • The date-substitution template may be used to automatically generate the date, e.g., {{Incomprehensible|{{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:machine|machine=}}yes - optional parameter which adds "Sometimes this can be due to machine translation."
  • |{{SAFESUBST:#if:section|section=}}text - optional parameter which changes the word "article" to "section" if 'y', 'yes', '1', or 'true' or its value otherwise
  • |{{SAFESUBST:#if:talk|talk=}}section - optional parameter which indicates the talk page section
  • |{{SAFESUBST:#if:small|small=}}left - optional parameter which allows the use of the small format

Examples

Paste-ready example: {{Incomprehensible|date=11月 2024}}
Example with reason: {{Incomprehensible|date=11月 2024|reason=}}
Example with talk: {{Incomprehensible|date=11月 2024|talk=}}
Example with machine: {{Incomprehensible|date=11月 2024|machine=yes}}
Example with section: {{Incomprehensible|section|date=11月 2024}} or {{Incomprehensible|date=11月 2024|section=yes}}
Example with small: {{Incomprehensible|date=11月 2024|small=left}}

{{Incomprehensible|small=left|machine=yes}} generates:

{{#ifeq:left|left|}}

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

}}}}

TemplateData for Incomprehensible

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

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

}} | other | #default = }} <templatedata>{ "description": "A template to indicate that an article contains incomprehensible text", "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" }, "machine": { "label": "Machine Translation", "description": "Adds: Sometimes this can be due to machine translation.", "type": "string" }, "sect": { "label": "Section", "aliases": ["section", "1"], "description": "Changes the word article", "type": "string" }, "talk": { "label": "Talk", "aliases": ["2"], "description": "The section heading on the article's talk page with relevant discussion", "type": "string" }, "small": { "label": "Small", "description": "Allows the use of the small format", "example": "left", "type": "string" } }}</templatedata>

See also

{{#if:{{#ifeq:Incompr|sandbox|1}}{{#ifeq:Incomprehensible|doc|1}}|| }}