Template:Main page image/doc: Difference between revisions
Jump to navigation
Jump to search
HoodMoney54 (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template is used on the Main Page to show an image or media file with a caption underneath. ==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., <code>120x120</code>), but note that if you do so, there will be a g...") |
HoodMoney54 (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
==Usage== | ==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., <code>120x120</code>), 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. | 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., <code>120x120</code>), 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. | ||
< | <pre> | ||
{{Main page image | {{Main page image | ||
| image = <!-- name of the file, with or without the File: prefix --> | | image = <!-- name of the file, with or without the File: prefix --> | ||
Line 17: | Line 17: | ||
| thumbtime = <!-- optional: number of seconds into the video depicted in the thumbnail --> | | thumbtime = <!-- optional: number of seconds into the video depicted in the thumbnail --> | ||
}} | }} | ||
</ | </pre> | ||
== See also == | == See also == |
Latest revision as of 05:13, 19 March 2024
Template:Documentation subpage This template is used on the Main Page to show an image or media file with a caption underneath.
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.
{{Main page 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 --> | width = <!-- optional: width of image in pixels, with or without "px"; defaults to 120; can also use 120x120 syntax --> | 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) --> | thumbtime = <!-- optional: number of seconds into the video depicted in the thumbnail --> }}
See also
- {{Main page image/TFA}}
- {{Main page image/DYK}}
- {{Main page image/ITN}}
- {{Main page image/OTD}}