Template:For2/doc:修订间差异
删除的内容 添加的内容
应用举例改为简体中医药示例 |
doc 英文说明翻译为中文 |
||
第1行:
{{documentation subpage}}
== 使用方法 ==
仿照 {{tl|For}} 设计,'''{{tl|For2}}''' 允许自定义文字(如引号或链接),用于描述话题及其建议条目。
===单一话题===
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]}} → {{For2|同名方剂|[[红粉 (方剂)]]}}
===多个话题
本模板最多支持五组话题及建议条目:
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]}}
* {{tlx|For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}} → {{For2|同名方剂|[[红粉 (方剂)]]|同名中药|[[青蒿]]|其他用法|[[雷丸]]|同名方剂 4|[[红粉 (方剂)]] 4|同名方剂 5|[[红粉 (方剂)]] 5}}
===维基链接与大小写===
'''样式说明:'''当维基链接的上下文讨论的是目标条目本身时(如"更多信息,参见''甘草''"、"主条目:''甘草''"、"此处论述''甘草''"),而非该条目的主题时(如"裁缝常用''甘草''于客户裤子上"),链接文字应使用条目标题的写法:<nowiki>[[甘草]]</nowiki>。小标题同理:<nowiki>[[甘草#性味|甘草 § 性味]]</nowiki>。
==模板数据==
第18行:
<templatedata>
{
"description": "此模板列出某术语最多五个其他含义的条目。详见模板文档。",
"params": {
"1": {
"label": "
"description": "
"default": "
"type": "string",
"required": true,
"example": "
},
"2": {
"label": "
"description": "
"type": "string",
"required": true,
"example": "[[
},
"3": {
"label": "
"description": "
"type": "string",
"required": false,
"example": "
},
"4": {
"label": "
"description": "
"type": "string",
"required": false,
"example": "[[
},
"5": {
"label": "
"description": "
"type": "string",
"required": false
},
"6": {
"label": "
"description": "
"type": "string",
"required": false
},
"7": {
"label": "
"description": "
"type": "string",
"required": false
},
"8": {
"label": "
"description": "
"type": "string",
"required": false
},
"9": {
"label": "
"description": "
"type": "string",
"required": false
},
"10": {
"label": "
"description": "
"type": "string",
"required": false
| |||