Template:Boilerplate-ProductPage: Difference between revisions
Appearance
| [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 | |||
{{ProductPage}} | |||
| | 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;"> | ||
{{ | {{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).}} | ||
* [[{{ | * [[{{PAGENAME}} Datasheet|Datasheet]] | ||
* [[{{ | * [[{{PAGENAME}} User Guide|User Guide]] | ||
* [[{{ | * [[{{PAGENAME}} Certification & Approvals|Certifications & Approvals]] | ||
* [[{{ | * [[{{PAGENAME}} Product Change Notifications|Product Change Notifications]] | ||
* [[{{ | * [[{{PAGENAME}} Firmware Changelog|Firmware Changelog]] | ||
* [[{{ | * [[{{PAGENAME}} Promotional Material|Promotional Material]] | ||
* [[{{ | * [[{{PAGENAME}} Video|Video]] | ||
</div> | </div> | ||
<div style="flex: 0 0 320px;"> | <div style="flex: 0 0 320px;"> | ||
[[File:{{{ | {{#ifexist:File:{{PAGENAME}}-product.png | ||
<div style="text-align: center; font-size: 0.9em; color: #54595d; margin-top: 4px;">{{ | | [[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"):
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.