Template:For2/doc:修订间差异
外观
删除的内容 添加的内容
应用举例改为简体中医药示例 |
doc 英文说明翻译为中文 |
||
| 第1行: | 第1行: | ||
{{documentation subpage}} |
{{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|同名方剂|[[红粉 (方剂)]]}} |
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]}} → {{For2|同名方剂|[[红粉 (方剂)]]}} |
||
===多个话题 |
===多个话题=== |
||
本模板最多支持五组话题及建议条目: |
|||
This template also supports up to five topics and their suggested articles: |
|||
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}} |
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}} |
||
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}} |
* {{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行: | 第18行: | ||
<templatedata> |
<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": { |
"params": { |
||
"1": { |
"1": { |
||
"label": " |
"label": "第一个说明", |
||
"description": " |
"description": "描述一种其他含义的短语", |
||
"default": " |
"default": "其他用法", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
"required": true, |
||
"example": " |
"example": "同名方剂" |
||
}, |
}, |
||
"2": { |
"2": { |
||
"label": " |
"label": "第一个链接", |
||
"description": " |
"description": "包含指向第一个其他含义的维基链接的短语。", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
"required": true, |
||
"example": "[[ |
"example": "[[红粉 (方剂)]]" |
||
}, |
}, |
||
"3": { |
"3": { |
||
"label": " |
"label": "第二个说明", |
||
"description": " |
"description": "描述另一种含义的短语(如有)", |
||
"type": "string", |
"type": "string", |
||
"required": false, |
"required": false, |
||
"example": " |
"example": "同名中药" |
||
}, |
}, |
||
"4": { |
"4": { |
||
"label": " |
"label": "第二个链接", |
||
"description": " |
"description": "指向另一种含义的页面链接(如有)。", |
||
"type": "string", |
"type": "string", |
||
"required": false, |
"required": false, |
||
"example": "[[ |
"example": "[[青蒿]]" |
||
}, |
}, |
||
"5": { |
"5": { |
||
"label": " |
"label": "第三个说明", |
||
"description": " |
"description": "描述另一种含义的短语(如有)", |
||
"type": "string", |
"type": "string", |
||
"required": false |
"required": false |
||
}, |
}, |
||
"6": { |
"6": { |
||
"label": " |
"label": "第三个链接", |
||
"description": " |
"description": "指向另一种含义的页面链接(如有)。", |
||
"type": "string", |
"type": "string", |
||
"required": false |
"required": false |
||
}, |
}, |
||
"7": { |
"7": { |
||
"label": " |
"label": "第四个说明", |
||
"description": " |
"description": "描述另一种含义的短语(如有)", |
||
"type": "string", |
"type": "string", |
||
"required": false |
"required": false |
||
}, |
}, |
||
"8": { |
"8": { |
||
"label": " |
"label": "第四个链接", |
||
"description": " |
"description": "指向另一种含义的页面链接(如有)。", |
||
"type": "string", |
"type": "string", |
||
"required": false |
"required": false |
||
}, |
}, |
||
"9": { |
"9": { |
||
"label": " |
"label": "第五个说明", |
||
"description": " |
"description": "描述另一种含义的短语(如有)", |
||
"type": "string", |
"type": "string", |
||
"required": false |
"required": false |
||
}, |
}, |
||
"10": { |
"10": { |
||
"label": " |
"label": "第五个链接", |
||
"description": " |
"description": "指向另一种含义的页面链接(如有)。", |
||
"type": "string", |
"type": "string", |
||
"required": false |
"required": false |
||
2026年8月1日 (六) 11:50的最新版本
此页面是Template:For2的文档子页面。
此页面可能包含了使用说明、分类和其他内容,这些内容不属于原始Template页面。
此页面可能包含了使用说明、分类和其他内容,这些内容不属于原始Template页面。
使用方法
仿照 {{For}} 设计,{{For2}} 允许自定义文字(如引号或链接),用于描述话题及其建议条目。
单一话题
多个话题
本模板最多支持五组话题及建议条目:
{{For2|同名方剂|红粉 (方剂)|同名中药|青蒿}}→{{For2|同名方剂|红粉 (方剂)|同名中药|青蒿|其他用法|雷丸|同名方剂 4|红粉 (方剂) 4|同名方剂 5|红粉 (方剂) 5}}→
维基链接与大小写
样式说明:当维基链接的上下文讨论的是目标条目本身时(如"更多信息,参见甘草"、"主条目:甘草"、"此处论述甘草"),而非该条目的主题时(如"裁缝常用甘草于客户裤子上"),链接文字应使用条目标题的写法:[[甘草]]。小标题同理:[[甘草#性味|甘草 § 性味]]。
模板数据
以下是该模板的模板数据,适用于可视化编辑器等工具。
For2模板数据
此模板列出某术语最多五个其他含义的条目。详见模板文档。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 第一个说明 | 1 | 描述一种其他含义的短语
| 字符串 | 必需 |
| 第一个链接 | 2 | 包含指向第一个其他含义的维基链接的短语。
| 字符串 | 必需 |
| 第二个说明 | 3 | 描述另一种含义的短语(如有)
| 字符串 | 可选 |
| 第二个链接 | 4 | 指向另一种含义的页面链接(如有)。
| 字符串 | 可选 |
| 第三个说明 | 5 | 描述另一种含义的短语(如有) | 字符串 | 可选 |
| 第三个链接 | 6 | 指向另一种含义的页面链接(如有)。 | 字符串 | 可选 |
| 第四个说明 | 7 | 描述另一种含义的短语(如有) | 字符串 | 可选 |
| 第四个链接 | 8 | 指向另一种含义的页面链接(如有)。 | 字符串 | 可选 |
| 第五个说明 | 9 | 描述另一种含义的短语(如有) | 字符串 | 可选 |
| 第五个链接 | 10 | 指向另一种含义的页面链接(如有)。 | 字符串 | 可选 |