Template:Infobox file display/doc: Difference between revisions

From The Global Wiki
Jump to navigation Jump to search
en>Aidan9382
(ok)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 01:26, 18 January 2023

Description

This template is used to display files in the same way {{Infobox}} does for modules like Module:Excerpt/portals.

If no caption is provided, it'll just prompt the regular file displaying format on |thumb mode. Otherwise, It'll try to recreate the formatting of infobox images, to allow for more fancy wikitext like bullet lists to display in the caption.

You can use |force=y to force the image to display in the infobox format even if it doesn't have a caption.

You can use |left=y to move the infobox onto the left side of the page instead.

Examples

{{Infobox file display|Example.jpg}}

{{Infobox file display|Example.jpg|Example caption}}

File:Example.jpg
Example caption

{{Infobox file display|Example.jpg{{!}}150px|force=y}}

File:Example.jpg

{{Infobox file display|Example.jpg|Example caption|left=y}}

File:Example.jpg
Example caption