模板:Anachronism

{{#ifeq:|left|}}

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

{{#ifeq:anachronism |doc

    | 

{{#ifeq:show |show

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

Usage编辑

{{Anachronism|date=5月 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:Anachro|sandbox|1}}{{#ifeq:Anachronism|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编辑

{{#if:{{#ifeq:Anachro|sandbox|1}}{{#ifeq:Anachronism|doc|1}}||

}}