User:Andrewds1021/Hotlink Vignette

This template was created in response to Thread:1640832 and also applies to. This page is under construction

This template is meant to simplify the process of using Vignette to hotlink and optionally crop/resize images from the local wiki.

Parameters

 * 1) image - required - name of the image including the file extension
 * 2) replaced
 * 3) *timestamp when the desired version was replaced (i.e. when the next version was uploaded) in the form YYYYMMDDhhmmss
 * 4) *leave blank if latest version is desired
 * 5) mode
 * 6) *type of cropping/resizing to perform
 * 7) *recognized values:
 * 8) *#set
 * 9) *#*fix the dimensions of the output image by padding where needed
 * 10) *#*resizes like "max" mode
 * 11) *#*required parameters: width, height
 * 12) *#width
 * 13) *#*resizes to match the "width" parameter
 * 14) *#*required parameters: width
 * 15) *#height
 * 16) *#*resizes to match the "height" parameter
 * 17) *#*required parameters: height
 * 18) *#max
 * 19) *#*resizes to smallest of either "width" mode or "height" mode
 * 20) *#*required parameters: width, height
 * 21) *#crop
 * 22) *#*crop the image before resizing
 * 23) *#*crop submode determined by "position" parameter
 * 24) *#*required parameters: position
 * 25) *leave blank if no cropping/resizing is desired
 * 26) width - target width of resized image
 * 27) height - target height of resized image
 * 28) position
 * 29) *recognized values:
 * 30) *#top
 * 31) *#*crops like "center" position except height is cropped from the top
 * 32) *#*required parameters: width, height
 * 33) *#center
 * 34) *#*crops width if specified aspect ratio is smaller than original aspect ratio
 * 35) *#*crops height if specified aspect ratio is larger than original aspect ratio
 * 36) *#*crops width from the center
 * 37) *#*crops height from the center
 * 38) *#*required parameters: width, height
 * 39) *#custom
 * 40) *#*crops to specified window
 * 41) *#*resizes cropped portion like "max" mode
 * 42) *#*required parameters: width, height, window width, window height
 * 43) upscale
 * 44) *allow upscaling when resizing
 * 45) *enable by providing a non-blank value
 * 46) *not used by "height" mode and "custom" position
 * 47) x offset
 * 48) *horizontal location of window's left edge
 * 49) *defaults to 0
 * 50) *used by "custom" position only
 * 51) y offset
 * 52) *vertical location of window's top edge
 * 53) *defaults to 0
 * 54) *used by "custom" position only
 * 55) window width
 * 56) *width of window
 * 57) *used by "custom" position only
 * 58) window height
 * 59) *height of window
 * 60) *used by "custom" position only
 * 61) fixed
 * 62) *fix the dimensions of the output image by padding where needed
 * 63) *enable by providing a non-blank value
 * 64) *used by "custom" position only
 * 65) fill
 * 66) *color to use for padding
 * 67) *defaults to white
 * 68) query - additional query string portion to append