This site is supported by donations to The OEIS Foundation.

# Template:Figure

(Redirected from Template:Caption)

This is a template for captioning diagrams, images and other things.

This shows the runtime of Euclid's algorithm for gcd(m,n) with m, n ≤ 361.

Usage:

{{caption|diagram, image, ...|caption text|left, center or right}}

or

{{caption|image = diagram, image, ...|caption = caption text|float = left, center or right}}

where

• image (first argument): is the diagram, image, or other thing to be captioned;
• caption (second argument): is the text caption (appears below);
• float (third argument): is either left, center or right (default).

Note: if the caption includes an equal sign you must use the {{=}} template to 'hide' the `=` from the template parser. Similarly, if you want to include a pipe character `|`, you must use either the {{pipe}} or {{!}} templates.

Example 1: (calling the template before "Usage:" so that the text flows to the left)

{{caption|[[File:Euclidean algorithm running time X Y 361×361.png]]|This shows the runtime of Eudlid's algorithm for gcd(m,n) with m, n ≤ 361.}}

yields the captioned figure on the right.

Example 2:

This shows the runtime of Eudlid's algorithm for gcd(m,n) with m, n ≤ 361.
{{caption|[[File:Euclidean algorithm running time X Y 361×361.png]]|This shows the runtime of Eudlid's algorithm for gcd(m,n) with m, n ≤ 361.|left}}

yields the captioned figure on the left.

Example 3:

This shows the runtime of Eudlid's algorithm for gcd(m,n) with m, n ≤ 361.

{{caption|[[File:Euclidean algorithm running time X Y 361×361.png]]|This shows the runtime of Eudlid's algorithm for gcd(m,n) with m, n ≤ 361.|center}}

yields the captioned figure centered.