Template:Talk other

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

This is the {{talk other}} meta-template.

This template helps other templates detect if they are on a talk page or some "other" type of page.

用法 编辑


{{talk other |討論頁產生文字|其他頁產生文字}}





A typical usage case could be to make it so that a template only adds a category when on talk pages. Thus not adding other pages that just show the template. Like this:

{{talk other | [[Category:Some talk page category]] }}

Or to warn that a template should not be used on other pages:

{{talk other | | This template should only be used on talk pages. }}

Note that in the first case above the "other" parameter was not used, and in the second example the "talk" parameter was left empty.

Demospace 编辑


  • 如果值為talk,則返回討論頁產生文字。
  • 如果值為other或其他值,則返回其他頁產生文字。
  • 如果參數為空或未被定義,頁面決定結果。


{{talk other 
|demospace = talk



You can make it so your template also understands the demospace parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:

{{talk other 
| Talk pages text 
| Other pages text 
| demospace = {{{demospace|}}}

Technical details 编辑

This template detects all types of talk pages as type talk. That is, "Talk:", "User talk:", "File talk:" and so on are all of type talk.

This template works like {{main talk other}}, for more examples and technical details see full documentation there. File:Fmn.xnimg.cn/fmn037/20100107/0105/p large wZcU 079200041cac2d0f.jpg

參見 编辑



Technical stuff: