To add an image or attach a file to an article, first upload the it using the "Edit" link in the "Attachments" section of the sidebar.

When uploading the file you will be prompted to give it a "slug" or name. You can use letters, numbers, and dashes (-) in the name. After it is uploaded, you can refer to it with:

{{name}}

For example, I've attached an image named "mariadb" to this article and if I use the following code:

{{mariadb}}

The image is shown like so:

mariadb

I've also attached a pdf document that I've named "mariadb-seal-pdf". I can add a link to this document with:

{{mariadb-seal-pdf}}

Which shows up like so:

mariadb-seal-pdf

You can also provide alt-text, like with links. For example, I can change the displayed text for the attachment above like so:

{{mariadb-seal-pdf|The MariaDB seal logo (in pdf format)}}

Which shows up like so:

The MariaDB seal logo (in pdf format)

Comments

Comments loading...