Forum for Special templates

Link to JPG won't work? [#4744]

Back to forum     Back to page

New reply

 
reply
RobertPauli: Link to JPG won't work? (2018-01-23 15:48) [#11068]

Why does the first work (click on image), but not the second?
The second should show the image, as the Browser does.

{{:img
| goban
|      [ext] http://senseis.xmp.net/images/goban-alignright.jpg
| link=[ext] http://senseis.xmp.net
}}

goban

{{:img
| goban
|      [ext] http://senseis.xmp.net/images/goban-alignright.jpg
| link=[ext] http://senseis.xmp.net/images/goban-alignright.jpg
}}

Error: link address is invalid

X
ArnoHollosi: Re: Link to JPG won't work? (2018-01-25 09:29) [#11070]

Robert,

indeed, linking to other images doesn't work.

The reason is that for parsing the "link=" URL the engine uses its standard URL parser (that also understands camelcase wiki links etc.) and then checks afterwards if that parser produced a real link.

When you link to an image the parser produces an inline image tag. The check then fails (image produced instead of link) and you get the error message about the invalid link address.

Is there a usecase where you would like to link to an image? I could change the behaviour of the final check.

Meanwhile (as the parser is rather dumb) there is a workaround: append a question mark at the end of the link URL:

{{:img
| goban
|      http://senseis.xmp.net/images/goban-alignright.jpg
| link=http://senseis.xmp.net/images/goban-alignright.jpg?
}}

goban

/Arno

RobertPauli: Re: Link to JPG won't work? (2018-02-06 15:01) [#11072]

Hi Arno. On Sente Seki Bill linked to a Schnitzelbank poster. Recently I refreshed the link. At that occasion I used the image template: it showed the poster inline, great, but too large. I therefore scaled it down. However, to read the text on it, you need the real size. It would be nice if one simply could click on it and see it large, and, if that's not enough, zoom in with the Browser. Searching the image in the gallery after the click is awkward.

 
Back to forum     Back to page

New reply


Forum for Special templates
RecentChanges · StartingPoints · About
Edit page ·Search · Related · Page info · Latest diff
[Welcome to Sensei's Library!]
RecentChanges
StartingPoints
About
RandomPage
Search position
Page history
Latest page diff
Partner sites:
Go Teaching Ladder
Goproblems.com
Login / Prefs
Tools
Sensei's Library