Difference between revisions of "Help:Images"

From Criminal Defense Wiki
Jump to navigationJump to search
(Created page with '== Supported media types for images == The file name extension (remapped to lowercase) is used to determine the supported media type for images and to retrieve its internal prefe�')
 
 
(7 intermediate revisions by the same user not shown)
Line 13: Line 13:
  
 
where ''options'' can be zero or more of the following, separated by pipes ('''|'''):
 
where ''options'' can be zero or more of the following, separated by pipes ('''|'''):
* ''[[#Format|Format]]'' option: one of '''border''' and/or '''frameless''', '''frame''', '''thumb''' (or '''thumbnail''');
+
* ''Format'' option: one of '''border''' and/or '''frameless''', '''frame''', '''thumb''' (or '''thumbnail''');
 
*: Controls how the rendered image is formatted and embedded in the rest of the page.
 
*: Controls how the rendered image is formatted and embedded in the rest of the page.
* ''[[#Size and Frame|Resizing]]'' option: one of
+
* ''Resizing'' option: one of
  
  
Line 22: Line 22:
 
*: Note that the image will always retain its aspect ratio, and can only be reduced in size if it's not in a scalable media type such as SVG (bitmap images cannot be scaled up).
 
*: Note that the image will always retain its aspect ratio, and can only be reduced in size if it's not in a scalable media type such as SVG (bitmap images cannot be scaled up).
 
*: The default maximum size depends on the ''format'' and the internal image dimensions (according to its media type).
 
*: The default maximum size depends on the ''format'' and the internal image dimensions (according to its media type).
* ''[[#Horizontal alignment|Horizontal alignment]]'' option: one of '''left''', '''right''', '''center''', '''none''';
+
* ''Horizontal alignment'' option: one of '''left''', '''right''', '''center''', '''none''';
 
*: Controls the horizontal alignment (and inline/block or floatting styles) of the image within a text (no default value).
 
*: Controls the horizontal alignment (and inline/block or floatting styles) of the image within a text (no default value).
* ''[[#Vertical alignment|Vertical alignment]] option'': one of '''baseline''', '''sub''', '''super''', '''top''', '''text-top''', '''middle''', '''bottom''', '''text-bottom''';
+
* ''Vertical alignment'' option'': one of '''baseline''', '''sub''', '''super''', '''top''', '''text-top''', '''middle''', '''bottom''', '''text-bottom''';
 
*: Controls the vertical alignment of a non-floatting inline image with the text before or after the image, and in the same block (the default vertical alignment is '''middle''').
 
*: Controls the vertical alignment of a non-floatting inline image with the text before or after the image, and in the same block (the default vertical alignment is '''middle''').
* ''[[#Altering the default link target|Link]] option'': one of
+
* ''Link option'': one of
  
 
*: Note that the '''link''' option cannot be used in conjunction with '''thumb''' or '''thumbnail''', as '''thumb''' is always meant to link to the larger version of the image.
 
*: In addition, '''link''' cannot be used with '''frame'''.
 
* Other specific options:
 
 
 
  
The options can be given in any order. If the given ''options'' conflict each other, the latter is applied, except for the ''format'' options, where the options take the priority in the order of: '''frame'''; '''thumb''' (or '''thumbnail'''); '''frameless''' and/or '''border'''.
 
  
If a parameter does not match any of the other possibilities, it is assumed to be the caption text.  Caption text shows below the image in '''thumb''' and '''frame''' formats, or as mouseover text in '''border''', '''frameless''' formats or when the format is omitted.  Caption text displayed in the '''thumb''' and '''frame''' formats may contain wiki links and other formatting.  In the other options, wiki-formatting will not work though transclusion will.
 
  
If no caption text is supplied, a caption is automatically created showing the file name.  To completely remove the caption, set it to <code><nowiki><span title=""></span></nowiki></code>. For example, <code><nowiki>[[File:Example.jpg|20px|<span title=""></span>]]</nowiki></code> renders as [[File:Example.jpg|20px|<span title=""></span>]].
+
----
 +
See [[Help:Contents]]

Latest revision as of 12:00, 21 July 2010