Topic on Project:Support desk

External images: additional parameters

7
Kavuch (talkcontribs)

I allowed external images by setting $wgAllowExternalImages. Now I'm able to display images by: http://www.example.com/image.jpg

What if I want to add additional parameters, like size or align?

Doing: [File: http://www. example. com/image.jpg|left|100px|caption] doesn't work.

88.130.125.33 (talkcontribs)

I think what $wgAllowExternalImages enables might be completely different code compared to how the usual [] and [[]] links are created. To verify this you might want to search the MediaWiki source code for $wgAllowExternalImages and then read the code to see, what it actually does.

Kavuch (talkcontribs)

So is it possible to specify parameters, like size and alignment for external images?

This, that and the other (talkcontribs)
Kavuch (talkcontribs)
This, that and the other (talkcontribs)

You need to read the documentation page I linked for $wgAllowImageTag above. Specifically, this allows you to use the HTML <img> tag to display images in your wikitext; it has nothing to do with the standard [[file:...]] wikitext syntax. If you aren't familiar with the <img> tag, Google img tag.

88.130.80.152 (talkcontribs)

Read the source code to see!

Reply to "External images: additional parameters"