Template:Boilerplate-ProductPage: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
| Line 37: | Line 37: | ||
* [[{{PAGENAME}} Video|Video]] | * [[{{PAGENAME}} Video|Video]] | ||
<div style="flex: 0 0 320px;"> | <div style="flex: 0 0 320px;"> | ||
[[File: | {{#ifexist:File:{{#replace:{{PAGENAME}}| |-}}-product-overview.png | ||
<div style="text-align: center; font-size: 0.9em; color: #54595d; margin-top: 4px;"> | | [[File:{{#replace:{{PAGENAME}}| |-}}-product-overview.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:{{#replace:{{PAGENAME}}| |-}}-product-overview.png | |||
| | |||
| {{Placeholder|Upload product image as "{{#replace:{{PAGENAME}}| |-}}-product-overview.png" via [[Special:Upload]] to replace the default icon.}} | |||
}} | |||
</div> | </div> | ||
[[Category:Main Page]] | [[Category:Main Page]] | ||
</includeonly> | </includeonly> | ||
Revision as of 09:34, 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.