“模板:Copy to Wikimedia Commons”的版本间的差异

wikilife>SD0001
(add |name= parameter)
(没有差异)

2020年9月7日 (一) 01:19的版本

{{#ifeq:模板|模板||}}{{#switch:

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

| main =

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

| other | #default =

}}

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

{{#ifeq:copy to wikimedia commons |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|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:Copy to|sandbox|1}}{{#ifeq:Copy to Wikimedia Commons|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

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