More languages
More actions
General-KJ (talk | contribs) mNo edit summary |
General-KJ (talk | contribs) mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
{{ | {{Quotecard | ||
| image = | | image = | ||
| text = | |||
| name = | |||
| link = | | link = | ||
| scale = | | scale = | ||
}} | }} | ||
--> | --> | ||
<div class="quote-card"> | <div class="quote-card"> | ||
<h6 class="quote-card-TOC">{{{name | <h6 class="quote-card-TOC">{{{name}}}</h6> | ||
<div class="quote-card-image"> | <div class="quote-card-image"> | ||
<div style="transform:scale({{{scale|1}}})"> | <div style="transform:scale({{{scale|1}}})"> | ||
[[File:{{{image|Placeholder-image.png}}}|link={{{link | [[File:{{{image|Placeholder-image.png}}}|link={{{link}}}|{{{desc|}}}]] | ||
</div> | </div> | ||
<div class="quote-card-text">{{{ | </div> | ||
<div class="quote-card-text">{{{name}}}</div> | |||
</div> | </div> | ||
<!-- | <!-- | ||
Line 19: | Line 21: | ||
--> | --> | ||
<!-- | <!-- | ||
@param image The image filename or URL. | @param image The image filename or URL, with extension (.jpg etc) | ||
@param | @param name The name you want to appear in the table of contents and next to the image. | ||
@param link The link you want the image to redirect to (normally same as within the text). | @param link The link you want the image to redirect to (normally same as within the text). | ||
@param scale Scaling-in value. | @param scale Scaling-in value. | ||
@param desc The description you want to display when the user hovers over the link long enough. | @param desc The description you want to display when the user hovers over the link long enough. | ||
Line 32: | Line 33: | ||
"image": { | "image": { | ||
"type": "string", | "type": "string", | ||
"required": | "required": false, | ||
"description": "The image filename or URL, with extension (.jpg etc) | "description": "The image filename or URL, with extension (.jpg etc)" | ||
}, | }, | ||
" | "name": { | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
"description": " | "description": "The name you want to appear in the table of contents." | ||
}, | }, | ||
"link": { | "link": { | ||
Line 45: | Line 45: | ||
"required": true, | "required": true, | ||
"description": "The link you want the image to redirect to (normally same as within the text)." | "description": "The link you want the image to redirect to (normally same as within the text)." | ||
}, | }, | ||
"scale": { | "scale": { | ||
Line 60: | Line 55: | ||
"type": "string", | "type": "string", | ||
"required": false, | "required": false, | ||
"description": "The description you want to display when the user hovers over the link long enough." | "description": "The description you want to display when the user hovers over the link long enough." | ||
} | } | ||
} | } |
Latest revision as of 22:04, 7 October 2024
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | The image filename or URL, with extension (.jpg etc) | String | optional |
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 |
scale | scale | Scale-in the image to make sure it fills the entire card. Can have decimals. Expressed as a factor. Image will always be centred. Default: 1
| String | optional |
desc | desc | The description you want to display when the user hovers over the link long enough. | String | optional |