Revision [17568]
This is an old revision of AddingImages made by AndreasHeintze on 2007-10-01 10:37:17.
Adding images
To place images on a Wikka page you can use the {{image}} action.
It accepts the following (optional) parameters:
- class - for image positioning (allowed values are: left, center, right)
- alt - alternate text
- title - the title of the image
- link - a page (either internal or external) the image links to
Example
{{image class="center" alt="DVD logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}}
A suggestion:
If you want to be able to access uploaded images easier and use interwiki:
Example
{{image url="dvdvideo.gif"}}
{{image url="File:dvdvideo.gif"}}
Add this to image.php in the actions folder (after $url = $this->cleanUrl(trim($vars['url'])); ):
- // if no URL, only image name
- {
- $url = '/wikka/uploads/' . $this->GetPageTag() . '/' . $url;
- }
- // is this an interwiki link? (added by me, AndreasHeintze)
- else if (preg_match("/^([A-ZÅÄÖÜ][A-Za-zÅÄÖÜßåäöü]+)[:](\S*)$/", $url, $matches)) # before the : should be a WikiName; anything after can be (nearly) anything that's allowed in a URL
- {
- $url = $this->GetInterWikiUrl($matches[1], $matches[2]);
- }
Inline images
Before version 1.1.6.2 it was possible to use inline images. This method has been disabled because of not being accessible.CategoryDocumentation