Template:Talk other

From FlightGear wiki
Jump to navigation Jump to search

The following template description is not displayed when the template is inserted in an article.


This template can be used to show a different text if it is not used on a page in the talk namespace, the namespace used for talk pages for articles. It can also be used for category suppression, to avoid that a page is categorized if it is not in the talk namespace

If more than one namespace need to be handled, use {{namespace detect}}.


{{talk other|text if talk|text if other |demospace=}}
text if talk
Optional text to use if the template is on a page in the talk namespace.
text if other
Optional text to use if the template is on a page in any other namespace.
Optional namespace override. If it is empty or undefined the namespace of the page with the template on will be used, if it is talk then text if talk will be shown and if it is other or any other namespace then text if other will be used.


Text selection

Since this is not a talk page {{talk other|this text will not be shown|this text will be shown}}.

Since this is not a talk page this text will be shown.

However with {{talk other|a little bit of cheating|this text will not be shown|demospace=talk}}...

However with a little bit of cheating...

Category suppression

Using the template like this will only categorize a page when it is in the talk namespace:

{{talk other|[[Category:Talk pages]]}}

Related templates