Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| doc:inserting_images [2026/04/05 18:39] – [Inserting images with the toolbar] Simon Grant | doc:inserting_images [2026/04/05 19:38] (current) – [Image alignment] Simon Grant | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| The most basic way of displaying an image on DokuWiki is to enclose the address of the image in double braces, with no extra spaces inside the braces, like this: `{{: | The most basic way of displaying an image on DokuWiki is to enclose the address of the image in double braces, with no extra spaces inside the braces, like this: `{{: | ||
| - | Many images are too large to display inline, and you may want them in a separate paragraph: | + | Many images are too large to display inline, and you probably |
| `{{: | `{{: | ||
| {{: | {{: | ||
| + | |||
| + | To get it in the middle, you would put spaces inside the `{{ ` and ` }}` like `{{ : | ||
| ==== Markdown syntax ==== | ==== Markdown syntax ==== | ||
| Line 65: | Line 67: | ||
| {{icon-menu-for-browsing.png }}There are 4 options for image (or video) alignment.{{ icon-menu-for-editing.png}} | {{icon-menu-for-browsing.png }}There are 4 options for image (or video) alignment.{{ icon-menu-for-editing.png}} | ||
| - | - With no alignment, as above, the image appears in line with the text surrounding | + | - With no alignment, as above, the image appears in line with the text either side it. |
| - For left alignment, you leave a space between the filename and the closing `}}`, like `{{icon-menu-for-browsing.png }}`. The image is on the left, and if its height is more than one line of text, the text continues line after line with the image staying on the left. | - For left alignment, you leave a space between the filename and the closing `}}`, like `{{icon-menu-for-browsing.png }}`. The image is on the left, and if its height is more than one line of text, the text continues line after line with the image staying on the left. | ||
| - With middle alignment, the image is put on a line by itself, but in the middle. You put spaces on either side, like `{{ : | - With middle alignment, the image is put on a line by itself, but in the middle. You put spaces on either side, like `{{ : | ||
| - Right alignment is just the opposite of left alignment, like `{{ icon-menu-for-editing.png}}`. | - Right alignment is just the opposite of left alignment, like `{{ icon-menu-for-editing.png}}`. | ||
| - | {{ : | + | {{ : |
| Line 90: | Line 92: | ||
| Try them out here: I've inserted the link target images with their own "link target", | Try them out here: I've inserted the link target images with their own "link target", | ||
| * {{: | * {{: | ||
| - | * {{: | + | * {{: |
| * {{: | * {{: | ||
| * {{: | * {{: | ||
| Line 121: | Line 123: | ||
| {{youtube> | {{youtube> | ||
| - | Similarly, `https:// | + | Similarly, `https:// |
| {{youtube> | {{youtube> | ||