Revision history for AddingImages


Revision [22904]

Last edited on 2016-05-20 07:38:42 by AndreasHeintze [Replaces old-style internal links with new pipe-split links.]
Additions:
This page can now be found on the [[Docs:AddingImages | Wikka Documentation Server]].
An archive of [[http://wikkawiki.org/AddingImages/revisions | old revisions of this page]] is still available for reference.<<
Deletions:
This page can now be found on the [[Docs:AddingImages Wikka Documentation Server]].
An archive of [[http://wikkawiki.org/AddingImages/revisions
old revisions of this page]] is still available for reference.<<


Revision [18117]

Edited on 2008-01-27 02:34:53 by AndreasHeintze [Migrated to doc server]
Additions:
<<===This page has moved===
This page can now be found on the [[Docs:AddingImages Wikka Documentation Server]].
Thanks for updating your bookmarks!
An archive of [[http://wikkawiki.org/AddingImages/revisions
old revisions of this page]] is still available for reference.<<
::c::
CategoryMigratedDocs
Deletions:
[[WikkaDocumentation Wikka Documentation]]
===== 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"}}""
~{{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'])); ):
%%(php;32)// if no URL, only image name
if (preg_match("/^[0-9A-Za-zÅÄÖÜßåäöü\-\_]+\.(jpg|jpeg|png|gif)$/i", $url))
{
$url = '/wikka/uploads/' . $this->GetPageTag() . '/' . $url;
}
// is this an interwiki link?
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]);
}%%
Feel free to add this to the standard code base.
/AndreasHeintze
==== 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.
~<<Reference: Mod019fInlineImages<<::c::
CategoryDocumentation


Revision [17569]

Edited on 2007-10-01 10:38:26 by AndreasHeintze [Migrated to doc server]
Additions:
// is this an interwiki link?
Feel free to add this to the standard code base.
/AndreasHeintze
Deletions:
// is this an interwiki link? (added by me, AndreasHeintze)


Revision [17568]

Edited on 2007-10-01 10:37:17 by AndreasHeintze [Migrated to doc server]
Additions:
Add this to image.php in the actions folder (after $url = $this->cleanUrl(trim($vars['url'])); ):
Deletions:
Add this to image.php in the actions folder:


Revision [17567]

Edited on 2007-10-01 10:36:27 by AndreasHeintze [Migrated to doc server]
Additions:
If you want to be able to access uploaded images easier and use interwiki:
Deletions:
If you want to be able to do this:


Revision [17566]

Edited on 2007-10-01 10:34:59 by AndreasHeintze [Migrated to doc server]
Additions:
**A suggestion:**
If you want to be able to do this:
~""{{image url="dvdvideo.gif"}}""
~""{{image url="File:dvdvideo.gif"}}""
Deletions:
A suggestion:


Revision [17565]

Edited on 2007-10-01 10:30:38 by AndreasHeintze [Migrated to doc server]
Additions:
A suggestion:
Add this to image.php in the actions folder:
%%(php;32)// if no URL, only image name
if (preg_match("/^[0-9A-Za-zÅÄÖÜßåäöü\-\_]+\.(jpg|jpeg|png|gif)$/i", $url))
{
$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]);
}%%


Revision [15357]

Edited on 2006-09-26 15:55:04 by ChristopherBroussard [Minor spelling fix.]
Additions:
Before version 1.1.6.2 it was possible to use inline images. This method has been disabled because of not being accessible.
Deletions:
Before version 1.1.6.2 it was possible to use inline images. This method has been disabled because of not beeing accessible.


Revision [15078]

Edited on 2006-08-06 13:21:46 by NilsLindenberg [updated for 1.1.6.2]
Additions:
To place images on a Wikka page you can use the ##""{{image}}""## action.
==== Inline images ====
Before version 1.1.6.2 it was possible to use inline images. This method has been disabled because of not beeing accessible.
Deletions:
""<div style="float:right; width: 46%; padding: 4px 8px 2px 8px; background-color:#FEE; border:1px solid #EDD"><img src="images/icons/24x24/gnome-settings.png" title="todo" alt="todo icon" /> This page needs to be updated to match <strong>Wikka 1.1.6.2</strong></div><br style="clear:right"/>""
To place images on a Wikka page there are two alternatives:
~1)**Inline images** ---
~To add an inline image just type the complete URL to a jpeg or gif. No special formatting is necessary. No brackets or anything like that.
~If you want the Google logo to show up on this page, you just have to type ##""http://www.google.com/images/logo.gif""##
~~http://www.google.com/images/logo.gif
~1)**Image action** ---
~For better control on image insertion, you can use the ##""{{image}}""## action.


Revision [14589]

Edited on 2006-06-14 04:14:24 by DarTar [adding updated request box]
Additions:
""<div style="float:right; width: 46%; padding: 4px 8px 2px 8px; background-color:#FEE; border:1px solid #EDD"><img src="images/icons/24x24/gnome-settings.png" title="todo" alt="todo icon" /> This page needs to be updated to match <strong>Wikka 1.1.6.2</strong></div><br style="clear:right"/>""


Revision [9268]

Edited on 2005-06-17 13:02:53 by JpRobert [adding updated request box]
Additions:
[[WikkaDocumentation Wikka Documentation]]
----
===== Adding images =====

To place images on a Wikka page there are two alternatives:

~1)**Inline images** ---
~To add an inline image just type the complete URL to a jpeg or gif. No special formatting is necessary. No brackets or anything like that.
~
~''Example''
~If you want the Google logo to show up on this page, you just have to type ##""http://www.google.com/images/logo.gif""##
~~http://www.google.com/images/logo.gif
~<<Reference: Mod019fInlineImages<<::c::
~1)**Image action** ---
~For better control on image insertion, 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"}}""
~{{image class="center" alt="DVD logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}}

----
Deletions:
[[WikkaDocumentation Wikka Documentation]]
----
===== Adding images =====

To place images on a Wikka page there are two alternatives:

~1)**Inline images** ---
~To add an inline image just type the complete URL to a jpeg or gif. No special formatting is necessary. No brackets or anything like that.
~
~''Example''
~If you want the Google logo to show up on this page, you just have to type ##""http://www.google.com/images/logo.gif""##
~~http://www.google.com/images/logo.gif
~<<Reference: Mod019fInlineImages<<::c::
~1)**Image action** ---
~For better control on image insertion, 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"}}""
~{{image class="center" alt="DVD logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}}

----


Revision [1721]

Edited on 2004-10-07 10:09:35 by DarTar [small edit]
Additions:
[[WikkaDocumentation Wikka Documentation]]
~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
Deletions:
[[HelpInfo Wikka Documentation]]
~It accepts the following (optional?) parameters:
~##class## - for image positioning (allowed values are: center, ...)
~##alt## - alternate text
~##title## - the title of the image
~##link## - a page the image links to


Revision [1719]

Edited on 2004-10-07 08:24:15 by NilsLindenberg [small edit]
Additions:
~For better control on image insertion, you can use the ##""{{image}}""## action.
~It accepts the following (optional?) parameters:
~##class## - for image positioning (allowed values are: center, ...)
~##alt## - alternate text
~##title## - the title of the image
~##link## - a page the image links to
Deletions:
~For better control on image insertion, you can use the ##""{{image}}""## action. It accepts the following parameters: ##class## (for image positioning), ##alt## (alternate text), ##title##, ##link##.


Revision [1581]

The oldest known version of this page was created on 2004-10-03 22:20:41 by DarTar [small edit]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki