模板:Talkspace detect/doc
跳至導覽
跳至搜尋
package.lua第80行Lua錯誤:module 'Module:Category handler/data' not found 腳本錯誤:沒有「High-use」這個模塊。
- REDIRECT Template:改進使用說明
The {{talkspace detect}} meta-template helps other templates detect what type of page they are on. It detects and groups all the different talkspaces used on Wikipedia into several types:
- main = Defines the output if the template is located on main/article talkspace; aka Talk:.
- user, wikipedia, file, mediawiki, template, help, category and portal = Defines the output if the template is located on the specified talkspaces; aka User talk:, Wikipedia talk:, File talk:, etc.
- default = Defines the output if the template is located on any talkspaces that were not defined as a parameter in this meta-template.
- other = Defines the output if the template is located on any namespaces (not the associated talkspace).
用法[編輯]
This template takes one or more parameters named after the different page types as listed above. Like this:
{{talkspace detect
| main = 條目討論頁文字
| user = 用戶討論頁文字
| default = 其他所有討論頁面文字
| other = 一般名字空間文字
}}
By using an empty parameter you can make it so the template doesn't render anything for some specific page type. Like this:
{{talkspace detect
| main =
| default = Text for all other namespace talk pages
}}
參見[編輯]
- REDIRECT Template:命名空間與頁面名稱檢測模板