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

Template:Library card mini: Difference between revisions

Template page
No edit summary
Tag: Manual revert
(added 'desc' param so that a description of the author/topic can be written and displayed on hover over the link)
 
(5 intermediate revisions by the same user not shown)
Line 8: Line 8:
-->
-->
<div class="library-card-mini">
<div class="library-card-mini">
<h6 class="library-card-mini-TOC">{{{name|}}}</h6>
<h6 class="library-card-mini-TOC">{{{name}}}</h6>
<span class="library-card-mini-content">
<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>
<span class="library-card-mini-text">{{{text|}}}</span>
</span>
</div>
</div>
<!--
<!--
     TemplateData
     TemplateData
-->
-->
<templatestyles src="Library_card_mini/style.css" />
<!--
<!--
     @param image    The image filename or URL, with extension (.jpg etc)
     @param image    The image filename or URL, with extension (.jpg etc)
Line 24: Line 20:
     @param name    The name you want to appear in the table of contents.
     @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 desc    The description you want to display when the user hovers over the link long enough.
-->
-->
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 33: 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)"
         },
         },
Line 50: 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)."
        },
        "desc": {
            "type": "string",
            "required": false,
            "description": "The description you want to display when the user hovers over the link long enough."
         }
         }
     }
     }

Latest revision as of 20:09, 25 February 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