Template:Portal image banner
![]() | This template uses TemplateStyles: |
![]() | This template is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
![]() | Editing of this template by new or unregistered users is currently disabled. See the protection policy and protection log for more details. If you cannot edit this template and you wish to make a change, you can submit an edit request, discuss changes on the talk page, request unprotection, log in, or create an account. |
![]() | This template contains coding that is not compatible with mobile versions of Wikipedia, causing display and accessibility problems. Read the documentation for an explanation. |
![]() | This template uses Lua: |
As many images and captions as desired may be specified, with an option to set a slideshow mode to cycle through all images, in the following format:
{{Portal image banner
| first image | first caption
| second image | second caption
| third image | third caption
}}
Full set of parameters:
{{Portal image banner
| first image | first caption
| second image | second caption
| third image | third caption
| max-height=
| overflow=
| link=
| mode=
}}
Parameters
[edit]|1=
,|3=
,|5=
, ... (or equivalent positional parameters)- File name. The "File:" prefix is optional.
|2=
,|4=
,|6=
, ... (or equivalent positional parameters)- Caption for the file.
|maxheight=
- Specifies the maximum height for the container of the image, using pixels (e.g. 300px). It is recommend that the overflow parameter be defined when this parameter is used.
|overflow=
- Only needed when maximum height is declared. The parameter defines the behavior of the image when it becomes bigger than max-height. This parameter corresponds to the css overflow property. The following options are available :
- scroll - The rest of the image becomes visible when the picture is scrolled downwards
- Hidden - Hides the rest of the image
- auto - Displays it anyway.
- inherit - The overflow property acquires the value of its parent container.
|link=
- specifies the |link= parameter for the files.
|croptop=
- Allows you to crop the image from the top. It should only be a numerical value which represents the percentage of the image to be cropped.
|mode=
- When set to slideshow, creates a user selectable slideshow to cycle through all available panorama images.
- Note : This feature is still in alpha.
Demonstration
[edit]Taj Mahal, Agra, India