Jump to content

Template:Boilerplate-ProductPage: Difference between revisions

From SOJI ELECTRONICS
[checked revision][checked revision]
No edit summary
Tag: Manual revert
No edit summary
Line 2: Line 2:
== Product Page Template ==
== Product Page Template ==


Usage:
Usage on a product page (e.g., page named "LIGO PRO"):
{{ProductPage
 
| name       = LIGO PRO
{{ProductPage}}
| description = Wired fuel level sensor...
 
| image      = LIGO-PRO-product.png
The template auto-uses the current page name for:
* All sub-page links (Datasheet, User Guide, etc.)
* Image filename convention: '''{{PAGENAME}}-product.png'''
 
To set product image: upload your image via [[Special:Upload]] with filename matching
this pattern (e.g., for page "LIGO PRO", upload as "LIGO PRO-product.png").
The template will automatically display it. If not uploaded, a default icon shows
with a hint to upload.
 
To set description: after placing {{ProductPage}} on the page, the yellow placeholder
hint will show. Replace it by editing the page and adding your description text
'''above''' the {{ProductPage}} template call.
 
{{TemplateData
|description=Product hub page template. No parameters — auto-uses current page name.
}}
}}


Line 13: Line 27:
<div style="flex: 1;">
<div style="flex: 1;">


{{{description|Product description}}}
{{Placeholder|e.g., Brief description of {{PAGENAME}}: what it is, primary function, key features, target use case. Edit this page to replace this hint with your actual product description (1–2 paragraphs).}}


* [[{{{name}}} Datasheet|Datasheet]]
* [[{{PAGENAME}} Datasheet|Datasheet]]
* [[{{{name}}} User Guide|User Guide]]
* [[{{PAGENAME}} User Guide|User Guide]]
* [[{{{name}}} Certification & Approvals|Certifications & Approvals]]
* [[{{PAGENAME}} Certification & Approvals|Certifications & Approvals]]
* [[{{{name}}} Product Change Notifications|Product Change Notifications]]
* [[{{PAGENAME}} Product Change Notifications|Product Change Notifications]]
* [[{{{name}}} Firmware Changelog|Firmware Changelog]]
* [[{{PAGENAME}} Firmware Changelog|Firmware Changelog]]
* [[{{{name}}} Promotional Material|Promotional Material]]
* [[{{PAGENAME}} Promotional Material|Promotional Material]]
* [[{{{name}}} Video|Video]]
* [[{{PAGENAME}} Video|Video]]


</div>
</div>
<div style="flex: 0 0 320px;">
<div style="flex: 0 0 320px;">
[[File:{{{image|Icon-default.svg}}}|320px|center|{{{name}}}]]
{{#ifexist:File:{{PAGENAME}}-product.png
<div style="text-align: center; font-size: 0.9em; color: #54595d; margin-top: 4px;">{{{name}}}</div>
| [[File:{{PAGENAME}}-product.png|320px|center|{{PAGENAME}}]]
| [[File:Icon-default.svg|320px|center|{{PAGENAME}}]]
}}
<div style="text-align: center; font-size: 0.9em; color: #54595d; margin-top: 4px;">{{PAGENAME}}</div>
{{#ifexist:File:{{PAGENAME}}-product.png
|
| {{Placeholder|Upload product image as "{{PAGENAME}}-product.png" via [[Special:Upload]] to replace the default icon.}}
}}
</div>
</div>
</div>
</div>


[[Category:Main Page]]
[[Category:Main Page]]
</includeonly>
</includeonly>

Revision as of 09:25, 15 May 2026

Product Page Template

Usage on a product page (e.g., page named "LIGO PRO"):

Template:ProductPage

The template auto-uses the current page name for:

  • All sub-page links (Datasheet, User Guide, etc.)
  • Image filename convention: Boilerplate-ProductPage-product.png

To set product image: upload your image via Special:Upload with filename matching this pattern (e.g., for page "LIGO PRO", upload as "LIGO PRO-product.png"). The template will automatically display it. If not uploaded, a default icon shows with a hint to upload.

To set description: after placing Template:ProductPage on the page, the yellow placeholder hint will show. Replace it by editing the page and adding your description text above the Template:ProductPage template call.

Template:TemplateData

SOJI Electronics