Edgewall Software

Changeset 6303


Ignore:
Timestamp:
12/09/07 08:21:10 (2 years ago)
Author:
osimons
Message:

WikiFormatting page in TracGuide: Changing [[Image()]] macro example to not depend on attachment as we have no way to add attachment when creating a new project or updating wiki pages on existing projects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/trac/wiki/default-pages/WikiFormatting

    r6298 r6303  
    271271Urls ending with `.png`, `.gif` or `.jpg` are no longer automatically interpreted as image links, and converted to `<img>` tags. 
    272272 
    273 You now have to use the ![[Image]] macro The simplest way to include an image is to upload the image and put the filename in a macro call like so ![[Image(dress.gif)]]. 
    274  
    275 for example: [[Image(dress.gif)]] 
    276  
    277  
    278 (or see TracWikiMacros for the syntax). 
     273You now have to use the ![[Image]] macro. The simplest way to include an image is to upload it as attachment to the current page, and put the filename in a macro call like `[[Image(picture.gif)]]`. 
     274 
     275In addition to the current page, it is possible to refer to other resources: 
     276 * `[[Image(wiki:WikiFormatting:picture.gif)]]` (referring to attachment on another page) 
     277 * `[[Image(ticket:1:picture.gif)]]` (file attached to a ticket) 
     278 * `[[Image(htdocs:picture.gif)]]` (referring to a file inside project htdocs) 
     279 * `[[Image(source:/trunk/trac/htdocs/trac_logo_mini.png)]]` (a file in repository) 
     280 
     281Example display: [[Image(htdocs:../common/trac_logo_mini.png)]] 
     282 
     283See TracWikiMacros for further documentation on the `[[Image()]]` macro. 
    279284 
    280285 
Note: See TracChangeset for help on using the changeset viewer.