Template:Main other: Difference between revisions
Appearance
Created page with "{{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> |..." |
No edit summary |
||
Line 11: | Line 11: | ||
| other | | other | ||
| #default = {{{2|}}} | | #default = {{{2|}}} | ||
}}<noinclude> | }}<noinclude>{{Documentation}}</noinclude> | ||
{{ | |||
</noinclude> |
Revision as of 18:01, 27 March 2016
![]() |
This is a metatemplate; that is, a template that will rarely be used directly in articles, but rather used in other templates which will be used directly. |
This is the "Main other" template, borrowed from Wikipedia.
This template usually takes two parameters, like this:
{{main other|result if in mainspace|result if elsewhere}}
The first parameter is used if the final rendered page is in the Main:
namespace; the second is used if it's in all other templates.
This is used for various purposes, like in templates which automatically put the pages where they are used into categories, so that they do not put themselves or their documentation into those categories.