Scaled image settings macro

Introduction

The scaled-image-settings macro allows you to set common parameters for all scaled-image and scaled-album macros following it.

Note that you must close the macro directly after the opening it, this because of limitations of Radeox.

Examples

You can put common attributes into the image-container macro:

{scaled-image-settings:thumb=240|size=original} {scaled-image-settings} {image-container} {scaled-image:img=twister1.jpg} Twister {scaled-image} {scaled-image:img=pamir.jpg} Pamir {scaled-image} {scaled-album} {image-container}

These settings can be overridden by parameters of scaled-image:

{scaled-image-settings:thumb=180|size=original|snip=scaled-image-test|target=myalbum} {scaled-image-settings} {image-container} {scaled-image:img=twister1.jpg|thumb=400} Twister {scaled-image} {scaled-image:img=pamir.jpg} Pamir {scaled-image} {scaled-album:size=nolink} {image-container}

Attributes

  • thumb - integer as the maximum size of the thumbnail, the string "original" to indicate no scaling
  • size - integer as the maximum size of the thumbnail, the string "original" to indicate no scaling, the string "nolink" to indicate that no link to image should be created.
  • alt - alt text of the image
  • float - the side where to float the image: "right" or "left"
  • zip - filename of zip file attachment.
  • snip - name of snip that contains the attachment of the image file or zip file.
  • target - the name of the window target to be used in the link
These attributes will be applied to all the scaled-image macros used after the scaled-image-settings macro.