Jump to content

Template:SoftwareCard: Difference between revisions

From SOJI ELECTRONICS
[checked revision][checked revision]
Update
Update
Tag: Manual revert
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Renders a single software product card.
Software card template. Auto-detects icon by filename convention.


Usage: <code><nowiki>{{SoftwareCard|page=PageName}}</nowiki></code>
Page name spaces are converted to hyphens when looking up the icon file.
Example: page "LIGO BLE CONFIGURATOR" → File:LIGO-BLE-CONFIGURATOR-Icon.png
 
<code><nowiki>{{SoftwareCard|page=%PAGE%|filename=%TITLE%}}</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">[[File:{{{filename|{{{page|{{PAGENAME}}}}}}}}-Icon.png|100px|center|link={{{page|{{PAGENAME}}}}}|alt={{{filename|{{{page|{{PAGENAME}}}}}}}}-Icon.png]]</div><div class="software-card-title">[[{{{page|{{PAGENAME}}}}}]]</div><div class="software-card-desc">Click for details</div></div></includeonly>

Latest revision as of 03:49, 12 June 2026

Software card template. Auto-detects icon by filename convention.

Page name spaces are converted to hyphens when looking up the icon file. Example: page "LIGO BLE CONFIGURATOR" → File:LIGO-BLE-CONFIGURATOR-Icon.png

{{SoftwareCard|page=%PAGE%|filename=%TITLE%}}

SOJI Electronics