Template:Library card: Difference between revisions

Template page
No edit summary
No edit summary
Line 4: Line 4:
| category =  
| category =  
| name =  
| name =  
| top =
| left =
}}
}}
-->
-->


<div class="library-card">
<div class="library-card" style="position: relative; top: {{{top|0}}}; left: {{{left|0}}};">
[[File:{{{image|}}}|class=library-card-image|link=Category:{{{category|}}}|200px]]
[[File:{{{image|}}}|class=library-card-image|link=Category:{{{category|}}}|200px]]
<div class="library-card-content">
<div class="library-card-content">
Line 22: Line 24:
     @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 in pixels (optional).
    @param left    The offset for the image from the left in pixels (optional).
-->
-->
<noinclude>
<noinclude>
Line 30: Line 34:
             "type": "string",
             "type": "string",
             "required": true,
             "required": true,
             "description": "The image filename or URL."
             "description": "The image filename or URL, with extension (.jpg etc)"
         },
         },
         "category": {
         "category": {
Line 41: Line 45:
             "required": true,
             "required": true,
             "description": "The name of the author or topic."
             "description": "The name of the author or topic."
        },
                "top": {
            "type": "string",
            "required": false,
            "description": "The offset from the top in pixels for the image. Can be negative."
        },
        "left": {
            "type": "string",
            "required": false,
            "description": "The offset from the left in pixels for the image. Can be negative."
         }
         }
     }
     }

Revision as of 11:57, 5 July 2023


[[File:|class=library-card-image|link=Category:|200px]]

 (0 works works)


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
imageimage

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

Stringrequired
categorycategory

The associated category name.

Stringrequired
namename

The name of the author or topic.

Stringrequired
toptop

The offset from the top in pixels for the image. Can be negative.

Stringoptional
leftleft

The offset from the left in pixels for the image. Can be negative.

Stringoptional