Jump to content

Template:CategoryBlock: Difference between revisions

From SOJI ELECTRONICS
[unchecked revision][unchecked revision]
No edit summary
No edit summary
Line 1: Line 1:
<div class="category-block">
<div class="category-block">
<div class="category-block-header">
<div class="category-block-header">
<span class="category-block-icon">[[File:{{{icon|Icon-default.svg}}}|56px]]</span>
<span class="category-block-icon">[[File:{{{icon|Icon-default.svg}}}|56px|link={{{link|{{{title}}}}}}]]</span>
<span class="category-block-title">'''{{{title}}}'''</span>
<span class="category-block-title">'''[[{{{link|{{{title}}}}}}|{{{title}}}]]'''</span>
</div>
</div>
<div class="category-block-desc">{{{desc}}}</div>
<div class="category-block-desc">{{{desc}}}</div>
Line 12: Line 12:
{{Documentation
{{Documentation
| usage = Block hiển thị 1 category. Params:
| usage = Block hiển thị 1 category. Params:
* id, icon, title, desc, products
* '''id''' — slug (vd: ligo-air, accessories)
* toggle_label (optional, default "Product list") — vd: "Resources", "Topics", "Tools"
* '''link''' — tên page đích khi click title/icon
* '''icon''' — tên file icon
* '''title''' — text hiển thị
* '''desc''' — mô tả
* '''toggle_label''' — text nút expand (default "Product list")
* '''products''' list sản phẩm
}}
}}
</noinclude>
</noinclude>

Revision as of 06:43, 13 May 2026

link={{{title}}} [[{{{title}}}|{{{title}}}]]

{{{desc}}}
Product list [+/-]

{{{products}}}

Template:Documentation

SOJI Electronics