“模板:Anachronism/doc”的版本间的差异

wikilife>Vanisaac
→‎See alsoclean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other
 
Ph9讨论 | 贡献
(导入1个版本)
 
(没有差异)

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

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

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

Usage编辑

{{Anachronism|date=11月 2024}}

Parameters编辑

  • {{SAFESUBST:#ifeq:{{safesubst:#switch: no
|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}}{{{date{{SAFESUBST:#ifeq:{{{2}}}| ||}}}}}{{SAFESUBST:#ifeq:{{safesubst:#switch: no

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}}: The date that the tag was placed

  • {{SAFESUBST:#ifeq:{{safesubst:#switch: no
|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}}{{{sect{{SAFESUBST:#ifeq:{{{2}}}| ||}}}}}{{SAFESUBST:#ifeq:{{safesubst:#switch: no

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}} or {{SAFESUBST:#ifeq:{{safesubst:#switch: no

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}}{{{1{{SAFESUBST:#ifeq:{{{2}}}| ||}}}}}{{SAFESUBST:#ifeq:{{safesubst:#switch: no

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}} (empty): Text to replace the word "article", usually "section"

  • {{SAFESUBST:#ifeq:{{safesubst:#switch: no
|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}}{{{small{{SAFESUBST:#ifeq:{{{2}}}| ||}}}}}{{SAFESUBST:#ifeq:{{safesubst:#switch: no

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes||}}: Enter any text to make the template box small and located on the left. Leave blank to leave it unchanged.

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

}}}}

TemplateData for Anachronism

{{#switch:

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

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

}} | other | #default = }} <templatedata> {

       "description": "Use this template to indicate that an article contains anachronisms (statements that do not suit the time period in question).",

"params": { "date": { "label": "Month and year", "description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'", "type": "date", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "example": "January 2013", "suggested": true }, "sect": { "aliases": [ "1" ], "label": "Type (e.g., section)", "description": "Text to replace the word \"article\", usually \"section\"", "type": "string", "autovalue": "section", "example": "section" }, "small": { "label": "Small", "description": "Enter any text to make the template box small and located on the left. Leave blank to leave it unchanged.", "example": "y", "type": "boolean", "autovalue": "y" } }, "paramOrder": [ "date", "sect", "small" ] } </templatedata>

See also编辑