Документ взят из кэша поисковой машины. Адрес оригинального документа : http://wiki.cs.msu.ru/System/VarICON?cover=print;rev=1
Дата изменения: Unknown
Дата индексирования: Sun Apr 10 13:30:19 2016
Кодировка:
VarICON < System < Foswiki

ICON{"name" alt="" default="name"} -- small documentation graphic or icon of common attachment types

  • Generates a small graphic image from the set attached to DocumentGraphics. Images typically have a 16x16 pixel size. You can select a specific image by name, or you can give a full filename, in which case the type of the file will be used to select one of a collection of common file type icons.
  • if you specify an icon which cannot be found, the one specified in the default parameter will be used (and if that fails, the 'else' icon will be used)
  • Syntax: =%ICON{ "filename or icon name" [ default="filename or icon name" ] [ alt="alt text to be added to the HTML img tag" ] }%
  • Examples:
    • %ICON{"flag-gray"}% displays as flag-gray
    • %ICON{"pdf"}% displays as pdf
    • %ICON{"docx" default="doc"}% displays as docx
    • %ICON{"smile.pdf"}% displays as smile.pdf
    • %ICON{"/dont/you/dare/smile.pdf"}% returns /dont/you/dare/smile.pdf
    • %ICON{"data.unknown" alt="Unknown file type"}% displays as Unknown file type
    • %ICON{"data.unknown"}% displays as data.unknown
    • %ICON{"http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif"}% displays http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif
  • Graphic samples: arrowbright arrowbright, bubble bubble, choice-yes choice-yes, hand hand
  • File type samples: bmp bmp, doc doc, gif gif, hlp hlp, html html, mp3 mp3, pdf pdf, ppt ppt, txt txt, xls xls, xml xml, zip zip
  • Related: ICONURL, ICONURLPATH, DefaultPreferences, FileAttachments, DocumentGraphics

This topic: System > WebHome > Macros > VarICON
Topic revision: revision 1
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback