Template:ProductInfo: Difference between revisions
Template page
More actions
Replace spec wikitable with free text field {{{specs|...}}} (fix: correct section boundary matching) |
Git release 8da36f7e8a33 |
||
| Line 29: | Line 29: | ||
== Introduction == | == Introduction == | ||
{{{highlights|* Product details to be added by admin.}}} | {{{highlights|* Product details to be added by admin.}}} | ||
{{#if:{{{videoURL|}}} | |||
|== Product Video == | |||
<div class="lcd-product-video"> | |||
<div class="lcd-product-video__player">{{#tag:youtube|{{{videoURL}}}|width=960|height=540}}</div> | |||
{{#if:{{{videoTitle|}}}{{{videoCover|}}}{{{videoDescription|}}} | |||
|<div class="lcd-product-video__details"> | |||
{{#if:{{{videoCover|}}}|<div class="lcd-product-video__cover">[[File:{{{videoCover}}}|640px|link=|alt={{{videoTitle|Product Video}}}]]</div>|}} | |||
<div class="lcd-product-video__copy"> | |||
<div class="lcd-product-video__title">{{{videoTitle|Product Video}}}</div> | |||
{{#if:{{{videoDescription|}}}|<div class="lcd-product-video__description">{{{videoDescription}}}</div>|}} | |||
<div class="lcd-product-video__external">[{{{videoURL}}} Open on YouTube]</div> | |||
</div> | |||
</div> | |||
|}} | |||
</div> | |||
|}} | |||
== Specifications == | == Specifications == | ||
| Line 117: | Line 134: | ||
"简介": {"label": "简介", "type": "content"}, | "简介": {"label": "简介", "type": "content"}, | ||
"产品要点": {"label": "产品要点", "type": "content"}, | "产品要点": {"label": "产品要点", "type": "content"}, | ||
"videoTitle": {"label": "Video Title", "type": "string"}, | |||
"videoURL": {"label": "YouTube Video URL", "type": "url"}, | |||
"videoCover": {"label": "Video Cover", "type": "wiki-file-name"}, | |||
"videoDescription": {"label": "Video Description", "type": "content"}, | |||
"Display Size": {"label": "Display Size", "type": "string"}, | "Display Size": {"label": "Display Size", "type": "string"}, | ||
"Resolution": {"label": "Resolution", "type": "string"}, | "Resolution": {"label": "Resolution", "type": "string"}, | ||
Revision as of 23:38, 9 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 |
| Video Title | videoTitle | no description | String | optional |
| YouTube Video URL | videoURL | no description | URL | optional |
| Video Cover | videoCover | no description | File | optional |
| Video Description | videoDescription | 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 |