Toggle menu
Toggle preferences menu
Toggle personal menu
Administrator Login Only
Access is restricted to site administrators.

Template:ProductInfo: Difference between revisions

Template page
初始化技术文档中心框架
 
Replace spec wikitable with free text field {{{specs|...}}} (fix: correct section boundary matching)
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="techdocs-product-card">
<includeonly>
<div class="techdocs-product-card__header">
{{#ifeq:{{{displayMode|Detail}}}|Card
<div><span class="techdocs-kicker">PRODUCT PROFILE</span><div class="techdocs-product-card__model">{{{型号|未填写型号}}}</div></div>
|{{#ifeq:{{{status|Draft}}}|Published
<div class="techdocs-status">{{文档状态|状态={{{状态|草稿}}}}}</div>
|<div class="lcd-card">
<div class="lcd-card__media">[[File:{{{image1}}}|800px|link={{{cardPage|{{PAGENAME}}}}}|alt={{{title|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__body">
<div class="lcd-card__title">[[{{{cardPage|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__model">{{{model|No model}}}</div>
</div>
</div>
{| class="wikitable techdocs-spec-table"
<div class="techdocs-catalog-control">[[Special:FormEdit/ProductPage/{{{cardPage|{{PAGENAME}}}}}|Edit Product]]</div>
! 产品类别
| {{{类别|未填写}}}
! 主控 / 内核
| {{{主控|未填写}}}
|-
! 工作频率
| {{{频率|未填写}}}
! 工作电压
| {{{电压|未填写}}}
|-
! 主要接口
| {{{接口|未填写}}}
! 封装 / 尺寸
| {{{封装|未填写}}}
|-
! 文档版本
| {{{版本|1.0}}}
! 最后更新
| {{{更新时间|未填写}}}
|}
</div>
</div>
|}}
|{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}}}
<div class="techdocs-product-edit">[[Special:FormEdit/ProductPage/{{FULLPAGENAME}}|Edit Product]]</div>
<div class="lcd-product">
<div class="lcd-product__hero">
<div class="lcd-product__summary">
<span class="lcd-product__kicker">{{{module|Product Docs}}}</span>
<div class="lcd-product__model">{{{model|No model}}}</div>
<div class="lcd-product__status">{{DocStatus|status={{{status|Draft}}}}}</div>
<div class="lcd-product__intro">{{{intro|No product intro available.}}}</div>
</div>
<div class="lcd-product__gallery">
<div>[[File:{{{image1}}}|900px|alt={{{title|{{PAGENAME}}}}} Main View]]</div>
{{#if:{{{image2|}}}|<div>[[File:{{{image2}}}|900px|alt={{{title|{{PAGENAME}}}}} Auxiliary View]]</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:{{{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
|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>
[[Category:Product Docs]][[Category:{{{module|Uncategorized}}}]]
}}
</includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
   "description": "技术产品或芯片的结构化信息卡片。",
   "description": "完整产品二级页模板,包含图库、介绍、Spec、硬件、使用、FAQ 和下载区。",
   "params": {
   "params": {
     "型号": {"label": "型号", "type": "string", "required": true},
     "标题": {"label": "产品标题", "type": "string", "required": true},
     "状态": {"label": "文档状态", "type": "string", "suggestedvalues": ["已发布", "草稿", "已归档"]},
    "Model": {"label": "Model", "type": "string", "required": true},
     "类别": {"label": "产品类别", "type": "string"},
     "状态": {"label": "文档状态", "type": "string", "suggestedvalues": ["Published", "Draft", "Archived"]},
     "主控": {"label": "主控或内核", "type": "string"},
     "Module": {"label": "Module", "type": "string", "required": true},
     "频率": {"label": "工作频率", "type": "string"},
    "主图": {"label": "主图", "type": "wiki-file-name", "required": true},
     "电压": {"label": "工作电压", "type": "string"},
    "副图": {"label": "副图", "type": "wiki-file-name"},
     "接口": {"label": "主要接口", "type": "string"},
    "简介": {"label": "简介", "type": "content"},
     "封装": {"label": "封装或尺寸", "type": "string"},
     "产品要点": {"label": "产品要点", "type": "content"},
     "版本": {"label": "文档版本", "type": "string"},
    "Display Size": {"label": "Display Size", "type": "string"},
     "更新时间": {"label": "最后更新时间", "type": "date"}
     "Resolution": {"label": "Resolution", "type": "string"},
  },
     "Interface": {"label": "Interface", "type": "string"},
  "paramOrder": ["型号", "状态", "类别", "主控", "频率", "电压", "接口", "封装", "版本", "更新时间"]
     "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 和下载区。

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
产品标题标题

no description

Stringrequired
ModelModel

no description

Stringrequired
文档状态状态

no description

Suggested values
Published Draft Archived
Stringoptional
ModuleModule

no description

Stringrequired
主图主图

no description

Filerequired
副图副图

no description

Fileoptional
简介简介

no description

Contentoptional
产品要点产品要点

no description

Contentoptional
Display SizeDisplay Size

no description

Stringoptional
ResolutionResolution

no description

Stringoptional
InterfaceInterface

no description

Stringoptional
TouchTouch

no description

Stringoptional
PowerPower

no description

Stringoptional
DimensionsDimensions

no description

Stringoptional
硬件说明硬件说明

no description

Contentoptional
使用说明使用说明

no description

Contentoptional
常见问题常见问题

no description

Contentoptional
下载类型下载类型

no description

Stringoptional
下载名称下载名称

no description

Stringoptional
下载说明下载说明

no description

Stringoptional
下载版本下载版本

no description

Stringoptional
下载文件下载文件

no description

Fileoptional