Template:Category see also/doc:修订间差异

删除的内容 添加的内容
应用举例改为简体中医药示例
doc 完整中文化(翻译英文+示例中医药化)
 
(未显示同一用户的1个中间版本)
第1行:
{{Lua|Module:Category see also}}
{{Documentation subpage}}
<!-- 请在页面底部指示处添加分类,跨维基链接加入维基数据 -->
{{High-use|1570}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see ) -->
 
==Usage 用法 ==
===Usual syntax常用语法 ===
{{block indent |'''<code><nowiki>{{Category see also|一个或多个分类名称,如 中药}}</nowiki></code>'''}}
 
===Parameters 参数 ===
* 大部分参数为以竖线分隔的分类页面名;最多可包含 40 个页面。
* Most are pipe character-separated category page names; up to 40 pages can be included.
* LABEL=''其他短语''... → 替换默认信息前缀:"参见"。通常短语用斜体。定义 LABEL 时可接受任意维基标记或 HTML 文本,模板会在短语末尾添加冒号。
* LABEL=''Some other phrase''... → replaces the default message prefix: "{{italics correction|''See also''}}".{{block indent |em=2 |The phrase is normally italicized. When defining LABEL any wikimarkup or HTML text will be accepted. The template will add a colon at the end of the phrase.}}
* {{para|project}}:任意有效的跨语言或跨项目前缀,如 de:、fr:、es: 访问其他语言维基百科,或用 B:、Q:、S:、V: 等姊妹项目缩写访问姊妹维基。适用时可同时呈现跨语言与跨项目链接,例如:
* {{para|project}}: Any valid interwiki or interproject prefix from de:, fr:, es: access to other language Wikipedias to cross-sister wikis using sister projects abbreviations such as B:, Q:, S:, V: etc. Where applicable, both interlingual and cross-project links can be rendered as follows:
** {{para|project|''es''}} for linking categories on链接到西班牙语维基百科 es.wikipedia.org, the Spanish-language Wikipedia, or 上的分类,或
** {{para|project|''de:V''}} for linking categories on链接到德语维基学院 de.wikiversity.org, the German-language [[Wikiversity]], or 上的分类,或
** {{para|project|''fr:B''}} for linking categories on链接到法语维基教科书 fr.wikibooks.org, the French-language [[Wikibooks]].上的分类。
* 本模板在 HTML 中生成块级元素(自成一段),不能在文本中内联使用。
* The template creates a block-level element in the HTML, effectively forming its own paragraph; it may not be used inline in text.
 
===Simple examples简单示例 ===
# <code><nowiki>{{Category see also|A中药}}</nowiki></code> → {{Category see also|A中药}}
# <code><nowiki>{{Category see also|A中药|B方剂}}</nowiki></code> → {{Category see also|A中药|B方剂}}
# <code><nowiki>{{Category see also|A中药|B方剂|C炮制}}</nowiki></code> → {{Category see also|A中药|B方剂|C炮制}}
 
=== 默认信息示例 ===
===Example with default message===
{{block indent |<code><nowiki>{{Category see also|aaa中药|bbb方剂|ccc炮制|ddd顶注模板|eee药名消歧义}}</nowiki></code> → {{Category see also|aaa中药|bbb方剂|ccc炮制|ddd顶注模板|eee}}药名消歧义}}
 
===Example with LABEL parameter参数示例 option===
{{block indent |<code><nowiki>{{Category see also|LABEL=See this list to evaluate whether one of them would be a better choice请查看此列表以判断其中是否有更佳选择|aaa中药|bbb方剂|ccc|ddd|eee炮制}}</nowiki></code> → {{Category see also|LABEL=See this list to evaluate whether one of them would be a better choice请查看此列表以判断其中是否有更佳选择|aaa中药|bbb方剂|ccc|ddd|eee}}炮制}}
 
===Practical example实用示例 ===
中药与方剂是中医百科的两个内容分类,在分类页上可用此模板标注相关分类,引导编者正确选择。例如在分类页上添加:
Bobsledding and luge are Olympic sports properly subcategorized under "sledding", so should not appear (strictly speaking categorically) as sub-categories of "winter sports". However, a lay reader using categories might expect to find them there. So to show their presence and guide proper selections for editors choosing categories, one can include the sub-sub-categories as a see also annotation on the [[:Category:Winter sports]] page.
{{block indent |<code><nowiki>{{Category see also|Luge|Bobsleigh方剂}}</nowiki></code> → {{Category see also|Luge|Bobsleigh}}方剂}}
 
== 模板数据 ==
第90行 ⟶ 第89行:
</templatedata>
 
==Redirects 参见 ==
* {{tl|Related category}}
* {{tl|Cat see also}}
* {{tl|See also category}}
 
==See also==
* {{tl|Category see also if exists}}
* {{tl|See also}}
* {{tl|Navseasoncats}} – for navigation between categories with years, decades, ordinals, or seasons in their name
 
{{Category hatnote templates}}
{{Hatnote templates}}