aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-09 15:50:40 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-09 15:50:40 -0500
commita0e06556db4a5c67f1fdf6f6dc4b6d275137b996 (patch)
tree931073746ee200745754962613aa281bb408ff00 /doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn
parent3d729ee170ef7a3c1ac5210fd1b648ea1128f73d (diff)
downloadikiwiki-a0e06556db4a5c67f1fdf6f6dc4b6d275137b996.tar
ikiwiki-a0e06556db4a5c67f1fdf6f6dc4b6d275137b996.tar.gz
response
Diffstat (limited to 'doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn')
-rw-r--r--doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn32
1 files changed, 32 insertions, 0 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 ce7baba50..f58b6b359 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
@@ -7,3 +7,35 @@ I tought this:
would work, but it doesn't.
Any hints?
+
+> Well, currently the syntax above will display the image
+> inline with the specified link text used as an alt attribute. Although
+> that does not seem to be documented anywhere.
+>
+> A few places that use that (found with `git grep '\[\[' | egrep 'png|gif|jpeg|jpg' |grep \|`):
+>
+> * [[logos]] uses it to provide useful alt texts for the logos. (This
+> could easily be changed to use [[ikiwiki/directives/img]] though.)
+> * The `change.tmpl` template uses it to display
+> the [[diff|wikiicons/diff.png]] with a very useful "diff" alt text.
+> Using [[ikiwiki/directives/img]] here would mean that the
+> [[ikiwiki/plugins/recentchanges]] plugin would depend upon the img
+> plugin.
+>
+> I do like your suggestion, it makes more sense than the current behavior.
+> I'm not sure the transition pain to get from here to there is worth it,
+> though.
+>
+> More broadly, if I were writing ikiwiki now, I might choose to leave out the
+> auto-inlining of images altogether. In practice, it has added a certian level
+> of complexity to ikiwiki, with numerous plugins needing to specify
+> `noimageinline` to avoid accidentially inlining an image. And there has not
+> been a lot of payoff from having the auto-inlining feature implicitly
+> available most places. And the img directive allows much needed control over
+> display, so it would be better for users to not have to worry about its
+> lesser cousin. But the transition from here to *there* would be another order
+> of pain.
+>
+> Anyway, the cheap and simple answer to your question is to use html
+> or markdown instead of a [[ikiwiki/wikilink]]. Ie,
+> `[look at this](img/lolcat.jpg)`. --[[Joey]]