Template:Library card mini: Difference between revisions

Template page
No edit summary
No edit summary
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">
<span class="library-card-mini-content">
[[File:{{{image|}}}|link={{{link}}}]]
[[File:{{{image|Placeholder-image.png}}}|link={{{link}}}]]
<span class="library-card-mini-text">{{{text|}}}</span>
<span class="library-card-mini-text">{{{text}}}</span>
</span>
</span>
</div>
</div>
Line 39: Line 39:
         "name": {
         "name": {
             "type": "string",
             "type": "string",
             "required": false,
             "required": true,
             "description": "The name you want to appear in the table of contents."
             "description": "The name you want to appear in the table of contents."
         },
         },
         "link": {
         "link": {
             "type": "string",
             "type": "string",
             "required": false,
             "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)."
         }
         }

Revision as of 15:18, 25 September 2023

{{{name}}}

link={{{link}}} {{{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