Template:Main page image/DYK: Difference between revisions

From Body Communication
en>Salvio giuliano
m (Protected "Template:Main page image/DYK": Highly visible template: used on main page ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 20:46, 8 August 2021

Caption goes here.
Caption goes here.
Template documentation[view] [edit] [history] [purge]

This template is used to automatically put DYK images into the correct format. Currently, it automatically determines the width of the image based on a ratio of the dimensions. 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, 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 that width should not be specified. It is automatically calculated.

{{Main page image/DYK
| 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) -->
| width         =  <!-- optional: overrides image width -->
}}