Template:Caption: Difference between revisions

From BathAfrica Documentation
Jump to navigation Jump to search
BathAfrica compatibility adaptation; original revisions retained; source https://wiki.sybma.com
Replace inherited branding with BathAfrica; preserve original history and attribution
 
(4 intermediate revisions by the same user not shown)
Line 14: Line 14:


  <nowiki>
  <nowiki>
[[File:Labrps.svg]]
'''BathAfrica'''
{{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.}}
{{Caption|The image above shows the BathAfrica 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.</nowiki>
This is a normal paragraph.</nowiki>
Line 21: Line 21:
Result:
Result:


[[File:Labrps.svg]]
'''BathAfrica'''
{{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.}}
{{Caption|The image above shows the BathAfrica 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.
This is a normal paragraph.
Line 32: Line 32:


  <nowiki>
  <nowiki>
[[File:Labrps.svg|center]]
'''BathAfrica'''
{{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.}}
{{Caption|align=center|The image above shows the BathAfrica 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.</nowiki>
This is a normal paragraph.</nowiki>


[[File:Labrps.svg|center]]
'''BathAfrica'''
{{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.}}
{{Caption|align=center|The image above shows the BathAfrica 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.
This is a normal paragraph.
Line 48: Line 48:
Migrated from [https://wiki.sybma.com/index.php?title=Template:Caption SiteMasterDoc]. Original revision history and imported contributor names are retained. See [[BathAfrica:Template migration]] for compatibility changes and unresolved image dependencies. Legacy examples do not establish current BathAfrica product capabilities.
Migrated from [https://wiki.sybma.com/index.php?title=Template:Caption SiteMasterDoc]. Original revision history and imported contributor names are retained. See [[BathAfrica:Template migration]] for compatibility changes and unresolved image dependencies. Legacy examples do not establish current BathAfrica product capabilities.
</noinclude>
</noinclude>

Latest revision as of 12:02, 29 October 2026

{{{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:

'''BathAfrica'''
{{Caption|The image above shows the BathAfrica 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:

BathAfrica

The image above shows the BathAfrica 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:

'''BathAfrica'''
{{Caption|align=center|The image above shows the BathAfrica 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.

BathAfrica

The image above shows the BathAfrica 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.



Migrated from SiteMasterDoc. Original revision history and imported contributor names are retained. See BathAfrica:Template migration for compatibility changes and unresolved image dependencies. Legacy examples do not establish current BathAfrica product capabilities.