Images and files
Embedding images
To add image to a page, use markup:
![<alternative_text>](<image_address>)
Note
If you paste an image link with no markup, the image will be added to the page without alternative text.
Markup | Result |
---|---|
![Logo](http://img.yandex.net/i/logo95x37x8.png) |
Note
In the new editor in markup mode, you can paste images from the clipboard.
Setting image size
Set the size of the image on the page in pixels:
<width>x<height>:<link_to_image>
Note
The image is scaled proportionally, so the height value can be set approximately. For example, a drawing with this markup will be displayed correctly: 300x0:<link_to_image>
.
Setting image size
Alert
The new editor uses Yandex Flavored Markdown
Set the size of the image on the page in pixels in the link after the =
sign:
Markup | Result |
---|---|
![ya-logo](http://img.yandex.net/i/logo95x37x8.png "Yandex logo" =60x20) |
Set the size of the image on the page in pixels:
<width>x<height>:<link to image>
Note
The image is scaled proportionally, so the height value can be set approximately. For example, a drawing with this markup will be displayed correctly: 300x0:<link to image>
.
Markup | Result |
---|---|
60x20:http://img.yandex.net/i/logo95x37x8.png |
Adding download links for images
Use the link markup:
[link text](image URL)
Markup | Result |
---|---|
[Yandex logo](http://img.yandex.net/i/logo95x37x8.png) |
Yandex logo |
Turning an image into a link
You can turn an image into a link for it to open a page or file when clicked. To do this, insert an image in the link markup element instead of text:
[![<alternative_text>](<image_address>)](<link_address>)
Markup | Result |
---|---|
[![Logo](http://img.yandex.net/i/logo95x37x8.png)](https://yandex.com) |
Inserting a video
To add a video to a page, use the dynamic block {{iframe}}
. It enables you to insert videos from external sources, such as Vimeo or YouTube.
Adding links to files
Place a file link in the text of a page using one of the following methods:
Markup | Result |
---|---|
http://file-address |
http://file-address |
[link text](http://file-address) |
link text |