Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
How to: Direct link to an image à la text hyperlink
Avatar
tJ3l33s #1
Member since May 2019 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to: Direct link to an image à la text hyperlink
Greetings all,

Including a direct link to an image in a sentence works for me, e.g. {{wiki:dokuwiki-128.png?20&direct}}.  However, the reduced size of my large image in the sentence looks like an embedded smudge.

I also tried the linkonly option and a title, e.g. {{wiki:dokuwiki-128.png?linkonly|DokuWiki logo}}, but that introduced a JPG icon into the text, which I guess I can live with.

Is there a way to direct link to an image using text?

Thank you,
Peter
Avatar
Michaelsy #2
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
I understood you to want something like this:
{{wiki:dokuwiki-128.png?linkonly|DokuWiki logo}}
just without a PNG icon. Did I understand correctly?
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
tJ3l33s #3
Member since May 2019 · 7 posts
Group memberships: Members
Show profile · Link to this post
Yes, that is correct.
Avatar
Michaelsy #4
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Create a userstyle.css (more details here: https://www.dokuwiki.org/devel:css#user_styles) with following content:

.dokuwiki a.mf_png,
.dokuwiki a.mf_jpg,
.dokuwiki a.mf_gif {
    padding: 0;
}

.mf_png,
.mf_jpg,
.mf_gif {
    background-image: none;
}

This removes all icons of image file links.

HTH - Michael Sy.
Keywords: ##icons ##links ##media ##remove ##images ##jpg ##gif ##png ##files ##michaelsy
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited 2 times, last on 2019-05-13, 05:07 by Michaelsy.
Avatar
tJ3l33s #5
Member since May 2019 · 7 posts
Group memberships: Members
Show profile · Link to this post
Thank you, Michael!  That's exactly what I was looking for.

Best wishes,
Peter
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-21, 22:46:24 (UTC +02:00)