Template:Caption/Doc

Revision as of 16:01, 11 June 2025 by DoggoBit (talk | contribs) (Created page with "Use this template to show a figure with a corresponding caption. {{caption|100px|The MediaWiki logo}} === Usage === Simply include the figure content as the first argument to the template, and the caption as the second: {{code|lang=mediawiki|line=no|<nowiki>{{caption|100px|The MediaWiki logo}}</nowiki>}} You can also optionally set an alignment. By default, it will "break" the text before and after it...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use this template to show a figure with a corresponding caption.

The MediaWiki logo

Usage

Simply include the figure content as the first argument to the template, and the caption as the second:

{{caption|[[File:MediaWiki-2020-logo.svg|100px]]|The MediaWiki logo}}

You can also optionally set an alignment. By default, it will "break" the text before and after it. If setting the alignment to "right" or "left", the text will flow besides the figure. If setting it to "center", the figure will be positioned in the middle, but it will still break the text flow.

{{caption|align=left|[[File:MediaWiki-2020-logo.svg|100px]]|The MediaWiki logo}}
The MediaWiki logo

This text flows alongside the figure.

{{caption|align=right|[[File:MediaWiki-2020-logo.svg|100px]]|The MediaWiki logo}}
The MediaWiki logo

This text flows alongside the figure.

{{caption|align=center|[[File:MediaWiki-2020-logo.svg|100px]]|The MediaWiki logo}}
The MediaWiki logo

This text shows up below the figure.