Jump to content

Template:Testcases other/doc

From Wikihoc

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if:|
         |{{#ifexist:Template:Testcases other
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  | 
                 }}
        }}
    | 
   }}

Usage

Similar to {{Sandbox other}}:

If the subpagename is /testcases, returns |{{SAFESUBST:#if:1|1=}}, else |{{SAFESUBST:#if:2|2=}}.

See also

  • {{Sandbox other}} — Distinguishes between the /sandbox subpages and the root template page and other subpages.
  • {{Testcases other}} — Distinguishes between the /testcases subpages and the root template page and other subpages.
  • {{Template other}} — Distinguishes between pages in the template namespace and other namespaces.
  • {{When on basepage}} — Distinguishes between the root template page and subpages, without special consideration in the mainspace.
  • {{Subpage other}} — Distinguisheds between the root page and subpages (any subpage), classifying pagenames in the mainspace with a slash as being the root page.