Loading

Back to Home

$addThumbnail

$addThumbnail adds a thumbnail image to a section. Thumbnails appear beside the section's text as an accessory.

Syntax

$addThumbnail[Image URL;Image description;Spoiler;Section ID]

What happens

  1. $addThumbnail adds an image to the specified section.
  2. The image appears beside the section's text.
  3. If spoiler is set, the image is hidden behind a spoiler overlay.

Example 1: Basic thumbnail

$addSection[info]
$addTextDisplay[Check out the image below;info]
$addThumbnail[https://example.com/image.png;Example image;;info]
Result: Basic thumbnail example

What happens:

  1. $addSection creates a section.
  2. $addTextDisplay adds text to the section.
  3. $addThumbnail adds an image to the section as its accessory.

The section shows the text with the image beside it.

Example 2: Spoiler thumbnail

$addSection[info]
$addTextDisplay[Spoiler image below;info]
$addThumbnail[https://example.com/spoiler.png;Hidden image;true;info]
Result: Spoiler thumbnail example

What happens:

  1. $addSection creates a section.
  2. $addTextDisplay adds text to the section.
  3. $addThumbnail adds a spoiler image to the section.

The image is hidden behind a spoiler overlay until the user clicks it.

Common uses

See also