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
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!--  
<!--  
{{QuoteCard
{{Quotecard
| image =  
| image =  
| text =
| name =
| link =  
| link =  
| name =
| scale =
}}
}}
-->
-->
<div class="quote-card">
<div class="quote-card">
<h6 class="quote-card-TOC">{{{name|}}}</h6>
<h6 class="quote-card-TOC">{{{name}}}</h6>
<div class="quote-card-image">
<div class="quote-card-image"> [[File:{{{image|Placeholder-image.png}}}|link={{{link}}}|{{{desc|}}}]]</div>
<div style="transform:scale({{{scale|1}}})">
[[File:{{{image|Placeholder-image.png}}}|link={{{link|}}}|{{{desc|}}}]]
</div>
<div class="quote-card-text">{{{text}}}</div>
<div class="quote-card-text">{{{text}}}</div>
</div>
</div>
Line 19: Line 16:
-->
-->
<!--
<!--
     @param image    The image filename or URL.
     @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 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 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 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 28:
         "image": {
         "image": {
             "type": "string",
             "type": "string",
             "required": true,
             "required": false,
             "description": "The image filename or URL, with extension (.jpg etc)",
             "description": "The image filename or URL, with extension (.jpg etc)"
            "default": "Placeholder-image.png"
         },
         },
         "text": {
         "text": {
Line 41: Line 36:
             "description": "Any text you want to appear next to the image, takes wikilinks (within square brackets)."
             "description": "Any text you want to appear next to the image, takes wikilinks (within square brackets)."
         },
         },
         "link": {
         "name": {
             "type": "string",
             "type": "string",
             "required": true,
             "required": true,
             "description": "The link you want the image to redirect to (normally same as within the text)."
             "description": "The name you want to appear in the table of contents."
         },
         },
         "name": {
         "link": {
             "type": "string",
             "type": "string",
             "required": true,
             "required": true,
             "description": "The name of the author or topic."
             "description": "The link you want the image to redirect to (normally same as within the text)."
        },
        "scale": {
            "type": "string",
            "required": false,
            "description": "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"
         },
         },
         "desc": {
         "desc": {
             "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."
         }
         }
     }
     }

Revision as of 21:20, 7 October 2024

{{{name}}}
{{{text}}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
imageimage

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

Stringoptional
texttext

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

Stringrequired
namename

The name you want to appear in the table of contents.

Stringrequired
linklink

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

Stringrequired
descdesc

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

Stringoptional