Tractor & Construction Plant Wiki
Im>WOSlinker
(remove {{pp-template}})
m (1 revision: template test)
 
(No difference)

Latest revision as of 15:09, 30 March 2011


[edit] [purge] Template documentation

This is the {{template other}} meta-template.

It helps other templates detect what type of page they are on.

Basic usage

This template usually takes two parameters, like this:

{{template other | Template page text | Other pages text }}

If the template is on a template page, it will return this:

Template page text

If the template is on any other page, it will return this:

Other pages text

A typical usage case could be to make it so that a template only adds a category when not on a template page. Thus not adding the template itself and other templates that are built with it to the category. Like this:

{{template other | | [[Category:Some maintenance category]] }}

Note that in the example above the "template" parameter was left empty.

Advanced usage

This template works like {{main talk other}}, see full documentation there. Note that it detects "Template talk:" pages as type other. The test parameter demospace for this template understands the values template and other.

See also

Easy to use namespace-detection templates:

  • {{main other}} – For article templates.
  • {{talk other}} – For talk page templates.
  • {{file other}} – For file (image) templates.
  • {{template other}} – For detecting template pages.
  • {{category other}} – For category templates.