Template:MainPageProductCard: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Update Tag: Manual revert |
Update message no icon |
||
| (5 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:{{{name|{{PAGENAME}}}}}| |-}}-Product- | <div class="main-page-product-icon">{{#ifexist:File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.svg | ||
|[[File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product- | |[[File:{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.svg|160px|link={{{name|{{PAGENAME}}}}}]] | ||
|<div class="main-page-product-no-icon"> | | <div class="main-page-product-no-icon"> | ||
No icon<br> | |||
Upload icon with name:<br> | |||
<span style="font-size:11px; white-space:nowrap;">{{#replace:{{{name|{{PAGENAME}}}}}| |-}}-Product-icon.svg</span> | |||
</div> | |||
}}</div> | }}</div> | ||
<div class="main-page-product-title">[[{{{name|{{PAGENAME}}}}}|{{{name|{{PAGENAME}}}}}]]</div> | <div class="main-page-product-title">[[{{{name|{{PAGENAME}}}}}|{{{name|{{PAGENAME}}}}}]]</div> | ||
<div class="main-page-product-desc">{{# | <div class="main-page-product-desc"> | ||
| | {{#ifexist:{{{name|{{PAGENAME}}}}} | ||
| | | {{#lst:{{{name|{{PAGENAME}}}}}|product-desc}} | ||
| | | {{{desc|}}} | ||
| | }} | ||
}}</div> | </div> | ||
</div></onlyinclude> | </div></onlyinclude> | ||
<noinclude> | <noinclude> | ||
Revision as of 05:03, 22 May 2026
Usage: {{MainPageProductCard|name=LIGO AIR}}
Add description per product via #switch above.