跳转到内容

Template:For2/doc:修订间差异

勤求古训,博采众方
删除的内容 添加的内容
拉取适配 zhwiki 模板文档(去简繁)
 
doc 英文说明翻译为中文
 
(未显示同一用户的1个中间版本)
第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|TOPIC|CUSTOM TEXT}} → {{For2|TOPIC|CUSTOM TEXT}}
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]}} → {{For2|同名方剂|[[红粉 (方剂)]]}}


===多个话题 ===
===多个话题===
本模板最多支持五组话题及建议条目:
This template also supports up to five topics and their suggested articles:
* {{tlx|For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2}} → {{For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2}}
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}}
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}}
* {{tlx|For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2|TOPIC 3|CUSTOM TEXT 3|TOPIC 4|CUSTOM TEXT 4|TOPIC 5|CUSTOM TEXT 5}} → {{For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2|TOPIC 3|CUSTOM TEXT 3|TOPIC 4|CUSTOM TEXT 4|TOPIC 5|CUSTOM TEXT 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": "First description",
"label": "第一个说明",
"description": "A phrase describing an alternative meaning",
"description": "描述一种其他含义的短语",
"default": "other uses",
"default": "其他用法",
"type": "string",
"type": "string",
"required": true,
"required": true,
"example": "other people with the surname Smith"
"example": "同名方剂"
},
},
"2": {
"2": {
"label": "First link",
"label": "第一个链接",
"description": "A phrase including a wikilink to the first alternative meaning.",
"description": "包含指向第一个其他含义的维基链接的短语。",
"type": "string",
"type": "string",
"required": true,
"required": true,
"example": "[[Smith (surname)]]"
"example": "[[红粉 (方剂)]]"
},
},
"3": {
"3": {
"label": "Second description",
"label": "第二个说明",
"description": "A phrase describing another meaning, if any",
"description": "描述另一种含义的短语(如有)",
"type": "string",
"type": "string",
"required": false,
"required": false,
"example": "people with the given name Smith"
"example": "同名中药"
},
},
"4": {
"4": {
"label": "Second link",
"label": "第二个链接",
"description": "A page to link to for another meaning, if any.",
"description": "指向另一种含义的页面链接(如有)。",
"type": "string",
"type": "string",
"required": false,
"required": false,
"example": "[[Smith (given name)]]"
"example": "[[青蒿]]"
},
},
"5": {
"5": {
"label": "Third description",
"label": "第三个说明",
"description": "A phrase describing another meaning, if any",
"description": "描述另一种含义的短语(如有)",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"6": {
"6": {
"label": "Third link",
"label": "第三个链接",
"description": "A page to link to for another meaning, if any.",
"description": "指向另一种含义的页面链接(如有)。",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"7": {
"7": {
"label": "Fourth description",
"label": "第四个说明",
"description": "A phrase describing another meaning, if any",
"description": "描述另一种含义的短语(如有)",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"8": {
"8": {
"label": "Fourth link",
"label": "第四个链接",
"description": "A page to link to for another meaning, if any.",
"description": "指向另一种含义的页面链接(如有)。",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"9": {
"9": {
"label": "Fifth description",
"label": "第五个说明",
"description": "A phrase describing another meaning, if any",
"description": "描述另一种含义的短语(如有)",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"10": {
"10": {
"label": "Fifth link",
"label": "第五个链接",
"description": "A page to link to for another meaning, if any.",
"description": "指向另一种含义的页面链接(如有)。",
"type": "string",
"type": "string",
"required": false
"required": false

2026年8月1日 (六) 11:50的最新版本

使用方法

仿照 {{For}} 设计,{{For2}} 允许自定义文字(如引号或链接),用于描述话题及其建议条目。

单一话题

  • {{For2|同名方剂|红粉 (方剂)}} →

多个话题

本模板最多支持五组话题及建议条目:

维基链接与大小写

样式说明:当维基链接的上下文讨论的是目标条目本身时(如"更多信息,参见甘草"、"主条目:甘草"、"此处论述甘草"),而非该条目的主题时(如"裁缝常用甘草于客户裤子上"),链接文字应使用条目标题的写法:[[甘草]]。小标题同理:[[甘草#性味|甘草 § 性味]]。

模板数据

以下是该模板的模板数据,适用于可视化编辑器等工具。

For2模板数据

此模板列出某术语最多五个其他含义的条目。详见模板文档。

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
第一个说明1

描述一种其他含义的短语

默认值
其他用法
示例值
同名方剂
字符串必需
第一个链接2

包含指向第一个其他含义的维基链接的短语。

示例值
[[红粉 (方剂)]]
字符串必需
第二个说明3

描述另一种含义的短语(如有)

示例值
同名中药
字符串可选
第二个链接4

指向另一种含义的页面链接(如有)。

示例值
[[青蒿]]
字符串可选
第三个说明5

描述另一种含义的短语(如有)

字符串可选
第三个链接6

指向另一种含义的页面链接(如有)。

字符串可选
第四个说明7

描述另一种含义的短语(如有)

字符串可选
第四个链接8

指向另一种含义的页面链接(如有)。

字符串可选
第五个说明9

描述另一种含义的短语(如有)

字符串可选
第五个链接10

指向另一种含义的页面链接(如有)。

字符串可选