Template:接连百度百科:修订间差异
外观
百科链接卡片:用户指定图标、萌娘百科模板、修复模板页无效默认目标;中文文言加需🪜提示,六语言对应模板 |
将可插入模板归入可视化编辑器默认浏览分类;分类仅在noinclude内,不传递给正文 |
||
| 第16行: | 第16行: | ||
[[ja:Template:接连百度百科]] | [[ja:Template:接连百度百科]] | ||
[[ko:Template:接连百度百科]] | [[ko:Template:接连百度百科]] | ||
<templatedata>{"description": "百度百科 link card", "params": {"1": {"label": "Target / label", "type": "string"}, "2": {"label": "Label / target", "type": "string"}, "text": {"label": "Introduction", "type": "string"}, "name": {"label": "Target title", "type": "string"}, "id": {"label": "Disambiguation ID", "type": "string"}}, "format": "inline"}</templatedata></noinclude> | <templatedata>{"description": "百度百科 link card", "params": {"1": {"label": "Target / label", "type": "string"}, "2": {"label": "Label / target", "type": "string"}, "text": {"label": "Introduction", "type": "string"}, "name": {"label": "Target title", "type": "string"}, "id": {"label": "Disambiguation ID", "type": "string"}}, "format": "inline"}</templatedata> | ||
[[Category:模板]] | |||
</noinclude> | |||
2026年11月16日 (一) 09:10的最新版本
用法
{{接连百度百科|江苏省天一中学}}
{{接连百度百科|江苏省天一中学|显示文字}}
模板页只展示明确填写目标的示例,不再链接模板自身名称。未填写参数时,正文中的调用仍默认使用当前词条名。请确认外站目标存在;模板不能自动检测外站红链。
参数
1: 目标词条名;2为显示文字。text: 可选介绍。name: 优先于第一个参数的目标名。id:可选数字消歧 ID,须与目标名同时使用。旧式仅填数字的参数不适用。
示例
排版参考 ·
百度百科 link card
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Target / label | 1 | 无描述 | 字符串 | 可选 |
| Label / target | 2 | 无描述 | 字符串 | 可选 |
| Introduction | text | 无描述 | 字符串 | 可选 |
| Target title | name | 无描述 | 字符串 | 可选 |
| Disambiguation ID | id | 无描述 | 字符串 | 可选 |