MIMEICON{"filename"} -- return a meaningful icon for this filename

  • Syntax: %MIMEICON{"filename"}%
  • Supported parameters:
    Parameter Description DefaultSorted ascending
    size="..." icon size; available sizes are depending on the icon set; common sizes are: 16, 32, 48, 64, 128 48; when the size isn't found in the icon set a best fitting size available will be chosen automatically
    theme="oxygen/crystal" name of the icon set to chose from; for now only these two are supported oxygen or defined in configure
    "filename" filenam or file extension to display an icon for required
    format="..." format string for the img tag returned by this macro; within the format string the variables %NAME%, %URL% and %SIZE% are replaced with the concrete values for the icon being rendered see mimeicon.theme.tmpl

Examples:

%MIMEICON{"video.avi" size="16" theme="oxygen"}% %MIMEICON{"video.avi" size="32" theme="oxygen"}% %MIMEICON{"video.avi" size="64" theme="oxygen"}% %MIMEICON{"video.avi" size="16" theme="crystal"}% %MIMEICON{"video.avi" size="32" theme="crystal"}% %MIMEICON{"video.avi" size="64" theme="crystal"}%
%MIMEICON{"document.pdf" size="16" theme="oxygen"}% %MIMEICON{"document.pdf" size="32" theme="oxygen"}% %MIMEICON{"document.pdf" size="64" theme="oxygen"}% %MIMEICON{"document.pdf" size="16" theme="crystal"}% %MIMEICON{"document.pdf" size="32" theme="crystal"}% %MIMEICON{"document.pdf" size="64" theme="crystal"}%
%MIMEICON{"document.txt" size="16" theme="oxygen"}% %MIMEICON{"document.txt" size="32" theme="oxygen"}% %MIMEICON{"document.txt" size="64" theme="oxygen"}% %MIMEICON{"document.txt" size="16" theme="crystal"}% %MIMEICON{"document.txt" size="32" theme="crystal"}% %MIMEICON{"document.txt" size="64" theme="crystal"}%
%MIMEICON{"archive.zip" size="16" theme="oxygen"}% %MIMEICON{"archive.zip" size="32" theme="oxygen"}% %MIMEICON{"archive.zip" size="64" theme="oxygen"}% %MIMEICON{"archive.zip" size="16" theme="crystal"}% %MIMEICON{"archive.zip" size="32" theme="crystal"}% %MIMEICON{"archive.zip" size="64" theme="crystal"}%
%MIMEICON{"soundtrack.mp3" size="16" theme="oxygen"}% %MIMEICON{"soundtrack.mp3" size="32" theme="oxygen"}% %MIMEICON{"soundtrack.mp3" size="64" theme="oxygen"}% %MIMEICON{"soundtrack.mp3" size="16" theme="crystal"}% %MIMEICON{"soundtrack.mp3" size="32" theme="crystal"}% %MIMEICON{"soundtrack.mp3" size="64" theme="crystal"}%
Topic revision: r1 - 18 Nov 2010, ProjectContributor
 
This site is powered by FoswikiCopyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki? Send feedback