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.<<
An archive of [[http://wikkawiki.org/AddingImages/revisions | old revisions of this page]] is still available for reference.<<
Deletions:
An archive of [[http://wikkawiki.org/AddingImages/revisions
old revisions of this page]] is still available for reference.<<
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
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:
===== 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
Additions:
// is this an interwiki link?
Feel free to add this to the standard code base.
/AndreasHeintze
Feel free to add this to the standard code base.
/AndreasHeintze
Deletions:
Additions:
Add this to image.php in the actions folder (after $url = $this->cleanUrl(trim($vars['url'])); ):
Deletions:
Additions:
If you want to be able to access uploaded images easier and use interwiki:
Deletions:
Additions:
**A suggestion:**
If you want to be able to do this:
~""{{image url="dvdvideo.gif"}}""
~""{{image url="File:dvdvideo.gif"}}""
If you want to be able to do this:
~""{{image url="dvdvideo.gif"}}""
~""{{image url="File:dvdvideo.gif"}}""
Deletions:
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]);
}%%
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]);
}%%
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:
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.
==== 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:
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.
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"/>""
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"}}
----
----
===== 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:
----
===== 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"}}
----
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
~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:
~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
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
~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