Jump to content

Template:SoftwareCard: Difference between revisions

From SOJI ELECTRONICS
[checked revision][checked revision]
Update
Update
Line 1: Line 1:
<noinclude>
<noinclude>
Renders a single software product card.
Renders a single software product card with auto-detected icon.
 
'''Icon convention:''' upload icon as <code>PageName-Icon.png</code> (replace spaces with dashes).
 
Examples:
* Page "SOJI Configurator Tool" → upload <code>SOJI-Configurator-Tool-Icon.png</code>
* Page "LIGO BLE Configurator" → upload <code>LIGO-BLE-Configurator-Icon.png</code>
 
Falls back to default <code>Icon-software.svg</code> if specific icon not uploaded.


Usage: <code><nowiki>{{SoftwareCard|page=PageName}}</nowiki></code>
Usage: <code><nowiki>{{SoftwareCard|page=PageName}}</nowiki></code>


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><div class="software-card"><div class="software-card-image">[[File:Icon-software.svg|100px|center|link={{{page|{{PAGENAME}}}}}]]</div><div class="software-card-title">[[{{{page|{{PAGENAME}}}}}]]</div><div class="software-card-desc">Click for details</div></div></includeonly>
</noinclude><includeonly><div class="software-card"><div class="software-card-image">{{#ifexist:File:{{#replace:{{{page|{{PAGENAME}}}}}| |-}}-Icon.png|[[File:{{#replace:{{{page|{{PAGENAME}}}}}| |-}}-Icon.png|100px|center|link={{{page|{{PAGENAME}}}}}]]|[[File:Icon-software.svg|100px|center|link={{{page|{{PAGENAME}}}}}]]}}</div><div class="software-card-title">[[{{{page|{{PAGENAME}}}}}]]</div><div class="software-card-desc">Click for details</div></div></includeonly>

Revision as of 09:24, 19 May 2026

Renders a single software product card with auto-detected icon.

Icon convention: upload icon as PageName-Icon.png (replace spaces with dashes).

Examples:

  • Page "SOJI Configurator Tool" → upload SOJI-Configurator-Tool-Icon.png
  • Page "LIGO BLE Configurator" → upload LIGO-BLE-Configurator-Icon.png

Falls back to default Icon-software.svg if specific icon not uploaded.

Usage: {{SoftwareCard|page=PageName}}

SOJI Electronics