Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Quote card: Difference between revisions

Template page
(experimenting)
 
mNo edit summary
Line 8: Line 8:
-->
-->
<div class="quote-card">
<div class="quote-card">
<h6 class="library-card-TOC">{{{name|}}}</h6>
<h6 class="quote-card-TOC">{{{name|}}}</h6>
<div class="library-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|}}}|{{{desc|}}}]]
[[File:{{{image|Placeholder-image.png}}}|link={{{link|}}}|{{{desc|}}}]]
</div>
</div>
<div class="quote-card-text">{{{text}}}</div>
</div>
</div>
<!--
<!--
Line 19: Line 20:
<!--
<!--
     @param image    The image filename or URL.
     @param image    The image filename or URL.
    @param text    Any text you want to appear next to the image, takes wikilinks (within square brackets).
     @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 name    The name of the author or topic.
     @param name    The name of the author or topic.
Line 33: Line 35:
             "description": "The image filename or URL, with extension (.jpg etc)",
             "description": "The image filename or URL, with extension (.jpg etc)",
             "default": "Placeholder-image.png"
             "default": "Placeholder-image.png"
        },
        "text": {
            "type": "string",
            "required": true,
            "description": "Any text you want to appear next to the image, takes wikilinks (within square brackets)."
         },
         },
         "link": {
         "link": {

Revision as of 21:10, 7 October 2024

{{{text}}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
imageimage

The image filename or URL, with extension (.jpg etc)

Default
Placeholder-image.png
Stringrequired
texttext

Any text you want to appear next to the image, takes wikilinks (within square brackets).

Stringrequired
linklink

The link you want the image to redirect to (normally same as within the text).

Stringrequired
namename

The name of the author or topic.

Stringrequired
scalescale

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

Default
1
Stringoptional
descdesc

The description you want to display when the user hovers over the link long enough.

Stringoptional
Contents