Template:Talk other
This template detects whether the page it is used on is a talk page, and outputs different content accordingly.
Basic usage
editThe template takes two parameters, one containing the wikicode to output if used on a talkpage, the other containing the wikicode to output if used in any other page. This template can be used to provide errors or warnings if a template is used in an inappropriate namespace or to prevent article space categories being added to inappropriate pages.
{{Talk other|result if on a talk page|result if anywhere else}}
Demospace parameter
editThe "demospace" parameter can be used to force the template to display the output it would produce on a talk or non-talk page, regardless of the type of page it is actually used on.
{{Talk other|result if on a talk page|result if anywhere else|demospace=talk}}
Will force the template to display result if on a talk page
, regardless of which namespace it is actually in.
The above documentation is transcluded from Template:Talk other/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |