Thread:Template talk:Ximg/Making this template more generic/reply

I'm fine for making it 100% generic, but is there anyway to create a shortcut for frequently used filepaths? I tried something just now that works, but it might be too clunky for your tastes.

I set a named parameter "path" that is supposed to include the URL of the image minus the filename. Then I set it so that if that parameter isn't set, it defaults to my site.

So for instance: becomes:

Whereas becomes:

What do you think? If it's too inelegant, I won't take offense to having to type out my full url path... it could also be nice to have something like pull up my filepath, whereas we could have other presets load other filepaths.

Also, the whole site parameter mechanic could have the "http://" automatically added, but then there could always be the cases of "https" urls... maybe have the parameter path add http and the parameter paths add https? Or not have a named parameter at all, and just have the first unnamed parameter be the full filepath including the image name which is the simplest solution but I'm not sure if presets could be possible at all with an unnamed parameter.