Template:Main other/Doc
Jump to navigation
Jump to search
Undocumented Template You can help the Open Fortress Wiki by writing it. Until then, you'll have to read the source to figure out how to use it anyway. Which, I mean, while you're over there already... just saying, you may as well... |
This template was ported from a template from Wikipedia. It was originally at Template:Main other/Doc. The original authors of this template are shown on the template's edit history page.
This template's documentation was also ported from Wikipedia, originally from Template:Main other/Doc/doc. The original authors of the documentation are shown on the documentation's edit history page.
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
This template's documentation was also ported from Wikipedia, originally from Template:Main other/Doc/doc. The original authors of the documentation are shown on the documentation's edit history page.
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Usage
Like Wikipedia icon Template:Main other, this template can be used to add text or especially categories depending on the page that it is displayed on. This template is commonly used for example to ensure that a category inside a template is only included in the main namespace and not on the template page or vice versa. For testing, the current namespace can be overridden using {{{demospace}}}. The second parameter is optional.
File:PlacementTip.pngTemplate:Dictionary/Example/en:The template call
{{Main other|one|two}}
expands to one
on pages in the main namespace and it expands to two
on all other pages (Template:
, Category:
, etc.).