Template:ProductInfo: Difference between revisions
Template page
More actions
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={{{ | <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">[[{{{ | <div class="lcd-card__title">[[{{{Card页面|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]</div> | ||
<div class="lcd-card__model">{{{ | <div class="lcd-card__model">{{{Model|N/AModel}}}</div> | ||
</div> | </div> | ||
<div class="techdocs-catalog-control">[[Special:FormEdit/ProductPage/{{{ | <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">{{{ | <span class="lcd-product__kicker">{{{Module|Product Docs}}}</span> | ||
<div class="lcd-product__model">{{{ | <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}}} | ||
{{!}}- | {{!}}- | ||
! Module | ! Module | ||
{{!}} {{{ | {{!}} {{{Module|N/A}}} | ||
{{!}}- | {{!}}- | ||
! Display Size | ! Display Size | ||
{{!}} {{{ | {{!}} {{{Display Size|N/A}}} | ||
{{!}}- | {{!}}- | ||
! Resolution | ! Resolution | ||
{{!}} {{{ | {{!}} {{{Resolution|N/A}}} | ||
{{!}}- | {{!}}- | ||
! Interface | ! Interface | ||
{{!}} {{{ | {{!}} {{{Interface|N/A}}} | ||
{{!}}- | {{!}}- | ||
! Touch | ! Touch | ||
{{!}} {{{ | {{!}} {{{Touch|N/A}}} | ||
{{!}}- | {{!}}- | ||
! Power | ! Power | ||
{{!}} {{{ | {{!}} {{{Power|N/A}}} | ||
{{!}}- | {{!}}- | ||
! Dimensions | ! Dimensions | ||
{{!}} {{{ | {{!}} {{{Dimensions|N/A}}} | ||
{{!}}} | {{!}}} | ||
| Line 67: | Line 67: | ||
== FAQ == | == FAQ == | ||
{{{faq|; | {{{faq|; 页面内容是否为真实产品Spec?<br>: Currently demo data; please replace with actual specs.}}} | ||
== Downloads == | == Downloads == | ||
| Line 123: | Line 123: | ||
}}}} | }}}} | ||
</div> | </div> | ||
|<div class="lcd-empty-resource"> | |<div class="lcd-empty-resource">暂无Published资源,管理员可在产品表单中添加下载文件。</div> | ||
}} | }} | ||
</div> | </div> | ||
[[Category:Product Docs]][[Category:{{{ | |||
[[Category:Product Docs]][[Category:{{{Module|Uncategorized}}}]] | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
| Line 133: | Line 134: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "完整产品二级页模板,包含图库、介绍、Spec、硬件、使用、FAQ 和下载区。", | ||
"params": { | "params": { | ||
" | "标题": {"label": "产品标题", "type": "string", "required": true}, | ||
" | "Model": {"label": "Model", "type": "string", "required": true}, | ||
" | "状态": {"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"}, | ||
" | "简介": {"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": "string"}, | ||
" | "下载名称": {"label": "下载名称", "type": "string"}, | ||
" | "下载说明": {"label": "下载说明", "type": "string"}, | ||
"下载版本": {"label": "下载版本", "type": "string"}, | |||
"下载文件": {"label": "下载文件", "type": "wiki-file-name"} | |||
" | |||
" | |||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 00:11, 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 |