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

Template:ProductInfo: Difference between revisions

Template page
m Wikiadmin moved page Template:产品信息 to Template:ProductInfo without leaving a redirect: Rename to English
Full English rewrite: English params, headings, status logic
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:{{{主图}}}|800px|link={{{卡片页面|{{PAGENAME}}}}}|alt={{{标题|{{PAGENAME}}}}}]]</div>
<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">[[{{{卡片页面|{{PAGENAME}}}}}|{{{标题|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__title">[[{{{cardPage|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__model">{{{型号|未填写型号}}}</div>
<div class="lcd-card__model">{{{model|No model}}}</div>
</div>
</div>
<div class="techdocs-catalog-control">[[Special:FormEdit/产品二级页/{{{卡片页面|{{PAGENAME}}}}}|编辑产品]]</div>
<div class="techdocs-catalog-control">[[Special:FormEdit/ProductPage/{{{cardPage|{{PAGENAME}}}}}|Edit Product]]</div>
</div>
</div>
|}}
|}}
|{{DISPLAYTITLE:{{{标题|{{PAGENAME}}}}}}}
|{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}}}
<div class="techdocs-product-edit">[[Special:FormEdit/产品二级页/{{FULLPAGENAME}}|编辑产品]]</div>
<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>
<span class="lcd-product__kicker">{{{module|Product Docs}}}</span>
<div class="lcd-product__model">{{{型号|未填写型号}}}</div>
<div class="lcd-product__model">{{{model|No model}}}</div>
<div class="lcd-product__status">{{文档状态|状态={{{状态|草稿}}}}}</div>
<div class="lcd-product__status">{{DocStatus|status={{{status|Draft}}}}}</div>
<div class="lcd-product__intro">{{{简介|暂无产品简介。}}}</div>
<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:{{{主图}}}|900px|alt={{{标题|{{PAGENAME}}}}} 主视图]]</div>
<div>[[File:{{{image1}}}|900px|alt={{{title|{{PAGENAME}}}}} Main View]]</div>
{{#if:{{{副图|}}}|<div>[[File:{{{副图}}}|900px|alt={{{标题|{{PAGENAME}}}}} 辅助视图]]</div>|}}
{{#if:{{{image2|}}}|<div>[[File:{{{image2}}}|900px|alt={{{title|{{PAGENAME}}}}} Auxiliary View]]</div>|}}
</div>
</div>
</div>
</div>


== 产品介绍 ==
== Product Introduction ==
{{{产品要点|* 产品资料待管理员补充。}}}
{{{highlights|* Product details to be added by admin.}}}


== 产品参数 ==
== Specifications ==
{{{!}} class="wikitable lcd-spec-table"
{{{!}} class="wikitable lcd-spec-table"
! 项目
! Item
! 参数
! Spec
{{!}}-
{{!}}-
! 型号
! Model
{{!}} {{{型号|未填写}}}
{{!}} {{{model|N/A}}}
{{!}}-
{{!}}-
! 所属模块
! Module
{{!}} {{{所属模块|未填写}}}
{{!}} {{{module|N/A}}}
{{!}}-
{{!}}-
! 显示尺寸
! Display Size
{{!}} {{{显示尺寸|未填写}}}
{{!}} {{{displaySize|N/A}}}
{{!}}-
{{!}}-
! 分辨率
! Resolution
{{!}} {{{分辨率|未填写}}}
{{!}} {{{resolution|N/A}}}
{{!}}-
{{!}}-
! 显示接口
! Interface
{{!}} {{{显示接口|未填写}}}
{{!}} {{{interface|N/A}}}
{{!}}-
{{!}}-
! 触控方式
! Touch
{{!}} {{{触控方式|未填写}}}
{{!}} {{{touch|N/A}}}
{{!}}-
{{!}}-
! 供电
! Power
{{!}} {{{供电|未填写}}}
{{!}} {{{power|N/A}}}
{{!}}-
{{!}}-
! 外形尺寸
! Dimensions
{{!}} {{{外形尺寸|未填写}}}
{{!}} {{{dimensions|N/A}}}
{{!}}}
{{!}}}


== 硬件说明 ==
== Hardware ==
{{{硬件说明|硬件接口与结构说明待补充。}}}
{{{hardware|Hardware interface and structure details to be added.}}}


== 使用说明 ==
== Usage ==
{{{使用说明|# 连接硬件。<br># 上电并检查显示。<br># 按产品资料完成软件配置。}}}
{{{usage|# Connect the hardware.<br># Power on and check the display.<br># Configure software per product documentation.}}}


== 常见问题 ==
== FAQ ==
{{{常见问题|; 页面内容是否为真实产品参数?<br>: 当前为原创演示数据,请由管理员替换为实际资料。}}}
{{{faq|; Is the page content real product data?<br>: Currently demo data; please replace with actual specs.}}}


== 资源下载 ==
== Downloads ==
{{#if:{{{下载文件|}}}{{{下载2文件|}}}{{{下载3文件|}}}{{{下载4文件|}}}{{{下载5文件|}}}{{{下载6文件|}}}{{{下载7文件|}}}{{{下载8文件|}}}{{{下载9文件|}}}{{{下载10文件|}}}
{{#if:{{{dl1File|}}}{{{dl2File|}}}{{{dl3File|}}}{{{dl4File|}}}{{{dl5File|}}}{{{dl6File|}}}{{{dl7File|}}}{{{dl8File|}}}{{{dl9File|}}}{{{dl10File|}}}
|<div class="lcd-download-list">
|<div class="lcd-download-list">
{{#if:{{{下载文件|}}}|{{下载项
{{#if:{{{dl1File|}}}|{{DownloadItem
  |类型={{{下载类型|FILE}}}
  |type={{{dl1Type|FILE}}}
  |名称={{{下载名称|产品资料}}}
  |name={{{dl1Name|Product Resource}}}
  |文件={{{下载文件}}}
  |file={{{dl1File}}}
}}}}
}}}}
{{#if:{{{下载2文件|}}}|{{下载项
{{#if:{{{dl2File|}}}|{{DownloadItem
  |类型={{{下载2类型|FILE}}}
  |type={{{dl2Type|FILE}}}
  |名称={{{下载2名称|产品资料}}}
  |name={{{dl2Name|Product Resource}}}
  |文件={{{下载2文件}}}
  |file={{{dl2File}}}
}}}}
}}}}
{{#if:{{{下载3文件|}}}|{{下载项
{{#if:{{{dl3File|}}}|{{DownloadItem
  |类型={{{下载3类型|FILE}}}
  |type={{{dl3Type|FILE}}}
  |名称={{{下载3名称|产品资料}}}
  |name={{{dl3Name|Product Resource}}}
  |文件={{{下载3文件}}}
  |file={{{dl3File}}}
}}}}
}}}}
{{#if:{{{下载4文件|}}}|{{下载项
{{#if:{{{dl4File|}}}|{{DownloadItem
  |类型={{{下载4类型|FILE}}}
  |type={{{dl4Type|FILE}}}
  |名称={{{下载4名称|产品资料}}}
  |name={{{dl4Name|Product Resource}}}
  |文件={{{下载4文件}}}
  |file={{{dl4File}}}
}}}}
}}}}
{{#if:{{{下载5文件|}}}|{{下载项
{{#if:{{{dl5File|}}}|{{DownloadItem
  |类型={{{下载5类型|FILE}}}
  |type={{{dl5Type|FILE}}}
  |名称={{{下载5名称|产品资料}}}
  |name={{{dl5Name|Product Resource}}}
  |文件={{{下载5文件}}}
  |file={{{dl5File}}}
}}}}
}}}}
{{#if:{{{下载6文件|}}}|{{下载项
{{#if:{{{dl6File|}}}|{{DownloadItem
  |类型={{{下载6类型|FILE}}}
  |type={{{dl6Type|FILE}}}
  |名称={{{下载6名称|产品资料}}}
  |name={{{dl6Name|Product Resource}}}
  |文件={{{下载6文件}}}
  |file={{{dl6File}}}
}}}}
}}}}
{{#if:{{{下载7文件|}}}|{{下载项
{{#if:{{{dl7File|}}}|{{DownloadItem
  |类型={{{下载7类型|FILE}}}
  |type={{{dl7Type|FILE}}}
  |名称={{{下载7名称|产品资料}}}
  |name={{{dl7Name|Product Resource}}}
  |文件={{{下载7文件}}}
  |file={{{dl7File}}}
}}}}
}}}}
{{#if:{{{下载8文件|}}}|{{下载项
{{#if:{{{dl8File|}}}|{{DownloadItem
  |类型={{{下载8类型|FILE}}}
  |type={{{dl8Type|FILE}}}
  |名称={{{下载8名称|产品资料}}}
  |name={{{dl8Name|Product Resource}}}
  |文件={{{下载8文件}}}
  |file={{{dl8File}}}
}}}}
}}}}
{{#if:{{{下载9文件|}}}|{{下载项
{{#if:{{{dl9File|}}}|{{DownloadItem
  |类型={{{下载9类型|FILE}}}
  |type={{{dl9Type|FILE}}}
  |名称={{{下载9名称|产品资料}}}
  |name={{{dl9Name|Product Resource}}}
  |文件={{{下载9文件}}}
  |file={{{dl9File}}}
}}}}
}}}}
{{#if:{{{下载10文件|}}}|{{下载项
{{#if:{{{dl10File|}}}|{{DownloadItem
  |类型={{{下载10类型|FILE}}}
  |type={{{dl10Type|FILE}}}
  |名称={{{下载10名称|产品资料}}}
  |name={{{dl10Name|Product Resource}}}
  |文件={{{下载10文件}}}
  |file={{{dl10File}}}
}}}}
}}}}
</div>
</div>
|<div class="lcd-empty-resource">暂无已发布资源,管理员可在产品表单中添加下载文件。</div>
|<div class="lcd-empty-resource">No published resources available. Admin can add download files in the product form.</div>
}}
}}
</div>
</div>


 
[[Category:Product Docs]][[Category:{{{module|Uncategorized}}}}]
[[Category:产品文档]][[Category:{{{所属模块|未分类产品}}}]]
}}
}}
</includeonly>
</includeonly>
Line 134: Line 133:
<templatedata>
<templatedata>
{
{
   "description": "完整产品二级页模板,包含图库、介绍、参数、硬件、使用、FAQ 和下载区。",
   "description": "Full product page template with gallery, intro, specs, hardware, usage, FAQ and downloads.",
   "params": {
   "params": {
     "标题": {"label": "产品标题", "type": "string", "required": true},
     "title": {"label": "Product Title", "type": "string", "required": true},
     "型号": {"label": "型号", "type": "string", "required": true},
     "model": {"label": "Model", "type": "string", "required": true},
     "状态": {"label": "文档状态", "type": "string", "suggestedvalues": ["已发布", "草稿", "已归档"]},
     "status": {"label": "Doc Status", "type": "string", "suggestedvalues": ["Published", "Draft", "Archived"]},
     "所属模块": {"label": "所属模块", "type": "string", "required": true},
     "module": {"label": "Module", "type": "string", "required": true},
     "主图": {"label": "主图", "type": "wiki-file-name", "required": true},
     "image1": {"label": "Main Image", "type": "wiki-file-name", "required": true},
     "副图": {"label": "副图", "type": "wiki-file-name"},
     "image2": {"label": "Aux Image", "type": "wiki-file-name"},
     "简介": {"label": "简介", "type": "content"},
     "intro": {"label": "Intro", "type": "content"},
     "产品要点": {"label": "产品要点", "type": "content"},
     "highlights": {"label": "Highlights", "type": "content"},
     "显示尺寸": {"label": "显示尺寸", "type": "string"},
     "displaySize": {"label": "Display Size", "type": "string"},
     "分辨率": {"label": "分辨率", "type": "string"},
     "resolution": {"label": "Resolution", "type": "string"},
     "显示接口": {"label": "显示接口", "type": "string"},
     "interface": {"label": "Interface", "type": "string"},
     "触控方式": {"label": "触控方式", "type": "string"},
     "touch": {"label": "Touch", "type": "string"},
     "供电": {"label": "供电", "type": "string"},
     "power": {"label": "Power", "type": "string"},
     "外形尺寸": {"label": "外形尺寸", "type": "string"},
     "dimensions": {"label": "Dimensions", "type": "string"},
     "硬件说明": {"label": "硬件说明", "type": "content"},
     "hardware": {"label": "Hardware", "type": "content"},
     "使用说明": {"label": "使用说明", "type": "content"},
     "usage": {"label": "Usage", "type": "content"},
     "常见问题": {"label": "常见问题", "type": "content"},
     "faq": {"label": "FAQ", "type": "content"},
     "下载类型": {"label": "下载类型", "type": "string"},
     "dl1Type": {"label": "DL1 Type", "type": "string"},
     "下载名称": {"label": "下载名称", "type": "string"},
     "dl1Name": {"label": "DL1 Name", "type": "string"},
     "下载说明": {"label": "下载说明", "type": "string"},
     "dl1File": {"label": "DL1 File", "type": "wiki-file-name"},
     "下载版本": {"label": "下载版本", "type": "string"},
    "dl2Type": {"label": "DL2 Type", "type": "string"},
     "下载文件": {"label": "下载文件", "type": "wiki-file-name"}
    "dl2Name": {"label": "DL2 Name", "type": "string"},
    "dl2File": {"label": "DL2 File", "type": "wiki-file-name"},
    "dl3Type": {"label": "DL3 Type", "type": "string"},
     "dl3Name": {"label": "DL3 Name", "type": "string"},
     "dl3File": {"label": "DL3 File", "type": "wiki-file-name"}
   }
   }
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 23:54, 31 July 2026


Full product page template with gallery, intro, specs, hardware, usage, FAQ and downloads.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Product Titletitle

no description

Stringrequired
Modelmodel

no description

Stringrequired
Doc Statusstatus

no description

Suggested values
Published Draft Archived
Stringoptional
Modulemodule

no description

Stringrequired
Main Imageimage1

no description

Filerequired
Aux Imageimage2

no description

Fileoptional
Introintro

no description

Contentoptional
Highlightshighlights

no description

Contentoptional
Display SizedisplaySize

no description

Stringoptional
Resolutionresolution

no description

Stringoptional
Interfaceinterface

no description

Stringoptional
Touchtouch

no description

Stringoptional
Powerpower

no description

Stringoptional
Dimensionsdimensions

no description

Stringoptional
Hardwarehardware

no description

Contentoptional
Usageusage

no description

Contentoptional
FAQfaq

no description

Contentoptional
DL1 Typedl1Type

no description

Stringoptional
DL1 Namedl1Name

no description

Stringoptional
DL1 Filedl1File

no description

Fileoptional
DL2 Typedl2Type

no description

Stringoptional
DL2 Namedl2Name

no description

Stringoptional
DL2 Filedl2File

no description

Fileoptional
DL3 Typedl3Type

no description

Stringoptional
DL3 Namedl3Name

no description

Stringoptional
DL3 Filedl3File

no description

Fileoptional