center an external image

Reviewing the documentation I found the following to resize and center an image:

((http://example.com/image.png width=500 align=center))

I used this a lot:

 %(wacko wrapper=text wrapper_align=center)((http://example.com/image.png))%

the bad thing is that it is mandatory to use the size, that is I can't just center the image.

((http://example.com/image.png align=center))

Is there another way to do it?

Comments

  1. Re: FIXED center external image without size

    Patch
    diff --git a/wacko/class/wacko.php b/wacko/class/wacko.php
    index 6a1363d..0f17aa3 100644
    --- a/wacko/class/wacko.php
    +++ b/wacko/class/wacko.php
    @@ -3513,7 +3513,7 @@
                 // remove typografica glue
                 $text    = preg_replace('/(<|\&lt\;)\/?span( class\=\"nobr\")?(>|\&gt\;)/u', '', $text);
     
    -            if ($text == $tag || (!$text && $scale))
    +            if ($text == $tag || (!$text && ($scale || $media_class)))
                 {
                     return $this->image_link(str_replace('&', '&amp;', str_replace('&amp;', '&', $tag)), $media_class, null, $text, $text, $scale);
                 }
    • WikiAdmin
    • 17.12.2020 22:47 edited