Template:Main other
This template detects whether the page it is used on is in the main (article) or some other namespace, and outputs different content accordingly.
Standard usage
editThe template takes two parameters, one containing the wikicode to output if used in the main namespace, the other containing the wikicode to output if used in any other namespace. This template can be used to provide errors or warnings if a template is used in an inappropriate namespace.
{{main other|result if in mainspace|result if anywhere else}}
Demospace parameter
editThe "demospace" parameter can be used to force the template to display the output it would produce in a given namespace, regardless of the namespace it is actually used in.
{{main other|result if in mainspace|result if elsewhere|demospace=main}}
Will force the template to display result if in mainspace
, regardless of which namespace it is actually in.
The above documentation is transcluded from Template:Main 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. |