Template:ProductInfo: Difference between revisions
Template page
More actions
Full English rewrite: English params, headings, status logic |
Replace spec wikitable with free text field {{{specs|...}}} (fix: correct section boundary matching) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 27: | Line 27: | ||
</div> | </div> | ||
== | == Introduction == | ||
{{{highlights|* Product details to be added by admin.}}} | {{{highlights|* Product details to be added by admin.}}} | ||
== Specifications == | == Specifications == | ||
{{{ | {{{specs|Specifications to be added.}}} | ||
== Hardware == | == Hardware == | ||
{{{hardware|Hardware interface and structure details to be added.}}} | {{{hardware|Hardware interface and structure details to be added.}}} | ||
== | == Size == | ||
{{{usage|# Connect the hardware.<br># Power on and check the display.<br># Configure software per product documentation.}}} | {{{usage|# Connect the hardware.<br># Power on and check the display.<br># Configure software per product documentation.}}} | ||
== FAQ == | == FAQ == | ||
{{{faq|; Is the page content real product | {{{faq|; Is the page content real product data?<br>: Currently demo data; please replace with actual specs.}}} | ||
== Downloads == | == Downloads == | ||
| Line 123: | Line 96: | ||
}}}} | }}}} | ||
</div> | </div> | ||
|<div class="lcd-empty-resource"> | |<div class="lcd-empty-resource">暂无Published资源,管理员可在产品表单中添加下载文件。</div> | ||
}} | }} | ||
</div> | </div> | ||
[[Category:Product Docs]][[Category:{{{module|Uncategorized}}} | |||
[[Category:Product Docs]][[Category:{{{module|Uncategorized}}}]] | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
| Line 133: | Line 107: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "完整产品二级页模板,包含图库、介绍、Spec、硬件、使用、FAQ 和下载区。", | ||
"params": { | "params": { | ||
" | "标题": {"label": "产品标题", "type": "string", "required": true}, | ||
" | "Model": {"label": "Model", "type": "string", "required": true}, | ||
" | "状态": {"label": "文档状态", "type": "string", "suggestedvalues": ["Published", "Draft", "Archived"]}, | ||
" | "Module": {"label": "Module", "type": "string", "required": true}, | ||
" | "主图": {"label": "主图", "type": "wiki-file-name", "required": true}, | ||
" | "副图": {"label": "副图", "type": "wiki-file-name"}, | ||
" | "简介": {"label": "简介", "type": "content"}, | ||
" | "产品要点": {"label": "产品要点", "type": "content"}, | ||
" | "Display Size": {"label": "Display Size", "type": "string"}, | ||
" | "Resolution": {"label": "Resolution", "type": "string"}, | ||
" | "Interface": {"label": "Interface", "type": "string"}, | ||
" | "Touch": {"label": "Touch", "type": "string"}, | ||
" | "Power": {"label": "Power", "type": "string"}, | ||
" | "Dimensions": {"label": "Dimensions", "type": "string"}, | ||
" | "硬件说明": {"label": "硬件说明", "type": "content"}, | ||
" | "使用说明": {"label": "使用说明", "type": "content"}, | ||
" | "常见问题": {"label": "常见问题", "type": "content"}, | ||
" | "下载类型": {"label": "下载类型", "type": "string"}, | ||
" | "下载名称": {"label": "下载名称", "type": "string"}, | ||
" | "下载说明": {"label": "下载说明", "type": "string"}, | ||
"下载版本": {"label": "下载版本", "type": "string"}, | |||
"下载文件": {"label": "下载文件", "type": "wiki-file-name"} | |||
" | |||
" | |||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 21:32, 1 August 2026
完整产品二级页模板,包含图库、介绍、Spec、硬件、使用、FAQ 和下载区。
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 产品标题 | 标题 | no description | String | required |
| Model | Model | no description | String | required |
| 文档状态 | 状态 | no description
| String | optional |
| Module | Module | no description | String | required |
| 主图 | 主图 | no description | File | required |
| 副图 | 副图 | no description | File | optional |
| 简介 | 简介 | no description | Content | optional |
| 产品要点 | 产品要点 | no description | Content | optional |
| Display Size | Display Size | no description | String | optional |
| Resolution | Resolution | no description | String | optional |
| Interface | Interface | no description | String | optional |
| Touch | Touch | no description | String | optional |
| Power | Power | no description | String | optional |
| Dimensions | Dimensions | no description | String | optional |
| 硬件说明 | 硬件说明 | no description | Content | optional |
| 使用说明 | 使用说明 | no description | Content | optional |
| 常见问题 | 常见问题 | no description | Content | optional |
| 下载类型 | 下载类型 | no description | String | optional |
| 下载名称 | 下载名称 | no description | String | optional |
| 下载说明 | 下载说明 | no description | String | optional |
| 下载版本 | 下载版本 | no description | String | optional |
| 下载文件 | 下载文件 | no description | File | optional |