Template:Caption

From LabRPS Documentation
Revision as of 19:40, 29 October 2024 by LabRPS (talk | contribs) (→‎Center aligned)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}


This template creates a caption underneath a left aligned image. It uses the text-align:left HTML property inside paragraph tags <p></p>. A carriage return is automatically added.

The advantage of not placing the caption within the image code is that the image can then be removed from translation by placing </translation><translation> tags around it. In the translation interface only the caption needs to be translated.

Left aligned

Example:

[[File:Labrps.svg]]
{{Caption|The image above shows the LabRPS logo. This is a very long caption that should wrap-around itself after a certain width, in order for it to be more readable. Images should be probably a maximum of 800 px wide.}}

This is a normal paragraph.

Result:

Labrps.svg

The image above shows the LabRPS logo. This is a very long caption that should wrap-around itself after a certain width, in order for it to be more readable. Images should be probably a maximum of 800 px wide.

This is a normal paragraph.

Center aligned

For center-aligned captions, use the align=center option.

Example:

[[File:Labrps.svg|center]]
{{Caption|align=center|The image above shows the LabRPS logo. This is a very long caption that should wrap-around itself after a certain width, in order for it to be more readable. Images should be probably a maximum of 800 px wide.}}

This is a normal paragraph.
Labrps.svg

The image above shows the LabRPS logo. This is a very long caption that should wrap-around itself after a certain width, in order for it to be more readable. Images should be probably a maximum of 800 px wide.

This is a normal paragraph.