Template:Infobox file display/doc

From The Global Wiki
< Template:Infobox file display
Revision as of 07:00, 11 November 2022 by en>Aidan9382 (ok)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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