Template:Talkspace detect/doc
外观
| 此頁面是Template:Talkspace detect的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| 此Template文档被引用於約191,000個頁面,佔全部頁面的2%。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此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
}}
參見
[编辑]