More languages
More actions
No edit summary |
(added 'desc' param so that a description of the author/topic can be written and displayed on hover over the link) |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | |||
{{LibraryCardMini | |||
| image = | |||
| text = | |||
| name = | |||
| link = | |||
}} | |||
--> | |||
<div class="library-card-mini"> | <div class="library-card-mini"> | ||
<h6 class="library-card-mini- | <h6 class="library-card-mini-TOC">{{{name}}}</h6> | ||
< | <div class="library-card-mini-image"> [[File:{{{image|Placeholder-image.png}}}|link={{{link}}}|{{{desc|}}}]]</div> | ||
[[File:{{{image|}}}|link={{{link}}}]] | <div class="library-card-mini-text">{{{text}}}</div> | ||
{{{text | |||
</ | |||
</div> | </div> | ||
< | <!-- | ||
TemplateData | |||
--> | |||
<!-- | |||
@param image The image filename or URL, with extension (.jpg etc) | |||
@param text Any text you want to appear next to the image, takes wikilinks (within square brackets). | |||
@param name The name you want to appear in the table of contents. | |||
@param link The link you want the image to redirect to (normally same as within the text). | |||
@param desc The description you want to display when the user hovers over the link long enough. | |||
--> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"image": { | |||
"type": "string", | |||
"required": false, | |||
"description": "The image filename or URL, with extension (.jpg etc)" | |||
}, | |||
"text": { | |||
"type": "string", | |||
"required": true, | |||
"description": "Any text you want to appear next to the image, takes wikilinks (within square brackets)." | |||
}, | |||
"name": { | |||
"type": "string", | |||
"required": true, | |||
"description": "The name you want to appear in the table of contents." | |||
}, | |||
"link": { | |||
"type": "string", | |||
"required": true, | |||
"description": "The link you want the image to redirect to (normally same as within the text)." | |||
}, | |||
"desc": { | |||
"type": "string", | |||
"required": false, | |||
"description": "The description you want to display when the user hovers over the link long enough." | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 20:09, 25 February 2024
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | The image filename or URL, with extension (.jpg etc) | String | optional |
text | text | Any text you want to appear next to the image, takes wikilinks (within square brackets). | String | required |
name | name | The name you want to appear in the table of contents. | String | required |
link | link | The link you want the image to redirect to (normally same as within the text). | String | required |
desc | desc | The description you want to display when the user hovers over the link long enough. | String | optional |