{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

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

Lua错误 在模块:Navbar的第58行:Invalid title {{#if:Deletion tools |Deletion tools |Deletion tools }}

{{#if:||{{#ifeq:Copy to Wikimedia Commons/doc|Copy to Wikimedia Commons|}}}}

Usage编辑

The style this template has above is meant for image pages. This template automatically detects if it is used on an article page (main space) and then it looks like this: {{#ifeq:模板|{{subst:NAMESPACE}}||}}{{#switch:

 {{#if:main 
 | main    
 | {{#ifeq:模板|
   | main
   | other
   }} 
 }}

| main =

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

| other | #default =

}}{{#ifeq: 模板 | 文件 |{{#if:||{{#if: ||}}}}}}

This template will categorise tagged pages into Category:Copy to Wikimedia Commons.

Please do not subst: this template. Please do not insert {{...}} characters into the edit summary of the target pages, as this causes formatting problems after the edit history is transwikied. This template contains a self-reference (it refers to the encyclopaedia in its contents).

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:Copy to Wikimedia Commons}}.
|#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:Copy to Wikimedia Commons}}.
|#default=[2]

}}}}

TemplateData for Copy to Wikimedia Commons

{{#switch:

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

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

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

       "description": "A template to indicate that the file should be copied to Commons ",
       "params": {
               "date": {
                       "label": "Mark date",
                       "description": "The date the file has been suggested for transfer to Commons",
                       "type": "date",
                       "required": false
               },
               "bot": {
                       "label": "Bot name",
                       "description": "Name of the tagging bot if it was mass-tagged by one",
                       "type": "string/wiki-user-name",
                       "required": false
               },
                "human": {
                       "label": "Reviewing user",
                       "description": "Name of human reviewer",
                       "type": "string/wiki-user-name",
                       "required": false
               },
                "inline": {
                       "label": "inline-identified",
                       "description": "Puts the file into Category:Copy to Wikimedia Commons (inline-identified) instead of Category:Copy to Wikimedia Commons",
                       "type": "line",
                       "required": false
               }
       }

} </TemplateData>

Redirects编辑

{{#if:
   |{{{content}}}

}}{{#ifeq: |yes

   |}}

See also编辑