Template:For2/doc:修订间差异

删除的内容 添加的内容
应用举例改为简体中医药示例
doc 英文说明翻译为中文
 
第1行:
{{documentation subpage}}
== 使用方法 ==
仿照 {{tl|For}} 设计,'''{{tl|For2}}''' 允许自定义文字(如引号或链接),用于描述话题及其建议条目。
Modelled after {{tl|For}}, '''{{tl|For2}}''' was created to allow custom text, including such modifications as quotation marks or a link, as part of both a topic and its suggested article.
 
===单一话题===
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]}} → {{For2|同名方剂|[[红粉 (方剂)]]}}
 
===多个话题 ===
本模板最多支持五组话题及建议条目:
This template also supports up to five topics and their suggested articles:
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}}
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}}
 
===维基链接与大小写===
===Wikilinks and capitalization===
'''样式说明:'''当维基链接的上下文讨论的是目标条目本身时(如"更多信息,参见''甘草''"、"主条目:''甘草''"、"此处论述''甘草''"),而非该条目的主题时(如"裁缝常用''甘草''于客户裤子上"),链接文字应使用条目标题的写法:<nowiki>[[甘草]]</nowiki>。小标题同理:<nowiki>[[甘草#性味|甘草 § 性味]]</nowiki>。
'''Style note:''' When the context around a wikilink discusses the destination article itself (e.g., For more information, see ''Xyz''; Main article: ''Xyz''; This is discussed in ''Xyz'') rather than the topic of that article (e.g., Tailors often use ''xyz'' on their clients' pants), use the capitalization of the article's title in the wikilinked text: <nowiki>[[Xyz]]</nowiki>. The same applies to subheadings: <nowiki>[[Xyz#PDQ|Xyz § PDQ]]</nowiki>.
 
==模板数据==
第18行:
<templatedata>
{
"description": "此模板列出某术语最多五个其他含义的条目。详见模板文档。",
"description": "This template lists up to five articles on alternative meanings of a term. For further details and examples see the template documentation.",
"params": {
"1": {
"label": "First description第一个说明",
"description": "A phrase describing an alternative meaning描述一种其他含义的短语",
"default": "other uses其他用法",
"type": "string",
"required": true,
"example": "other people with the surname Smith同名方剂"
},
"2": {
"label": "First link第一个链接",
"description": "A phrase including a wikilink to the first alternative meaning.包含指向第一个其他含义的维基链接的短语。",
"type": "string",
"required": true,
"example": "[[Smith红粉 (surname方剂)]]"
},
"3": {
"label": "Second description第二个说明",
"description": "A phrase describing another meaning, if any描述另一种含义的短语(如有)",
"type": "string",
"required": false,
"example": "people with the given name Smith同名中药"
},
"4": {
"label": "Second link第二个链接",
"description": "A page to link to for another meaning, if any.指向另一种含义的页面链接(如有)。",
"type": "string",
"required": false,
"example": "[[Smith (given name)青蒿]]"
},
"5": {
"label": "Third description第三个说明",
"description": "A phrase describing another meaning, if any描述另一种含义的短语(如有)",
"type": "string",
"required": false
},
"6": {
"label": "Third link第三个链接",
"description": "A page to link to for another meaning, if any.指向另一种含义的页面链接(如有)。",
"type": "string",
"required": false
},
"7": {
"label": "Fourth description第四个说明",
"description": "A phrase describing another meaning, if any描述另一种含义的短语(如有)",
"type": "string",
"required": false
},
"8": {
"label": "Fourth link第四个链接",
"description": "A page to link to for another meaning, if any.指向另一种含义的页面链接(如有)。",
"type": "string",
"required": false
},
"9": {
"label": "Fifth description第五个说明",
"description": "A phrase describing another meaning, if any描述另一种含义的短语(如有)",
"type": "string",
"required": false
},
"10": {
"label": "Fifth link第五个链接",
"description": "A page to link to for another meaning, if any.指向另一种含义的页面链接(如有)。",
"type": "string",
"required": false