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

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

The question should be specific, self-contained, and written in natural language.
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.
