]> 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 6ed3870fba45b7a498cb8041ee80553e298456df..270e1e103ef435d72fce162ae1780772077a536b 100644 (file)
@@ -1,4 +1,4 @@
-{% extends "../base.html" %}
+{% extends "../page.html" %}
 
 {% block title %}{{ file.filename }}{% end block %}
 
                        {% 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>