Template:Main other/doc

From Star Wars ReExpanded
Jump to navigation Jump to search

Usage

This template usually takes two parameters, like this:

{{main other |result if in mainspace |result if elsewhere}}

If the template is on a main space (article) page, it will return this:

result if in mainspace

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

result if elsewhere

A typical usage case would be to warn that a template should not be used on non-article pages:

{{main other | |This template should only be used in articles.}}

or vice versa:

{{main other |This template should not be used in articles.| }}

Note that in the first case above the "main" parameter was not used, and in the second example the "other" parameter was left empty.