<< Go Commands << Go Home

Command @image

Description:

Inserts an image in page.
 
Warning: command only works inside a .tg9 file.

Syntax:

@image
@@src
@@alt
@@width
@@height
@end_image

Parameters:

Param @@src
description: path to image file
options:
default:
optional: no
 
Param @@alt
description: alternative text for image
options:
default: "Image"
optional: yes
Param @@width
description: image width
options: px, %, auto
default: auto
optional: yes
Param @@height
description: image height
options: px, %, auto
default: auto
optional: yes
Obs: parameters can be put in any line order
Obs: if width or height is just a number px is added automaticly

Example:

1 @image
2 @@src demo.jpg
3 @@alt demo image
4 @@width 300px
5 @@height 300
6 @end_image

Output:

demo image