Template:HomePage/Widgets: Difference between revisions
Appearance
Abhishek.it (talk | contribs) Created page with " <templatedata> { "params": { "Widget Title": {}, "Widget Content": {}, "Widget Name": {} }, "description": "This template is used on home page for setting the widgets.", "paramOrder": [ "Widget Name", "Widget Title", "Widget Content" ] } </templatedata> <div class="widget-box" data-widget-name="{{{Widget Name|}}}"> <div class="widget-header"> <h3>{{{Widget Title|Default Title}}}</h3> </div> <div class="widget-content"> {{{Widget Content|N..." |
Abhishek.it (talk | contribs) No edit summary |
||
| (29 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"Widget Title": {}, | "Widget Title": {}, | ||
"Widget Content": {}, | "Widget Content": { | ||
"Widget Name": {} | "type": "content" | ||
}, | |||
"Widget Name": {}, | |||
"Icon": { | |||
"type": "content" | |||
}, | |||
"Icon Link": { | |||
"type": "url" | |||
} | |||
}, | }, | ||
"description": "This template is used on home page for setting the widgets.", | "description": "This template is used on home page for setting the widgets.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"Icon", | |||
"Icon Link", | |||
"Widget Name", | "Widget Name", | ||
"Widget Title", | "Widget Title", | ||
| Line 15: | Line 25: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | |||
<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"> | ||
<h3>{{{Widget Title|Default Title}}}</h3> | <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 |