Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 14:53, 15 November 2023 by MTOnline (talk | contribs) (Created page with ";Description :This template helps other templates detect if they are on a main space (article) page or some "other" type of page. ;Usage :This template usually takes two parameters, like this: ::<code><nowiki>{{main other |</nowiki>''result if in mainspace''<nowiki> |</nowiki>''result if elsewhere''<nowiki>}}</nowiki></code> :If the template is on a main space (article) page, it will return this: ::{{main other |demospace=main |''result if in mainspace'' |''res...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Description
This template helps other templates detect if they are on a main space (article) page or some "other" type of page.
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