Template:HomePage/Widgets: Difference between revisions
Appearance
Abhishek.it (talk | contribs) No edit summary |
Abhishek.it (talk | contribs) No edit summary |
||
| (18 intermediate revisions by 2 users not shown) | |||
| Line 10: | Line 10: | ||
"Icon": { | "Icon": { | ||
"type": "content" | "type": "content" | ||
}, | |||
"Icon Link": { | |||
"type": "url" | |||
} | } | ||
}, | }, | ||
| Line 15: | Line 18: | ||
"paramOrder": [ | "paramOrder": [ | ||
"Icon", | "Icon", | ||
"Icon Link", | |||
"Widget Name", | "Widget Name", | ||
"Widget Title", | "Widget Title", | ||
| Line 24: | Line 28: | ||
<div class="widget-box" data-widget-name="{{{Widget Name|}}}"> | <div class="widget-box" data-widget-name="{{{Widget Name|}}}"> | ||
<div class="widget-header"> | <div class="widget-header"> | ||
<div style="display:flex;justify-content:space-between;"><div><h3>{{{Widget Title|Default Title}}}</h3></div> <div>[[File:{{{Icon}}} | <div style="display:flex;justify-content:space-between;align-items:center;"> | ||
<div class="ab-w-100"> | |||
<h3 class="ab-w-100">{{{Widget Title|Default Title}}}</h3> | |||
</div> | |||
{{#if:{{{Icon|}}} | |||
|<div>[[File:{{{Icon}}}|30px|Picture of the Day|link={{{Icon Link|}}}]]</div> | |||
}} | |||
</div> | |||
</div> | </div> | ||
{{#if:{{{Widget Content|}}} | |||
|<div class="widget-content"><div>{{{Widget Content}}}</div></div> | |||
}} | |||
</div> | </div> | ||
Latest revision as of 22:36, 7 June 2025
This template is used on home page for setting the widgets.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon | Icon | no description | Content | optional |
| Icon Link | Icon Link | no description | URL | optional |
| Widget Name | Widget Name | no description | Unknown | optional |
| Widget Title | Widget Title | no description | Unknown | optional |
| Widget Content | Widget Content | no description | Content | optional |