aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-09 21:25:37 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-09 21:25:37 -0500
commit149e8e1c62a11d73f2fbea4e653cff7f3460c8f2 (patch)
tree20244ba4e5b69f268a27fef501338e386df021d1
parenta23d3b6547b80064f8e9af94076aa43798cf6558 (diff)
downloadikiwiki-149e8e1c62a11d73f2fbea4e653cff7f3460c8f2.tar
ikiwiki-149e8e1c62a11d73f2fbea4e653cff7f3460c8f2.tar.gz
response
-rw-r--r--doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn b/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn
index 53544e2c4..e92cc1b1c 100644
--- a/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn
+++ b/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn
@@ -49,7 +49,7 @@ Any hints? --[[jerojasro]]
>>> * Have things that are wikilink-aware (like [[plugins/brokenlinks]]
>>> treat your link to the image as a wikilink.
>>> * Use standard wikilink path stuff (and not have to worry about
->>> a raw html link breaking if the page it's on is inlined, for
+>>> a relative html link breaking if the page it's on is inlined, for
>>> example).
>>>
>>> I can help you bang that plugin into shape if need be. --[[Joey]]
@@ -60,3 +60,10 @@ Any hints? --[[jerojasro]]
>>>> Get the "plugin" [here](http://devnull.li/~jerojasro/files/linktoimgonly.pm), see the broken
>>>> links generated [here](http://devnull.li/~jerojasro/blog/posts/job_offers/) and the source
>>>> file for that page [here](http://git.devnull.li/cgi-bin/gitweb.cgi?p=blog-jerojasro.git;a=blob;f=posts/job_offers.mdwn;hb=HEAD) --[[jerojasro]]
+
+>>>>> Use this --[[Joey]]
+
+ return htmllink($params{page}, $params{destpage}, $params{"img"},
+ linktext => $params{text},
+ noimageinline => 1);
+