]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/templates/wiki/files/detail.html
wiki: Implement embedding images with {{...}} syntax
[ipfire.org.git] / src / templates / wiki / files / detail.html
index fea6448c36a6cc0cd407dd2e209d4137d20ff1e9..270e1e103ef435d72fce162ae1780772077a536b 100644 (file)
                        {% if file.is_image() %}
                                <h6>{{ _("Usage") }}</h6>
 
-                               <pre><code>![{{ _("Caption")}}]({{ file.filename }})</code></pre>
+                               <pre><code>{{{{ file.filename }}}}</code></pre>
+
+                               <p>{{ _("Or with an optional caption") }}</p>
+
+                               <pre><code>{{{{ file.filename }}|{{ _("Caption") }}}}</code></pre>
                        {% end %}
                </div>
        </div>