Template:首页产品卡: Difference between revisions
Template page
More actions
Git release 5e4241dd8446 |
Git release c626b8d0a7da |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{:{{{页面}}} | |||
|显示模式=卡片 | |||
|卡片页面={{{页面}}} | |||
|卡片标题={{{标题|}}} | |||
|卡片型号={{{型号|}}} | |||
|卡片图片={{{图片|}}} | |||
|卡片替代文本={{{替代文本|}}} | |||
}} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
| Line 13: | Line 14: | ||
"description": "首页产品模块中的一张产品卡片。", | "description": "首页产品模块中的一张产品卡片。", | ||
"params": { | "params": { | ||
"标题": {"label": " | "标题": {"label": "卡片标题覆盖", "description": "留空时跟随产品标题", "type": "string"}, | ||
"型号": {"label": " | "型号": {"label": "型号覆盖", "description": "留空时跟随产品型号", "type": "string"}, | ||
"图片": {"label": " | "图片": {"label": "图片覆盖", "description": "留空时跟随产品主图", "type": "wiki-file-name"}, | ||
"替代文本": {"label": "图片替代文本", "type": "string"}, | "替代文本": {"label": "图片替代文本", "type": "string"}, | ||
"页面": {"label": "目标产品页面", "type": "wiki-page-name", "required": true} | "页面": {"label": "目标产品页面", "type": "wiki-page-name", "required": true} | ||
}, | }, | ||
"paramOrder": ["标题", "型号", "图片", "替代文本 | "paramOrder": ["页面", "标题", "型号", "图片", "替代文本"] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 01:03, 30 July 2026
首页产品模块中的一张产品卡片。
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 目标产品页面 | 页面 | no description | Page name | required |
| 卡片标题覆盖 | 标题 | 留空时跟随产品标题 | String | optional |
| 型号覆盖 | 型号 | 留空时跟随产品型号 | String | optional |
| 图片覆盖 | 图片 | 留空时跟随产品主图 | File | optional |
| 图片替代文本 | 替代文本 | no description | String | optional |