Template:Library card mid: Difference between revisions

Template page
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
</div>
</div>
[[:Category:{{{category|}}}|<div class="library-card-content">
[[:Category:{{{category|}}}|<div class="library-card-content">
<p class="library-card-title">{{{name|}}}</p><p class="library-card-works"><br><small>({{#invoke:Number of works|getWorkCount|category={{{category}}}}})</small></p>|{{{desc|}}}]]
<p class="library-card-title">{{{name|}}}</p><p class="library-card-works"><br><small>({{#invoke:Number of works|getWorkCount|category={{{category}}}}})</small></p>]]
</div>
</div>
</div>
</div>
Line 26: Line 26:
     @param name    The name of the author or topic.
     @param name    The name of the author or topic.
     @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.
-->
-->
<noinclude>
<noinclude>
Line 52: Line 53:
             "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",
             "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"
             "default": "1"
        },
        "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:21, 25 February 2024

[[:Category:|


(0 works)

]]

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
imageimage

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

Default
Placeholder-image.png
Stringrequired
categorycategory

The associated category name.

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