FANDOM


(Created page with "The parser needs two things for inserting an image from url: domain in whitelist (taken care of globally) and an extension at the end. So all you need to do is add <code>#.pn...")
 
 
Line 13: Line 13:
 
This works for vignette thumbnailer in general.
 
This works for vignette thumbnailer in general.
   
But, in regards to user avatars, currently avatar urls change when user uploads a new one.
+
But, in regards to user avatars, currently avatar urls change when user uploads a new one. So it won't always show the current avatar.

Latest revision as of 13:14, November 11, 2016

The parser needs two things for inserting an image from url: domain in whitelist (taken care of globally) and an extension at the end.

So all you need to do is add #.png at the end of url:

http://static.wikia.nocookie.net/092190f6-9112-49ce-93cb-2c87a214104f/scale-to-width-down/50
http://static.wikia.nocookie.net/092190f6-9112-49ce-93cb-2c87a214104f/scale-to-width-down/50#.png

Result:

http://static.wikia.nocookie.net/092190f6-9112-49ce-93cb-2c87a214104f/scale-to-width-down/50 50#.png

This works for vignette thumbnailer in general.

But, in regards to user avatars, currently avatar urls change when user uploads a new one. So it won't always show the current avatar.

Community content is available under CC-BY-SA unless otherwise noted.