Hi,

in my trac 0.11.3 installation the Help shows this:

[[Image]]

    Embed an image in wiki-formatted text.

    The first argument is the file specification. The file
specification may reference attachments in three ways:

        * module:id:file, where module can be either wiki or ticket,
to refer to the attachment named file of the specified wiki page or
ticket.
        * id:file: same as above, but id is either a ticket shorthand
or a Wiki page name.
        * file to refer to a local attachment named 'file'. This only
works from within that wiki page or a ticket.

    Also, the file specification may refer to repository files, using
the source:file syntax (source:f...@rev works also).

    Files can also be accessed with a direct URLs; /file for a project-
relative, //file for a server-relative, or http://server/file for
absolute location of the file.

    The remaining arguments are optional and allow configuring the
attributes and style of the rendered <img> element:

        * digits and unit are interpreted as the size (ex. 120, 25%)
for the image
        * right, left, top or bottom are interpreted as the alignment
for the image
        * link=some TracLinks... replaces the link to the image source
by the one specified using a TracLinks. If no value is specified, the
link is simply removed.
        * nolink means without link to image source (deprecated, use
link=)
        * key=value style are interpreted as HTML attributes or CSS
style indications for the image. Valid keys are:
              o align, border, width, height, alt, title, longdesc,
class, id and usemap
              o border can only be a number

    Examples:
    [[Image(photo.jpg)]]                           # simplest
    [[Image(photo.jpg, 120px)]]                    # with image width
size
    [[Image(photo.jpg, right)]]                    # aligned by
keyword
    [[Image(photo.jpg, nolink)]]                   # without link to
source
    [[Image(photo.jpg, align=right)]]              # aligned by
attribute

Following the last example, i've tested align=center which doesn't
work. So there is only a possibility with

{{{
#!html
<h1 style="text-align: right; color: red">Image-Title</h1>
</p><div class="wiki-toc"><img src="/trac/raw-attachment/wiki/Images/
Image.png" width=250 height=250 ><p>
}}}

Put there annother class which follows the standard-syntax an you are
there, please let us know.

sincerely
  Ice


On Mar 5, 1:18 pm, "Peter von Kaenel"
<[email protected]> wrote:
> There must be a simple way (and it's probably well documented), but I
> have not been able to figure out how to center an [[Image()]].  I was
> hoping to just use <c>[[Image()]]</c>, but that did not work.  Could
> someone help me out on this one?
>
> Thanks,
>
> Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to