Jump to content

Manual talk:$wgEnableImageWhitelist

Add topic
From mediawiki.org

Incomplete Example

[edit]

Please update the example, so that it contains the variable (Manual:$wgEnableImageWhitelist) with full syntax. Currently the example gives only values (and they look like php code lines...), but does show how they are assigned to the variable. --G.Hagedorn 00:39, 14 February 2009 (UTC)Reply

$wgEnableImageWhitelist is a true/false variable. If you set it to be true, then the page MediaWiki:External image whitelist will be enabled. If you set it to be false, then that page will not be enabled. The page itself uses regular expressions to match URLs. --Skizzerz 03:28, 14 February 2009 (UTC)Reply
Thanks, I got it now. The documentation page is much clearer now, although, now that I understand that the whitelist is in a wiki page, not in a variable, I can understand the original as well. So it goes... --G.Hagedorn 21:37, 13 March 2009 (UTC)Reply

The manual lacks the whole hotlinking thing explained somewhere

[edit]

What is the syntax for hotlinking? Is it [[File:http://...image.png|... or plain [http://...image.png ...? If the latter, then the whole approach seems deeply flawed, because:

  • you can't any longer make a link to an image in the whitelist, you only make a picture;
  • you can't control image dimensions (width × height).

85.175.57.112 03:36, 11 March 2009 (UTC)Reply

It's http://...image.png, and yes, you don't get as much control over it. This is not a flaw, but a deliberate design decision in place long before this variable was implemented -- by not giving users as much control, they are forced to upload the image locally. --Skizzerz 22:23, 13 March 2009 (UTC)Reply