模板:Peacock/doc

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

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

{{#if:||{{#ifeq:Peacock/doc|Peacock|}}}}

Usage编辑

This template should be used on any articles or sections that contain one or more subjective terms.

  • First, unnamed, parameter: section, article (defaults to "article")
  • |{{SAFESUBST:#if:date|date=}}

{{Peacock|date=11月 2024}} will appear as

{{#ifeq:模板|{{subst:NAMESPACE}}||}}

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

 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Peacock/doc}}|1}}
 | {{ safesubst:#if:|{{{1}}}|模板:Peacock/doc}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}

|{{#if:11月 2024
 |{{#ifexist:Category:Articles with peacock terms from 11月 2024
   ||}}
 |[[Category:{{#if:
              ||Articles with peacock terms}}]]}}{{#if:All articles with peacock terms
     |}}}}}}

{{Peacock|section|date=11月 2024}} will appear as

{{#ifeq:模板|{{subst:NAMESPACE}}||}}

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

 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Peacock/doc}}|1}}
 | {{ safesubst:#if:|{{{1}}}|模板:Peacock/doc}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}

|{{#if:11月 2024
 |{{#ifexist:Category:Articles with peacock terms from 11月 2024
   ||}}
 |[[Category:{{#if:
              ||Articles with peacock terms}}]]}}{{#if:All articles with peacock terms
     |}}}}}}

This template will add articles to Category:All articles with peacock terms and Category:Articles with peacock terms from 11月 2024

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

}}}}

TemplateData for Peacock

{{#switch:

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

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

}} | other | #default = }} <templatedata> { "description": "This template should be used on any articles or sections that contain one or more subjective terms.", "params": { "1": { "label": "Type (typically section)", "description": "This parameter allows an editor to replace the default word \"article\" with another word, usually the word \"section\"", "type": "string", "required": false, "default": "article", "example": "section" }, "date": { "label": "Month and year", "description": "The month and year that the need for citations is identified, such as 'June 2013'; may use '{{subst:DATE}}' template instead; if not specified, this parameter will be filled automatically by a bot", "type": "string", "required": false, "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "suggested": true } }, "format": "inline" } </templatedata>