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

Template:ProductInfo: Difference between revisions

Template page
Full English rewrite: English params, headings, status logic
Fix: rebuild from old revision with English param names (fix brace mismatch)
Line 3: Line 3:
|{{#ifeq:{{{status|Draft}}}|Published
|{{#ifeq:{{{status|Draft}}}|Published
|<div class="lcd-card">
|<div class="lcd-card">
<div class="lcd-card__media">[[File:{{{image1}}}|800px|link={{{cardPage|{{PAGENAME}}}}}|alt={{{title|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__media">[[File:{{{image1}}}|800px|link={{{Card页面|{{PAGENAME}}}}}|alt={{{title|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__body">
<div class="lcd-card__body">
<div class="lcd-card__title">[[{{{cardPage|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__title">[[{{{Card页面|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]</div>
<div class="lcd-card__model">{{{model|No model}}}</div>
<div class="lcd-card__model">{{{Model|N/AModel}}}</div>
</div>
</div>
<div class="techdocs-catalog-control">[[Special:FormEdit/ProductPage/{{{cardPage|{{PAGENAME}}}}}|Edit Product]]</div>
<div class="techdocs-catalog-control">[[Special:FormEdit/ProductPage/{{{Card页面|{{PAGENAME}}}}}|Edit Product]]</div>
</div>
</div>
|}}
|}}
Line 16: Line 16:
<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">{{{module|Product Docs}}}</span>
<span class="lcd-product__kicker">{{{Module|Product Docs}}}</span>
<div class="lcd-product__model">{{{model|No model}}}</div>
<div class="lcd-product__model">{{{Model|N/AModel}}}</div>
<div class="lcd-product__status">{{DocStatus|status={{{status|Draft}}}}}</div>
<div class="lcd-product__status">{{DocStatus|status={{{status|Draft}}}}}</div>
<div class="lcd-product__intro">{{{intro|No product intro available.}}}</div>
<div class="lcd-product__intro">{{{intro|No product intro available.}}}</div>
Line 36: Line 36:
{{!}}-
{{!}}-
! Model
! Model
{{!}} {{{model|N/A}}}
{{!}} {{{Model|N/A}}}
{{!}}-
{{!}}-
! Module
! Module
{{!}} {{{module|N/A}}}
{{!}} {{{Module|N/A}}}
{{!}}-
{{!}}-
! Display Size
! Display Size
{{!}} {{{displaySize|N/A}}}
{{!}} {{{Display Size|N/A}}}
{{!}}-
{{!}}-
! Resolution
! Resolution
{{!}} {{{resolution|N/A}}}
{{!}} {{{Resolution|N/A}}}
{{!}}-
{{!}}-
! Interface
! Interface
{{!}} {{{interface|N/A}}}
{{!}} {{{Interface|N/A}}}
{{!}}-
{{!}}-
! Touch
! Touch
{{!}} {{{touch|N/A}}}
{{!}} {{{Touch|N/A}}}
{{!}}-
{{!}}-
! Power
! Power
{{!}} {{{power|N/A}}}
{{!}} {{{Power|N/A}}}
{{!}}-
{{!}}-
! Dimensions
! Dimensions
{{!}} {{{dimensions|N/A}}}
{{!}} {{{Dimensions|N/A}}}
{{!}}}
{{!}}}


Line 67: Line 67:


== FAQ ==
== FAQ ==
{{{faq|; Is the page content real product data?<br>: Currently demo data; please replace with actual specs.}}}
{{{faq|; 页面内容是否为真实产品Spec?<br>: Currently demo data; please replace with actual specs.}}}


== Downloads ==
== Downloads ==
Line 123: Line 123:
}}}}
}}}}
</div>
</div>
|<div class="lcd-empty-resource">No published resources available. Admin can add download files in the product form.</div>
|<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 134:
<templatedata>
<templatedata>
{
{
   "description": "Full product page template with gallery, intro, specs, hardware, usage, FAQ and downloads.",
   "description": "完整产品二级页模板,包含图库、介绍、Spec、硬件、使用、FAQ 和下载区。",
   "params": {
   "params": {
     "title": {"label": "Product Title", "type": "string", "required": true},
     "标题": {"label": "产品标题", "type": "string", "required": true},
     "model": {"label": "Model", "type": "string", "required": true},
     "Model": {"label": "Model", "type": "string", "required": true},
     "status": {"label": "Doc Status", "type": "string", "suggestedvalues": ["Published", "Draft", "Archived"]},
     "状态": {"label": "文档状态", "type": "string", "suggestedvalues": ["Published", "Draft", "Archived"]},
     "module": {"label": "Module", "type": "string", "required": true},
     "Module": {"label": "Module", "type": "string", "required": true},
     "image1": {"label": "Main Image", "type": "wiki-file-name", "required": true},
     "主图": {"label": "主图", "type": "wiki-file-name", "required": true},
     "image2": {"label": "Aux Image", "type": "wiki-file-name"},
     "副图": {"label": "副图", "type": "wiki-file-name"},
     "intro": {"label": "Intro", "type": "content"},
     "简介": {"label": "简介", "type": "content"},
     "highlights": {"label": "Highlights", "type": "content"},
     "产品要点": {"label": "产品要点", "type": "content"},
     "displaySize": {"label": "Display Size", "type": "string"},
     "Display Size": {"label": "Display Size", "type": "string"},
     "resolution": {"label": "Resolution", "type": "string"},
     "Resolution": {"label": "Resolution", "type": "string"},
     "interface": {"label": "Interface", "type": "string"},
     "Interface": {"label": "Interface", "type": "string"},
     "touch": {"label": "Touch", "type": "string"},
     "Touch": {"label": "Touch", "type": "string"},
     "power": {"label": "Power", "type": "string"},
     "Power": {"label": "Power", "type": "string"},
     "dimensions": {"label": "Dimensions", "type": "string"},
     "Dimensions": {"label": "Dimensions", "type": "string"},
     "hardware": {"label": "Hardware", "type": "content"},
     "硬件说明": {"label": "硬件说明", "type": "content"},
     "usage": {"label": "Usage", "type": "content"},
     "使用说明": {"label": "使用说明", "type": "content"},
     "faq": {"label": "FAQ", "type": "content"},
     "常见问题": {"label": "常见问题", "type": "content"},
     "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": "string"},
    "dl2Name": {"label": "DL2 Name", "type": "string"},
     "下载文件": {"label": "下载文件", "type": "wiki-file-name"}
    "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 00:11, 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