Template:ProductInfo: Difference between revisions
Template page
More actions
Git release 505fe4b975fe |
Replace spec wikitable with free text field {{{specs|...}}} (fix: correct section boundary matching) |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#ifeq:{{{ | {{#ifeq:{{{displayMode|Detail}}}|Card | ||
|{{#ifeq:{{{ | |{{#ifeq:{{{status|Draft}}}|Published | ||
|<div class="lcd-card"> | |<div class="lcd-card"> | ||
<div class="lcd-card__media">[[File:{{ | <div class="lcd-card__media">[[File:{{{image1}}}|800px|link={{{cardPage|{{PAGENAME}}}}}|alt={{{title|{{PAGENAME}}}}}]]</div> | ||
<div class="lcd-card__body"> | <div class="lcd-card__body"> | ||
<div class="lcd-card__title">[[{{{ | <div class="lcd-card__title">[[{{{cardPage|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]</div> | ||
<div class="lcd-card__model">{ | <div class="lcd-card__model">{{{model|No model}}}</div> | ||
</div> | </div> | ||
<div class="techdocs-catalog-control">[[Special:FormEdit/ | <div class="techdocs-catalog-control">[[Special:FormEdit/ProductPage/{{{cardPage|{{PAGENAME}}}}}|Edit Product]]</div> | ||
</div> | </div> | ||
|}} | |}} | ||
|{{DISPLAYTITLE:{{{ | |{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}}} | ||
<div class="techdocs-product-edit">[[Special:FormEdit/ProductPage/{{FULLPAGENAME}}|Edit Product]]</div> | |||
<div class="lcd-product"> | <div class="lcd-product"> | ||
<div class="lcd-product__hero"> | <div class="lcd-product__hero"> | ||
<div class="lcd-product__summary"> | <div class="lcd-product__summary"> | ||
<span class="lcd-product__kicker">{{{ | <span class="lcd-product__kicker">{{{module|Product Docs}}}</span> | ||
<div class="lcd-product__model">{{{ | <div class="lcd-product__model">{{{model|No model}}}</div> | ||
<div class="lcd-product__status">{{ | <div class="lcd-product__status">{{DocStatus|status={{{status|Draft}}}}}</div> | ||
<div class="lcd-product__intro">{{{ | <div class="lcd-product__intro">{{{intro|No product intro available.}}}</div> | ||
</div> | </div> | ||
<div class="lcd-product__gallery"> | <div class="lcd-product__gallery"> | ||
<div>[[File:{{{ | <div>[[File:{{{image1}}}|900px|alt={{{title|{{PAGENAME}}}}} Main View]]</div> | ||
{{#if:{{{ | {{#if:{{{image2|}}}|<div>[[File:{{{image2}}}|900px|alt={{{title|{{PAGENAME}}}}} Auxiliary View]]</div>|}} | ||
</div> | </div> | ||
</div> | </div> | ||
== | == Introduction == | ||
{{{ | {{{highlights|* Product details to be added by admin.}}} | ||
== | == Specifications == | ||
{{{ | {{{specs|Specifications to be added.}}} | ||
== | == Hardware == | ||
{{{ | {{{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.}}} | ||
== | == FAQ == | ||
{{{ | {{{faq|; Is the page content real product data?<br>: Currently demo data; please replace with actual specs.}}} | ||
== | == Downloads == | ||
{{#if:{{{ | {{#if:{{{dl1File|}}}{{{dl2File|}}}{{{dl3File|}}}{{{dl4File|}}}{{{dl5File|}}}{{{dl6File|}}}{{{dl7File|}}}{{{dl8File|}}}{{{dl9File|}}}{{{dl10File|}}} | ||
|{{ | |<div class="lcd-download-list"> | ||
| | {{#if:{{{dl1File|}}}|{{DownloadItem | ||
| | |type={{{dl1Type|FILE}}} | ||
| | |name={{{dl1Name|Product Resource}}} | ||
| | |file={{{dl1File}}} | ||
| | }}}} | ||
}} | {{#if:{{{dl2File|}}}|{{DownloadItem | ||
|<div class="lcd-empty-resource"> | |type={{{dl2Type|FILE}}} | ||
|name={{{dl2Name|Product Resource}}} | |||
|file={{{dl2File}}} | |||
}}}} | |||
{{#if:{{{dl3File|}}}|{{DownloadItem | |||
|type={{{dl3Type|FILE}}} | |||
|name={{{dl3Name|Product Resource}}} | |||
|file={{{dl3File}}} | |||
}}}} | |||
{{#if:{{{dl4File|}}}|{{DownloadItem | |||
|type={{{dl4Type|FILE}}} | |||
|name={{{dl4Name|Product Resource}}} | |||
|file={{{dl4File}}} | |||
}}}} | |||
{{#if:{{{dl5File|}}}|{{DownloadItem | |||
|type={{{dl5Type|FILE}}} | |||
|name={{{dl5Name|Product Resource}}} | |||
|file={{{dl5File}}} | |||
}}}} | |||
{{#if:{{{dl6File|}}}|{{DownloadItem | |||
|type={{{dl6Type|FILE}}} | |||
|name={{{dl6Name|Product Resource}}} | |||
|file={{{dl6File}}} | |||
}}}} | |||
{{#if:{{{dl7File|}}}|{{DownloadItem | |||
|type={{{dl7Type|FILE}}} | |||
|name={{{dl7Name|Product Resource}}} | |||
|file={{{dl7File}}} | |||
}}}} | |||
{{#if:{{{dl8File|}}}|{{DownloadItem | |||
|type={{{dl8Type|FILE}}} | |||
|name={{{dl8Name|Product Resource}}} | |||
|file={{{dl8File}}} | |||
}}}} | |||
{{#if:{{{dl9File|}}}|{{DownloadItem | |||
|type={{{dl9Type|FILE}}} | |||
|name={{{dl9Name|Product Resource}}} | |||
|file={{{dl9File}}} | |||
}}}} | |||
{{#if:{{{dl10File|}}}|{{DownloadItem | |||
|type={{{dl10Type|FILE}}} | |||
|name={{{dl10Name|Product Resource}}} | |||
|file={{{dl10File}}} | |||
}}}} | |||
</div> | |||
|<div class="lcd-empty-resource">暂无Published资源,管理员可在产品表单中添加下载文件。</div> | |||
}} | }} | ||
</div> | </div> | ||
[[Category: | |||
[[Category:Product Docs]][[Category:{{{module|Uncategorized}}}]] | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
| Line 87: | Line 107: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "完整产品二级页模板,包含图库、介绍、Spec、硬件、使用、FAQ 和下载区。", | ||
"params": { | "params": { | ||
"标题": {"label": "产品标题", "type": "string", "required": true}, | "标题": {"label": "产品标题", "type": "string", "required": true}, | ||
" | "Model": {"label": "Model", "type": "string", "required": true}, | ||
"状态": {"label": "文档状态", "type": "string", "suggestedvalues": [" | "状态": {"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", "required": true}, | ||
"副图": {"label": "副图", "type": "wiki-file-name"}, | "副图": {"label": "副图", "type": "wiki-file-name"}, | ||
"简介": {"label": "简介", "type": "content"}, | "简介": {"label": "简介", "type": "content"}, | ||
"产品要点": {"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": "content"}, | ||
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 |