Template:Main page image/DYK/doc
< Template:Main page image | DYK
Jump to navigation
Jump to search
Revision as of 10:11, 20 July 2020 by test>ProcrastinatingReader (Create doc)
| 40px | This is a documentation subpage for Template:Main page image/DYK. It contains usage information, categories and other content that is not part of the original template page. |
This template is used to automatically put DYK images into the correct format. It is a wrapper around {{Main page image}}.
Usage
Note: Prefer images in landscape orientation. If you must use one in portrait orientation, avoid very skinny ones. If you must choose a skinny image, then please specify the height as well (e.g., 120x120), but note that if you do so, there will be a gap between left or right edge of the image (depending on the what side of the container the template appears) and the edge of the section.
{{DYK image
| image = <!-- name of the file, with or without the File: prefix -->
| link = <!-- optional: file to which you want the image to link, with or without the File: prefix -->
| border = <!-- optional: "yes" for a border; defaults to no border -->
| caption = <!-- optional: wiki text -->
| caption align = <!-- optional: left, right, or center; defaults to left -->
| title = <!-- optional: image title; if blank, will use the caption, alt text, non-default "link=" target, or nothing (in that order) -->
| alt = <!-- optional: image alt text; if blank, will use the caption, title, or image name (in that order) -->
}}