Template:Tick

From Andrealphus Games
Revision as of 01:05, 10 May 2020 by and>Shirayuki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Yes

Template documentation

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:tick|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tick|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Tick
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages{{#translation:}}]]
                  | [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:tick|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tick|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Tick
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages{{#translation:}}]]
                  | [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }}

Usage

{{#ifeq:Tick|sandbox|| }}

{{#if:|

[[Category:Template documentation pages{{#translation:}}]] }}

Parameter names cannot be empty. To document unnamed parameters use their internal numbers "1", "2", and so on.