跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
学习园地
新人须知
教程整合
NEW!!!
主题编号使用指导
论坛百科
SS分区介绍
论坛设定
论坛文化
传奇殿堂
SS大事年表
SS大学图书馆
维基事务
基本规则
新手指南——技术
新手指南——内容
wiki语法手册
规范全集
搜索
搜索
外观
登录
个人工具
登录
查看“︁模板:Talk other/doc”︁的源代码
模板
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
外观
移至侧栏
隐藏
←
模板:Talk other/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Documentation subpage}} 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. === 用法 === 這模板包含兩個參數,像這樣: <pre>{{talk other |討論頁產生文字|其他頁產生文字}}</pre> 如果把這模板放在討論頁上,模板返回: :{{talk other | demospace=talk |討論頁產生文字|其他頁產生文字}} 如果把這模板放在其他頁面上,模板返回: :{{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: <pre> {{talk other | [[Category:Some talk page category]] }} </pre> Or to warn that a template should not be used on other pages: <pre> {{talk other | | This template should only be used on talk pages. }} </pre> 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 === 為進行測試和示範,這模板有一個參數名為'''demospace'''。 * 如果值為'''talk''',則返回討論頁產生文字。 * 如果值為'''other'''或其他值,則返回其他頁產生文字。 * 如果參數為空或未被定義,頁面決定結果。 像這樣: <pre> {{talk other |討論頁產生文字 |其他頁產生文字 |demospace = talk }} </pre> 無論在什麼頁面都會返回: :{{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: <pre> {{talk other | Talk pages text | Other pages text | demospace = {{{demospace|}}} }} </pre> === 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. [[分类:元模板]]
该页面使用的模板:
模板:Documentation subpage
(
查看源代码
)
模板:Talk other
(
查看源代码
)
模板:提示
(
查看源代码
)
返回
模板:Talk other/doc
。