Template:ProductInfo: Difference between revisions
Template page
More actions
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:{{{ | <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/ | <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> | ||
== | == 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 == | ||
{{{ | {{{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"> | |<div class="lcd-download-list"> | ||
{{#if:{{{ | {{#if:{{{dl1File|}}}|{{DownloadItem | ||
| | |type={{{dl1Type|FILE}}} | ||
| | |name={{{dl1Name|Product Resource}}} | ||
| | |file={{{dl1File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl2File|}}}|{{DownloadItem | ||
| | |type={{{dl2Type|FILE}}} | ||
| | |name={{{dl2Name|Product Resource}}} | ||
| | |file={{{dl2File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl3File|}}}|{{DownloadItem | ||
| | |type={{{dl3Type|FILE}}} | ||
| | |name={{{dl3Name|Product Resource}}} | ||
| | |file={{{dl3File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl4File|}}}|{{DownloadItem | ||
| | |type={{{dl4Type|FILE}}} | ||
| | |name={{{dl4Name|Product Resource}}} | ||
| | |file={{{dl4File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl5File|}}}|{{DownloadItem | ||
| | |type={{{dl5Type|FILE}}} | ||
| | |name={{{dl5Name|Product Resource}}} | ||
| | |file={{{dl5File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl6File|}}}|{{DownloadItem | ||
| | |type={{{dl6Type|FILE}}} | ||
| | |name={{{dl6Name|Product Resource}}} | ||
| | |file={{{dl6File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl7File|}}}|{{DownloadItem | ||
| | |type={{{dl7Type|FILE}}} | ||
| | |name={{{dl7Name|Product Resource}}} | ||
| | |file={{{dl7File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl8File|}}}|{{DownloadItem | ||
| | |type={{{dl8Type|FILE}}} | ||
| | |name={{{dl8Name|Product Resource}}} | ||
| | |file={{{dl8File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl9File|}}}|{{DownloadItem | ||
| | |type={{{dl9Type|FILE}}} | ||
| | |name={{{dl9Name|Product Resource}}} | ||
| | |file={{{dl9File}}} | ||
}}}} | }}}} | ||
{{#if:{{{ | {{#if:{{{dl10File|}}}|{{DownloadItem | ||
| | |type={{{dl10Type|FILE}}} | ||
| | |name={{{dl10Name|Product Resource}}} | ||
| | |file={{{dl10File}}} | ||
}}}} | }}}} | ||
</div> | </div> | ||
|<div class="lcd-empty-resource"> | |<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: | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
| Line 134: | Line 133: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Full product page template with gallery, intro, specs, hardware, usage, FAQ and downloads.", | ||
"params": { | "params": { | ||
" | "title": {"label": "Product Title", "type": "string", "required": true}, | ||
" | "model": {"label": "Model", "type": "string", "required": true}, | ||
" | "status": {"label": "Doc Status", "type": "string", "suggestedvalues": ["Published", "Draft", "Archived"]}, | ||
" | "module": {"label": "Module", "type": "string", "required": true}, | ||
" | "image1": {"label": "Main Image", "type": "wiki-file-name", "required": true}, | ||
" | "image2": {"label": "Aux Image", "type": "wiki-file-name"}, | ||
" | "intro": {"label": "Intro", "type": "content"}, | ||
" | "highlights": {"label": "Highlights", "type": "content"}, | ||
" | "displaySize": {"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"}, | ||
" | "hardware": {"label": "Hardware", "type": "content"}, | ||
" | "usage": {"label": "Usage", "type": "content"}, | ||
" | "faq": {"label": "FAQ", "type": "content"}, | ||
" | "dl1Type": {"label": "DL1 Type", "type": "string"}, | ||
" | "dl1Name": {"label": "DL1 Name", "type": "string"}, | ||
" | "dl1File": {"label": "DL1 File", "type": "wiki-file-name"}, | ||
" | "dl2Type": {"label": "DL2 Type", "type": "string"}, | ||
" | "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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Product Title | title | no description | String | required |
| Model | model | no description | String | required |
| Doc Status | status | no description
| String | optional |
| Module | module | no description | String | required |
| Main Image | image1 | no description | File | required |
| Aux Image | image2 | no description | File | optional |
| Intro | intro | no description | Content | optional |
| Highlights | highlights | no description | Content | optional |
| Display Size | displaySize | 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 |
| Hardware | hardware | no description | Content | optional |
| Usage | usage | no description | Content | optional |
| FAQ | faq | no description | Content | optional |
| DL1 Type | dl1Type | no description | String | optional |
| DL1 Name | dl1Name | no description | String | optional |
| DL1 File | dl1File | no description | File | optional |
| DL2 Type | dl2Type | no description | String | optional |
| DL2 Name | dl2Name | no description | String | optional |
| DL2 File | dl2File | no description | File | optional |
| DL3 Type | dl3Type | no description | String | optional |
| DL3 Name | dl3Name | no description | String | optional |
| DL3 File | dl3File | no description | File | optional |