Template:Talkspace detect
模板文档
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:, Wiki Baike 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}}
參見
便於偵測命名空間的模板群:
- {{main other}} – 用於條目模板。
- {{talk other}} – 用於討論頁模板。
- {{user other}} – 用於用戶頁模板。
- {{wikipedia other}} – 用以偵測"Wiki:"計畫頁面。
- {{file other}} – 用於檔案(圖像)模板
- {{template other}} – 用以偵測模板頁。
- {{help other}} – 用於幫助頁模板。
- {{category other}} – 用於分類頁模板。
- {{portal other}} – 用於主題頁模板。
更複雜的命名空間偵測模板:
- {{main talk other}} – 區分某些命名空間。
- {{main talk category other}} – 區分某些命名空間。
- {{namespace detect}} – 多功能模板。
- {{namespace detect showall}} – 超多功能模板。
- {{talkspace detect}} - 偵測不同命名空間的討論頁面。
Technical stuff:
- Baike: 命名空間 – Lists all the namespaces.
- Help:魔術字 – About
{{NAMESPACE}}
etc. - Help:解析器函数 – About
{{#ifeq:|||}}
etc.
🔥 Top keywords: Baike: 首页Special:搜索胖猫跳江事件背着善宰跑九龍城寨之圍城逆天奇案2璩静淚之女王歌手2024Energy (組合)新生 (网络剧)习近平匈牙利邊佑錫劉俊謙 (香港)金智媛神耆小子塞尔维亚金秀賢 (男演員)母亲节猩球崛起:王國誕生九龍寨城馴鹿寶貝家族榮耀之繼承者Seventeen (組合)六四事件不夠善良的我們张维为楊佩潔TripleS支配物种庆余年郭葦昀洪若潭命案金惠奫2024年英雄联盟季中邀请赛春色寄情人BABYMONSTER笑看風雲乘風2024排球少年!!角色列表破墓徐巧芯中华人民共和国中華民國打天下2WIND BREAKER—防風少年—习明泽排球少年!!彭丽媛磁暴ILLIT贾斯汀·比伯逆天奇案BOYNEXTDOOR猿人爭霸戰:猩凶革命張書偉我的婆婆怎麼那麼可愛我獨自升級怪獸8號謝坤達IVE (組合)與鳳行關於我轉生變成史萊姆這檔事角色列表黃道十二宮福建號航空母艦虽然不是英雄葉乃文五月天張員瑛草榴社区張文傑2024年花蓮地震极光香緹·摩爾迷宮飯呂家愷搜查班長1958日本劉德華海莉·鮑德溫蕭景鴻越位 (足球)葬送的芙莉蓮周處除三害 (電影)毛泽东願榮光歸香港林峯周雨彤伍允龍羅毓儀香港Baike: 分類索引沒有秘密猩球崛起:終極決戰角質層唐振剛柯佳嬿文化大革命