Explorar o código

add optional caption-parameter for `<<linkedImage>>`

Stephan Fuchs hai 3 meses
pai
achega
f436b5aa9a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      sugarcube/src/macros/media/image.tw

+ 3 - 0
sugarcube/src/macros/media/image.tw

@@ -9,6 +9,9 @@
             <</link>>
         <</capture>>
         <<image _args[0]>>
+        <<if _args[1]>>
+            <div class="caption"><<=_args[1]>></div>
+        <</if>>
     </div>
 <</widget>>