Template:Main other

来自Valve Developer Community
跳转到导航 跳转到搜索
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.png模板文档 [查看] [编辑] [创建 中文 (zh)]
Icon-translate.png Available doc translations
Info.png
文档页面 Template:Main other/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。

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.

PlacementTip.pngExample: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.).