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:21] – [Image alignment] 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 64: | Line 66: | ||
| ==== Image alignment ==== | ==== Image alignment ==== | ||
| - | There are 4 options for image (or video) alignment. | + | {{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 `{{:favicon.ico }}`. 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 `{{: | + | - Right alignment is just the opposite of left alignment, like `{{ icon-menu-for-editing.png}}`. |
| + | |||
| + | {{ : | ||
| ---- | ---- | ||
| Line 79: | Line 84: | ||
| When you click on the name of the file you want you get a pop-up, to choose how to display it, in terms of link, alignment and size. It's called "Link settings" | When you click on the name of the file you want you get a pop-up, to choose how to display it, in terms of link, alignment and size. It's called "Link settings" | ||
| - | {{: | + | {{ : |
| ^ Link Target | Link to detail page | Direct link to original | No Link | Show only the link, not the image | | ^ Link Target | Link to detail page | Direct link to original | No Link | Show only the link, not the image | | ||
| Line 87: | 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 118: | Line 123: | ||
| {{youtube> | {{youtube> | ||
| - | Similarly, `https:// | + | Similarly, `https:// |
| {{youtube> | {{youtube> | ||