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

Template:Library card mid: Difference between revisions

Template page
No edit summary
No edit summary
Line 4: Line 4:
| category =  
| category =  
| name =  
| name =  
| top =
| scale =
| left =  
}}
}}
-->
-->
<div class="library-card-mid">
<div class="library-card-mid">
<h6 class="library-card-TOC">{{{name|}}}</h6>
<h6 class="library-card-TOC">{{{name|}}}</h6>
<div class="library-card-image" style="transform:scale({{{scale|1.1}}})">
<div class="library-card-image" style="transform:scale({{{scale|1}}})">
[[File:{{{image|Placeholder-image.png}}}|link=Category:{{{category|}}}]]
[[File:{{{image|Placeholder-image.png}}}|link=Category:{{{category|}}}]]
</div>
</div>
Line 24: Line 23:
     @param category The associated category name.
     @param category The associated category name.
     @param name    The name of the author or topic.
     @param name    The name of the author or topic.
     @param top      The offset for the image from the top (optional).
     @param scale    Scaling-in value.
    @param left    The offset for the image from the left (optional).
-->
-->
<noinclude>
<noinclude>
Line 47: Line 45:
             "description": "The name of the author or topic."
             "description": "The name of the author or topic."
         },
         },
                "top": {
        "scale": {
             "type": "string",
             "type": "string",
             "required": false,
             "required": false,
             "description": "The offset from the top in pixels for the image. Can be negative."
             "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"
        "left": {
            "type": "string",
            "required": false,
             "description": "The offset from the left in pixels for the image. Can be negative."
         }
         }
     }
     }

Revision as of 15:25, 30 September 2023

link=Category:

[[: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
Contents