Jump to content

Template:MainPageProductCard: Difference between revisions

From SOJI ELECTRONICS
[checked revision][checked revision]
Update
Tag: Reverted
Update
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><div class="main-page-product-card">
<onlyinclude><div class="main-page-product-card">
<div class="main-page-product-icon">{{#ifexist:File:{{#replace:{{{1|{{PAGENAME}}}}}| |-}}-Product-overview.png
<div class="main-page-product-icon">{{#ifexist:File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.svg
|[[File:{{#replace:{{{1|{{PAGENAME}}}}}| |-}}-Product-overview.png|160px|link={{{1|{{PAGENAME}}}}}]]
|[[File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.svg|160px|link={{{name|{{PAGENAME}}}}}]]
|<div class="main-page-product-no-icon">📦<br>{{{1|{{PAGENAME}}}}}</div>
|{{#ifexist:File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.png
}}</div>
|[[File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.png|160px|link={{{name|{{PAGENAME}}}}}]]
<div class="main-page-product-title">[[{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]</div>
|{{#ifexist:File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.ico
<div class="main-page-product-desc">{{#switch:{{{1|{{PAGENAME}}}}}
|[[File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.ico|160px|link={{{name|{{PAGENAME}}}}}]]
|LIGO AIR=Wireless fuel level sensor with Bluetooth Low Energy 5.4. Standard, extended battery, and long-range variants for vehicle and industrial applications.
|{{#ifexist:File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.jpg
|LIGO PRO=Wired fuel level sensor for industrial and vehicle applications. High-precision capacitive measurement with maximum reliability.
|[[File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.jpg|160px|link={{{name|{{PAGENAME}}}}}]]
|LIGO PRO BLE=Wired fuel level sensor with built-in Bluetooth 5.2. Combines wired reliability with wireless configuration capability.
| <div class="main-page-product-no-icon">
|#default=
<span style="font-size:13px; white-space:nowrap;">No icon<br></span>
<span style="font-size:13px; white-space:nowrap;">Upload icon with name:<br></span>
<span style="font-size:13px; white-space:nowrap;">{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon</span>
<span style="font-size:13px; white-space:nowrap;">Type: svg/ico/png/jpg</span>
</div>
}}
}}
}}
}}</div>
}}</div>
<div class="main-page-product-title">[[{{{name|{{PAGENAME}}}}}|{{{name|{{PAGENAME}}}}}]]</div>
<div class="main-page-product-desc">
{{#ifexist:{{{name|{{PAGENAME}}}}}
| {{#lst:{{{name|{{PAGENAME}}}}}|product-desc}}
| {{{desc|}}}
}}
</div>
</div></onlyinclude>
</div></onlyinclude>
<noinclude>
<noinclude>
Centralized product descriptions via #switch.
Usage: <code><nowiki>{{MainPageProductCard|name=LIGO AIR}}</nowiki></code>
Add new product by editing this template and adding a new line.
Icon auto-detect priority: <code>.svg</code> → <code>.png</code> → <code>.ico</code> → <code>.jpg</code>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 08:51, 25 May 2026

No icon
Upload icon with name:
MainPageProductCard-Product-icon Type: svg/ico/png/jpg

Usage: {{MainPageProductCard|name=LIGO AIR}} Icon auto-detect priority: .svg.png.ico.jpg

SOJI Electronics