More languages
More actions
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | The image filename or URL, with extension (.jpg etc) | String | required |
category | category | The associated category name. | String | required |
name | name | The name of the author or topic. | String | required |
top | top | The offset from the top in pixels for the image. Can be negative. | String | optional |
left | left | The offset from the left in pixels for the image. Can be negative. | String | optional |