Template:接连百度百科: Difference between revisions
Appearance
百科链接卡片:用户指定图标、萌娘百科模板、修复模板页无效默认目标;中文文言加需🪜提示,六语言对应模板 |
将可插入模板归入可视化编辑器默认浏览分类;分类仅在noinclude内,不传递给正文 |
||
| Line 16: | Line 16: | ||
[[ja:Template:接连百度百科]] | [[ja:Template:接连百度百科]] | ||
[[ko:Template:接连百度百科]] | [[ko:Template:接连百度百科]] | ||
<templatedata>{"description": "Baidu Baike 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": "Baidu Baike 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:Templates]] | |||
</noinclude> | |||
Latest revision as of 09:10, 16 November 2026
Usage
{{接连百度百科|江苏省天一中学}}
{{接连百度百科|江苏省天一中学|Label}}
This documentation shows explicit examples rather than linking the template name. In articles, omitted parameters use the current page name. Verify the destination; this template cannot detect missing external articles.
Parameters
1: Destination title;2sets the display label.text: Optional introduction.name: Overrides parameter 1. Optionalidspecifies the numeric disambiguation ID together with the title; a bare legacy numeric ID is not supported.
Example
Baidu Baike link card
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Target / label | 1 | no description | String | optional |
| Label / target | 2 | no description | String | optional |
| Introduction | text | no description | String | optional |
| Target title | name | no description | String | optional |
| Disambiguation ID | id | no description | String | optional |