Ignore:
Timestamp:
12/18/09 09:03:17 (2 years ago)
Author:
CrawfordCurrie
Message:

Item2511: correct doc of %ICON

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/data/System/VarICON.txt

    r5812 r5815  
    33#VarICON 
    44---+++ ICON{"name" alt=""} -- small documentation graphic or icon of common attachment types 
    5    * Generates the HTML img tag of a small graphic image 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. 
    6    * Syntax: =%<nop>ICON{"name"}%= 
     5   * 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. 
     6   * Syntax: =%<nop>ICON{"name" alt="name"}%= 
     7   * You can use the optional =alt= parameter to specify an alternate 
     8     image, in case the filename doesn't produce a recognised graphic 
     9     If you don't specify an =alt=, and a filename doesn't map to a known 
     10     image, you will just see the filename. 
    711   * Examples: 
    8       * =%<nop>ICON{"flag-gray"}%= returns %ICON{"flag-gray"}% 
    9       * =%<nop>ICON{"pdf"}%= returns %ICON{"pdf"}% 
    10       * =%<nop>ICON{"smile.pdf"}%= returns %ICON{"smile.pdf"}% 
     12      * =%<nop>ICON{"flag-gray"}%= displays as %ICON{"flag-gray"}% 
     13      * =%<nop>ICON{"pdf"}%= displays as %ICON{"pdf"}% 
     14      * =%<nop>ICON{"smile.pdf"}%= displays as %ICON{"smile.pdf"}% 
    1115      * =%<nop>ICON{"/dont/you/dare/smile.pdf"}%= returns %ICON{"/dont/you/dare/smile.pdf"}% 
    12       * =%<nop>ICON{"http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif"}%= returns %ICON{"http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif"}% 
    13    * You can use the =alt= parameter to specify an alternate image, in case 
    14      the filename doesn't produce a recognised graphic e.g. ==%<nop>ICON{"data.docx" alt="doc"}% 
     16      * =%<nop>ICON{"data.unknown" alt="doc"}%= displays as %ICON{"data.unknown" alt="doc"}% 
     17      * =%<nop>ICON{"data.unknown"}%= displays as %ICON{"data.unknown"}% 
     18      * =%<nop>ICON{"http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif"}%= displays %ICON{"http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif"}% 
    1519   * Graphic samples: %ICON{"arrowbright"}% =arrowbright=, %ICON{"bubble"}% =bubble=, %ICON{"choice-yes"}% =choice-yes=, %ICON{"hand"}% =hand= 
    1620   * File type samples: %ICON{"bmp"}% =bmp=, %ICON{"doc"}% =doc=, %ICON{"gif"}% =gif=, %ICON{"hlp"}% =hlp=, %ICON{"html"}% =html=, %ICON{"mp3"}% =mp3=, %ICON{"pdf"}% =pdf=, %ICON{"ppt"}% =ppt=, %ICON{"txt"}% =txt=, %ICON{"xls"}% =xls=, %ICON{"xml"}% =xml=, %ICON{"zip"}% =zip= 
Note: See TracChangeset for help on using the changeset viewer.