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) *#*fixes 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 like either "width" mode or "height" mode, whichever produces the smallest image
 * 20) *#*required parameters: width, height
 * 21) *#crop
 * 22) *#*crops 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 specified window
 * 41) *#*resizes cropped portion like either "width" mode or "set" mode depending on the "fixed" parameter
 * 42) *#*required parameters: width, 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) *required parameters: height
 * 65) *used by "custom" position only
 * 66) fill
 * 67) *color to use for padding
 * 68) *defaults to white
 * 69) query - additional query string portion to append
 * 70) *include neither leading "?" nor leading "&"
 * 71) domain
 * 72) *domain of wiki to which the image belongs
 * 73) *not needed for local wiki images
 * 74) *required parameters: code
 * 75) code
 * 76) *two-character code assigned to the image to prevent easy URL access
 * 77) *characters beyond the first two are ignored
 * 78) *used only if "domain" parameter is used
 * 79) language
 * 80) *language code of wiki to which the image belongs
 * 81) *not needed for local wiki images
 * 82) link
 * 83) *page to link to
 * 84) *behaves like "link" parameter from standard image syntax
 * 85) **supports internal, interwiki, and external links
 * 86) **defaults to image's URL
 * 87) **disable by providing a blank value