> For the complete documentation index, see [llms.txt](https://greene-lab.gitbook.io/lab-website-template-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://greene-lab.gitbook.io/lab-website-template-docs/basics/components/figure.md).

# Figure

:eye: [PREVIEW](https://greenelab.github.io/lab-website-template/testbed#figure)

```liquid
{%
  include figure.html
  image="images/group-photo.jpg"
  caption="The team at our annual Christmas party, 2025"
  link="team"
  width="400px"
%}
```

<table><thead><tr><th width="189">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>image</code></td><td>URL to image for the figure.</td></tr><tr><td><code>caption</code></td><td>Caption content. Can contain Markdown.</td></tr><tr><td><code>link</code></td><td>URL to navigate to when clicking on the image.</td></tr><tr><td><code>width</code> / <code>height</code></td><td>Dimensions of the image in <code>px</code> or <code>%</code>. You should only specify either width OR height, to maintain the original aspect ratio of the image. Image will shrink to fit smaller screen sizes.</td></tr></tbody></table>

{% hint style="info" %}
`images/fallback.svg` is an image that will be shown in place of images (in any component) that fail to load. This is useful because you may often be linking to external image URLs that can become broken without notice.
{% endhint %}

Example of using with the [section](/lab-website-template-docs/basics/components/section.md) component to make a full width banner:

```liquid
{% include section.html size="full" %}

{% include figure.html image="images/banner.jpg" width="100%" %}

{% include section.html %}

Continued content
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://greene-lab.gitbook.io/lab-website-template-docs/basics/components/figure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
