Extension talk:AdaptiveThumb

About this board

4 previous topics. Previous discussion was archived at Extension talk:AdaptiveThumb/Archive 1 on 2016-10-24.

Using a Path Variable to specify src location

1
GMShimokura (talkcontribs)

Is there a supported syntax where I pass the src path as a variable to the image inside the pic tag such as:

<pic src="{{#var: PathToFile }}/{{#var: FileName}}" /> 

or

<pic src="{{{PathToFile}}}/{{{FileName}}}" /> 

I would like to use the pic tag inside a template.

Reply to "Using a Path Variable to specify src location"

Installed, but nothing happens!

4
Moscowdreams (talkcontribs)
ThorstenStaerk (talkcontribs)

correct, I just reproduced it. You have to add

wfLoadExtension ('adaptivethumb');

not

wfLoadExtension ('AdaptiveThumb');

Avoid the CamelCase and you'll be good

ThorstenStaerk (talkcontribs)
ThorstenStaerk (talkcontribs)

most probably you have an old version where you still need to set $wgAllowExternalImages=true; which is a security issue, sorry

Reply to "Installed, but nothing happens!"
PhotographerTom (talkcontribs)

Is it possible to add images using AdaptiveThumb to a table? Also, can the image be a link?

ThorstenStaerk (talkcontribs)

yes! I tried it out and it works as expected:

{|

|Orange <pic src=http://linuxintro.org/images/f/f9/Set-up-a-webcam.png width=200 link=www.mediawiki.org />

|Apple |- |Bread |Pie |- |Butter |Ice cream |}

Reply to "Adding to a table"

Integrating with uploaded files

2
Tfischer83702 (talkcontribs)

I would like something like

<pic file="mindmap.jpg" width=30% align=right caption="this is a mindmap" />

where mindmap.jpg is a file that was uploaded to the web server using the mediawiki Upload file. to use src, I have to figure out that the path is something like src="/images/4/44/mindmap.jpg" and that may change if I upload a newer version of the file.

Schreibhan (talkcontribs)

The latest version of AdaptiveThumb has exactly that. It offers an attribute "file" to which you can assign the name of the file. You no longer have to figure out its path.

Reply to "Integrating with uploaded files"
There are no older topics
Return to "AdaptiveThumb" page.