From cc5f3b7321c6992e0c7e324c735bb5272d8e5ae3 Mon Sep 17 00:00:00 2001
From: Gareth Coles
+ Images are local to the article, and may only be used in the article they are
+ uploaded to. Images may be replaced by clicking the upload button next to it
+ above, but note that image revisions are kept and can be found on the
+ Manage Images page.
+
+ To make use of images in an article, use the
+ Syntax:
+ The ID to use is the image ID shown next to the image in the list above.
+ You can click on the insert button if you'd like to insert an image into the
+ editor without manually typing the tag.
+
-
-
-
-
-
+ {% trans "After uploading an image, it is attached to this particular article and can be used only here. Other users may replace the image, but older versions are kept. To show the image press the Insert button and select the options you want to use. You can use Markdown in the caption. The Markdown code syntax for images looks like this" %}
+ {% endif %}
+
+ {% for image in images %}
+ {% with image.current_revision.imagerevision as revision %}
+ {% thumbnail revision.image "100x100" crop="center" as thumb %}
+
+
{% endfor %}
-
-{% endif %}
-
-
-
-{% for image in images %}
- {% with image.current_revision.imagerevision as revision %}
- {% thumbnail revision.image "100x100" crop="center" as thumb %}
-
-
How to use images
+
+ image
wiki tag in
+ your Markdown. These tags take some arguments for customisation, and you can
+ also include a caption on the next line, indented by four spaces. Note that
+ the align
and size
options are optional.
+ [image:ID align:x size:y]
+ Example tag
+
+
+ [image:1 align:left size:orig]
+ Python Discord logo
+
+
+ Options for align
+
+
- Options for size
- {% if image|can_write:user %}
-
-
-
-
-
- {% endif %}
-
-
-
-
-
-
- {% trans "How to use images" %}
-
-
-
-[image:id align:right size:orig]
- caption indented by 4 spaces
-{% trans "Possible values for align are" %} left | right
-{% trans "Possible values for size are" %} small | medium | large | orig | default
-